public class ShapeEdge extends Object
Constructor and Description |
---|
ShapeEdge(ShapeEdge other) |
ShapeEdge(ShapePoint start,
ShapePoint end,
DiagramShape owner) |
Modifier and Type | Method and 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) |
public ShapeEdge(ShapePoint start, ShapePoint end, DiagramShape owner)
public ShapeEdge(ShapeEdge other)
public void moveInwardsBy(float offset)
public void translate(float dx, float dy)
public ShapePoint getMiddle()
public ShapePoint getEndPoint()
public ShapePoint getStartPoint()
public void setEndPoint(ShapePoint point)
point
- public void setStartPoint(ShapePoint point)
point
- public DiagramShape getOwner()
public void setOwner(DiagramShape shape)
shape
- public boolean touchesWith(ShapeEdge other)
public boolean isHorizontal()
public boolean isVertical()
Copyright © 2016. All Rights Reserved.