Class ShapeEdge
- java.lang.Object
-
- org.stathissideris.ascii2image.graphics.ShapeEdge
-
public class ShapeEdge extends Object
- Author:
- Efstathios Sideris
-
-
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 boolean
equals(Object object)
ShapePoint
getEndPoint()
ShapePoint
getMiddle()
DiagramShape
getOwner()
ShapePoint
getStartPoint()
boolean
isHorizontal()
boolean
isVertical()
void
moveInwardsBy(float offset)
void
setEndPoint(ShapePoint point)
void
setOwner(DiagramShape shape)
void
setStartPoint(ShapePoint point)
String
toString()
boolean
touchesWith(ShapeEdge other)
void
translate(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
-
-
touchesWith
public boolean touchesWith(ShapeEdge other)
-
isHorizontal
public boolean isHorizontal()
-
isVertical
public boolean isVertical()
-
-