public class Shape extends 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(StringBuilder sb,
StringBounder stringBounder) |
Cluster |
getCluster() |
ClusterPosition |
getClusterPosition() |
EntityPosition |
getEntityPosition() |
double |
getHeight() |
IEntityImage |
getImage() |
double |
getMaxWidthFromLabelForEntryExit(StringBounder stringBounder) |
double |
getMinX() |
double |
getMinY() |
Shadowable |
getOctagon() |
Point2D |
getPoint2D(double x,
double y) |
Point2D |
getPosition() |
Dimension2D |
getSize() |
ShapeType |
getType() |
String |
getUid() |
double |
getWidth() |
boolean |
isHidden() |
boolean |
isShielded() |
boolean |
isTop() |
void |
moveSvek(double deltaX,
double deltaY) |
Point2D |
projection(Point2D pt,
StringBounder stringBounder) |
void |
setCluster(Cluster cluster) |
void |
setOctagon(double minX,
double minY,
List<Point2D.Double> points) |
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 final ShapeType getType()
public final double getWidth()
public final double getHeight()
public void appendShape(StringBuilder sb, StringBounder stringBounder)
appendShape in interface IShapePseudopublic final String getUid()
getUid in interface IShapePseudopublic final double getMinX()
public final double getMinY()
public IEntityImage getImage()
public final boolean isTop()
public Point2D getPosition()
getPosition in interface Positionablepublic 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,
List<Point2D.Double> points)
public Shadowable getOctagon()
public Point2D getPoint2D(double x, double y)
public Point2D projection(Point2D pt, StringBounder stringBounder)
Copyright © 2017. All rights reserved.