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,
Margins shield,
EntityPosition entityPosition) |
Modifier and Type | Method and Description |
---|---|
void |
appendShape(java.lang.StringBuilder sb,
StringBounder stringBounder) |
Cluster |
getCluster() |
ClusterPosition |
getClusterPosition() |
EntityPosition |
getEntityPosition() |
double |
getHeight() |
IEntityImage |
getImage() |
double |
getMaxWidthFromLabelForEntryExit(StringBounder stringBounder) |
double |
getMinX() |
double |
getMinY() |
Shadowable |
getOctagon() |
double |
getOverscanX(StringBounder stringBounder) |
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, Margins 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.Object
public final ShapeType getType()
public final double getWidth()
public final double getHeight()
public void appendShape(java.lang.StringBuilder sb, StringBounder stringBounder)
appendShape
in interface IShapePseudo
public final java.lang.String getUid()
getUid
in interface IShapePseudo
public final double getMinX()
public final double getMinY()
public IEntityImage getImage()
public final boolean isTop()
public java.awt.geom.Point2D getPosition()
getPosition
in interface Positionable
public java.awt.geom.Dimension2D getSize()
getSize
in interface Positionable
public 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)
public double getOverscanX(StringBounder stringBounder)