org.kabeja.dxf.helpers
Class HatchLineSegment

java.lang.Object
  extended by org.kabeja.dxf.helpers.HatchLineSegment

public class HatchLineSegment
extends java.lang.Object

Author:
Field Summary
protected  double angle
           
protected  double currentLength
           
protected  Vector direction
           
protected  int index
           
protected  double l
           
protected  double length
           
protected  ParametricLine line
           
protected  double[] pattern
           
protected  Point startPoint
           
protected  double totalLength
           
 
Constructor Summary
HatchLineSegment(ParametricLine line, double length, double startLength, double[] pattern)
           
HatchLineSegment(Point startPoint, double angle, double length)
           
HatchLineSegment(Point startPoint, Vector direction, double length)
           
 
Method Summary
 double getLength()
           
 Point getPoint(double offset)
           
 Point getPointAt(double para)
           
 Point getStartPoint()
           
 boolean hasNext()
           
protected  void initialize(double startLength)
           
 boolean isSolid()
           
 double next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startPoint

protected Point startPoint

direction

protected Vector direction

angle

protected double angle

totalLength

protected double totalLength

length

protected double length

currentLength

protected double currentLength

pattern

protected double[] pattern

l

protected double l

index

protected int index

line

protected ParametricLine line
Constructor Detail

HatchLineSegment

public HatchLineSegment(Point startPoint,
                        double angle,
                        double length)
Parameters:
startPoint -
angle - the angle in degrees

HatchLineSegment

public HatchLineSegment(Point startPoint,
                        Vector direction,
                        double length)

HatchLineSegment

public HatchLineSegment(ParametricLine line,
                        double length,
                        double startLength,
                        double[] pattern)
Method Detail

getStartPoint

public Point getStartPoint()

getLength

public double getLength()

getPoint

public Point getPoint(double offset)

getPointAt

public Point getPointAt(double para)

hasNext

public boolean hasNext()

next

public double next()

initialize

protected void initialize(double startLength)

isSolid

public boolean isSolid()