Package net.sourceforge.plantuml.posimo
Class Block
- java.lang.Object
-
- net.sourceforge.plantuml.posimo.Block
-
- All Implemented Interfaces:
Moveable
,Positionable
,Clusterable
public class Block extends java.lang.Object implements Clusterable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cluster
getParent()
XPoint2D
getPosition()
XDimension2D
getSize()
int
getUid()
void
moveDelta(double deltaX, double deltaY)
void
setCenterX(double center)
void
setCenterY(double center)
void
setX(double x)
void
setY(double y)
java.lang.String
toString()
java.lang.String
toStringPosition()
-
-
-
Constructor Detail
-
Block
public Block(int uid, double width, double height, Cluster parent)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringPosition
public java.lang.String toStringPosition()
-
getUid
public int getUid()
-
getParent
public Cluster getParent()
- Specified by:
getParent
in interfaceClusterable
-
getPosition
public XPoint2D getPosition()
- Specified by:
getPosition
in interfacePositionable
-
getSize
public XDimension2D getSize()
- Specified by:
getSize
in interfacePositionable
-
setCenterX
public void setCenterX(double center)
-
setCenterY
public void setCenterY(double center)
-
setX
public final void setX(double x)
-
setY
public final void setY(double y)
-
-