Class ShapeEdge
java.lang.Object
org.stathissideris.ascii2image.graphics.ShapeEdge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetOwner()booleanbooleanvoidmoveInwardsBy(float offset) voidsetEndPoint(ShapePoint point) voidsetOwner(DiagramShape shape) voidsetStartPoint(ShapePoint point) toString()booleantouchesWith(ShapeEdge other) voidtranslate(float dx, float dy)
-
Constructor Details
-
ShapeEdge
-
ShapeEdge
-
-
Method Details
-
moveInwardsBy
public void moveInwardsBy(float offset) -
translate
public void translate(float dx, float dy) -
getMiddle
-
getEndPoint
- Returns:
-
getStartPoint
- Returns:
-
setEndPoint
- Parameters:
point-
-
setStartPoint
- Parameters:
point-
-
getOwner
- Returns:
-
setOwner
- Parameters:
shape-
-
equals
-
touchesWith
-
isHorizontal
public boolean isHorizontal() -
isVertical
public boolean isVertical() -
toString
-