net.sourceforge.plantuml.geom
Class AbstractLineSegment

java.lang.Object
  extended by java.awt.geom.Line2D
      extended by net.sourceforge.plantuml.geom.AbstractLineSegment
All Implemented Interfaces:
Shape, Cloneable
Direct Known Subclasses:
LineSegmentDouble, LineSegmentInt

public abstract class AbstractLineSegment
extends Line2D


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Line2D
Line2D.Double, Line2D.Float
 
Constructor Summary
AbstractLineSegment()
           
 
Method Summary
 double determinant(AbstractLineSegment other)
           
 boolean doesIntersect(AbstractLineSegment other)
           
 boolean equals(Object obj)
           
 double getAngle()
           
 Rectangle2D getBounds2D()
           
 double getDistance(AbstractLineSegment other)
           
 double getDistance(Point2D f)
           
 double getLength()
           
 double getOppositeAngle()
           
protected  Point2D.Double getPoint2D(double u)
           
 Point2D getSegIntersection(AbstractLineSegment other)
           
 int hashCode()
           
 boolean isHorizontal()
           
 boolean isVertical()
           
 void setLine(double x1, double y1, double x2, double y2)
           
 double side(Point2D point)
           
 Point2D.Double startTranslatedAsVector(double u)
           
 
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, contains, getBounds, getP1, getP2, getPathIterator, getPathIterator, getX1, getX2, getY1, getY2, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLineSegment

public AbstractLineSegment()
Method Detail

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

getLength

public final double getLength()

getPoint2D

protected final Point2D.Double getPoint2D(double u)

getDistance

public final double getDistance(Point2D f)

getSegIntersection

public Point2D getSegIntersection(AbstractLineSegment other)

setLine

public final void setLine(double x1,
                          double y1,
                          double x2,
                          double y2)
Specified by:
setLine in class Line2D

getBounds2D

public final Rectangle2D getBounds2D()

isHorizontal

public final boolean isHorizontal()

isVertical

public final boolean isVertical()

getDistance

public final double getDistance(AbstractLineSegment other)

getAngle

public final double getAngle()

getOppositeAngle

public final double getOppositeAngle()

startTranslatedAsVector

public final Point2D.Double startTranslatedAsVector(double u)

doesIntersect

public boolean doesIntersect(AbstractLineSegment other)

determinant

public double determinant(AbstractLineSegment other)

side

public double side(Point2D point)


Copyright © 2011. All Rights Reserved.