public class ShapeEdge
extends java.lang.Object
Constructor and Description |
---|
ShapeEdge(ShapeEdge other) |
ShapeEdge(ShapePoint start,
ShapePoint end,
DiagramShape owner) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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) |
java.lang.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 equals(java.lang.Object object)
equals
in class java.lang.Object
public boolean touchesWith(ShapeEdge other)
public boolean isHorizontal()
public boolean isVertical()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2020. All Rights Reserved.