Class ShapeEdge
- java.lang.Object
-
- org.stathissideris.ascii2image.graphics.ShapeEdge
-
public class ShapeEdge extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShapeEdge(ShapeEdge other)ShapeEdge(ShapePoint start, ShapePoint end, DiagramShape owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)ShapePointgetEndPoint()ShapePointgetMiddle()DiagramShapegetOwner()ShapePointgetStartPoint()booleanisHorizontal()booleanisVertical()voidmoveInwardsBy(float offset)voidsetEndPoint(ShapePoint point)voidsetOwner(DiagramShape shape)voidsetStartPoint(ShapePoint point)java.lang.StringtoString()booleantouchesWith(ShapeEdge other)voidtranslate(float dx, float dy)
-
-
-
Constructor Detail
-
ShapeEdge
public ShapeEdge(ShapePoint start, ShapePoint end, DiagramShape owner)
-
ShapeEdge
public ShapeEdge(ShapeEdge other)
-
-
Method Detail
-
moveInwardsBy
public void moveInwardsBy(float offset)
-
translate
public void translate(float dx, float dy)
-
getMiddle
public ShapePoint getMiddle()
-
getEndPoint
public ShapePoint getEndPoint()
- Returns:
-
getStartPoint
public ShapePoint getStartPoint()
- Returns:
-
setEndPoint
public void setEndPoint(ShapePoint point)
- Parameters:
point-
-
setStartPoint
public void setStartPoint(ShapePoint point)
- Parameters:
point-
-
getOwner
public DiagramShape getOwner()
- Returns:
-
setOwner
public void setOwner(DiagramShape shape)
- Parameters:
shape-
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
touchesWith
public boolean touchesWith(ShapeEdge other)
-
isHorizontal
public boolean isHorizontal()
-
isVertical
public boolean isVertical()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-