public class Shape extends java.lang.Object implements Positionable, IShapePseudo, Hideable
| Constructor and Description |
|---|
Shape(IEntityImage image,
ShapeType type,
double width,
double height,
ColorSequence colorSequence,
boolean top,
int shield,
EntityPosition entityPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendShape(java.lang.StringBuilder sb) |
Cluster |
getCluster() |
ClusterPosition |
getClusterPosition() |
EntityPosition |
getEntityPosition() |
double |
getHeight() |
IEntityImage |
getImage() |
double |
getMaxWidthFromLabelForEntryExit(StringBounder stringBounder) |
double |
getMinX() |
double |
getMinY() |
Shadowable |
getOctagon() |
java.awt.geom.Point2D |
getPoint2D(double x,
double y) |
java.awt.geom.Point2D |
getPosition() |
java.awt.geom.Dimension2D |
getSize() |
ShapeType |
getType() |
java.lang.String |
getUid() |
double |
getWidth() |
boolean |
isHidden() |
boolean |
isShielded() |
boolean |
isTop() |
void |
moveSvek(double deltaX,
double deltaY) |
java.awt.geom.Point2D |
projection(java.awt.geom.Point2D pt,
StringBounder stringBounder) |
void |
setCluster(Cluster cluster) |
void |
setOctagon(double minX,
double minY,
java.util.List<java.awt.geom.Point2D.Double> points) |
java.lang.String |
toString() |
public Shape(IEntityImage image, ShapeType type, double width, double height, ColorSequence colorSequence, boolean top, int shield, EntityPosition entityPosition)
public EntityPosition getEntityPosition()
public final Cluster getCluster()
public final void setCluster(Cluster cluster)
public java.lang.String toString()
toString in class java.lang.Objectpublic final ShapeType getType()
public final double getWidth()
public final double getHeight()
public void appendShape(java.lang.StringBuilder sb)
appendShape in interface IShapePseudopublic final java.lang.String getUid()
getUid in interface IShapePseudopublic final double getMinX()
public final double getMinY()
public IEntityImage getImage()
public final boolean isTop()
public java.awt.geom.Point2D getPosition()
getPosition in interface Positionablepublic java.awt.geom.Dimension2D getSize()
getSize in interface Positionablepublic ClusterPosition getClusterPosition()
public boolean isShielded()
public void moveSvek(double deltaX,
double deltaY)
public double getMaxWidthFromLabelForEntryExit(StringBounder stringBounder)
public void setOctagon(double minX,
double minY,
java.util.List<java.awt.geom.Point2D.Double> points)
public Shadowable getOctagon()
public java.awt.geom.Point2D getPoint2D(double x,
double y)
public java.awt.geom.Point2D projection(java.awt.geom.Point2D pt,
StringBounder stringBounder)