Package net.sourceforge.plantuml.posimo
Class Block
- java.lang.Object
-
- net.sourceforge.plantuml.posimo.Block
-
- All Implemented Interfaces:
Clusterable
,Moveable
,Positionable
public class Block extends java.lang.Object implements Clusterable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cluster
getParent()
java.awt.geom.Point2D
getPosition()
java.awt.geom.Dimension2D
getSize()
int
getUid()
void
moveSvek(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 java.awt.geom.Point2D getPosition()
- Specified by:
getPosition
in interfacePositionable
-
getSize
public java.awt.geom.Dimension2D 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)
-
-