Modifier and Type | Class and Description |
---|---|
class |
BoundsGeometry.BoundsSite
BoundsSite is the local class that implements
editable sites of Rectangle objects.
|
Constructor and Description |
---|
BoundsGeometry(Figure figure,
Rectangle2D bounds)
Create a new geometry object on the given figure and with the
given initial bounds.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds()
Get the current rectangle that defines this geometry.
|
Site |
getE()
Get the east site.
|
Figure |
getFigure()
Get the figure to which this geometry object is attached.
|
double |
getMinimumSize()
Get the minimum size of the rectangle.
|
Site |
getN()
Get the north site.
|
Site |
getNE()
Get the north-east site.
|
Site |
getNW()
Get the north-west site.
|
Site |
getS()
Get the south site.
|
Site |
getSE()
Get the south-east site.
|
Shape |
getShape()
Get the current shape that defines this geometry
|
Site |
getSite(int id)
Get the single site with the given ID.
|
Site |
getSW()
Get the south-west site.
|
Site |
getW()
Get the west site.
|
void |
setBounds(Rectangle2D rect)
Set the rectangle that defines this geometry object.
|
void |
setMinimumSize(double minimumSize)
Set the minimum size of the rectangle.
|
void |
setShape(Shape shape)
Set the shape that defines this geometry object.
|
Iterator |
sites()
Return an iteration over the sites in this geometry object.
|
void |
translate(double x,
double y)
Translate the geometry object
|
public BoundsGeometry(Figure figure, Rectangle2D bounds)
public Site getSite(int id)
public double getMinimumSize()
public Site getNE()
public Site getNW()
public Site getSE()
public Site getSW()
public Site getN()
public Site getS()
public Site getE()
public Site getW()
public Figure getFigure()
public Shape getShape()
public Rectangle2D getBounds()
public void setMinimumSize(double minimumSize)
public void setShape(Shape shape)
public void setBounds(Rectangle2D rect)
public Iterator sites()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.