|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.PartitionCell
public class PartitionCell
A PartitionCell
represents a rectangular part of a Partition
as result of the decomposition process.
Each instance of PartitionCell
can hold arbitrary additional information
(e.g. what element of the graph is covered by a PartitionCell
) which can be provided using
method putData(Object, Object)
.
Accessing and removing this information can be done using getData(Object)
and removeData(Object)
,
respectively.
PartitionCellKeys
Nested Class Summary | |
---|---|
static class |
PartitionCell.PartitionCellBorder
This class is a type-safe enumeration used for defining the border of a PartitionCell . |
Constructor Summary | |
---|---|
PartitionCell(double x,
double y,
double width,
double height,
Partition partition)
Creates a new PartitionCell instance of the given Partition with the given bounds. |
|
PartitionCell(YRectangle bounds,
Partition partition)
Creates a new PartitionCell of the given Partition with the location and the size of the given rectangle. |
Method Summary | |
---|---|
void |
clearData()
Clears all additional data for this PartitionCell . |
OrthogonalInterval |
createBorderInterval(PartitionCell.PartitionCellBorder border)
Returns an OrthogonalInterval that defines the location, the size and the orientation of the given
PartitionCell.PartitionCellBorder . |
YRectangle |
getBounds()
Returns the bounds of this PartitionCell . |
java.lang.Object |
getData(java.lang.Object key)
Returns the additional data associated with the given key for this PartitionCell . |
double |
getHeight()
Returns the height of this PartitionCell . |
int |
getId()
Returns a unique identifier of this PartitionCell . |
double |
getMaxX()
Returns the x-coordinate of the right border of this PartitionCell . |
double |
getMaxY()
Returns the y-coordinate of the bottom border of this PartitionCell . |
double |
getMinX()
Returns the x-coordinate of the left border of this PartitionCell . |
double |
getMinY()
Returns the y-coordinate of the upper border of this PartitionCell . |
Partition |
getPartition()
Returns the partition to which this PartitionCell belongs. |
double |
getWidth()
Returns the width of this PartitionCell . |
java.lang.Object |
putData(java.lang.Object key,
java.lang.Object data)
Stores the additional data associated with the given key for this PartitionCell . |
java.lang.Object |
removeData(java.lang.Object key)
Removes the additional data associated with the given key for this PartitionCell . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionCell(YRectangle bounds, Partition partition)
PartitionCell
of the given Partition
with the location and the size of the given rectangle.
bounds
- the bounds describing the size and location of the partition cellpartition
- the partition to which the partition cell belongsPartition
public PartitionCell(double x, double y, double width, double height, Partition partition)
PartitionCell
instance of the given Partition
with the given bounds.
x
- the x-coordinate of the upper-left corner of the partition celly
- the y-coordinate of the upper-left corner of the partition cellwidth
- the width of the partition cellheight
- the height of the partition cellpartition
- the partition to which the partition cell belongsPartition
Method Detail |
---|
public java.lang.Object putData(java.lang.Object key, java.lang.Object data)
PartitionCell
.
key
- the key with which the additional data will be associateddata
- the additional data
null
if there was no data associated with
the given keygetData(Object)
,
removeData(Object)
,
clearData()
,
PartitionCellKeys
public java.lang.Object getData(java.lang.Object key)
PartitionCell
.
key
- the key whose associated data will be returned
null
if there is no data associated with
the given keyputData(Object, Object)
,
removeData(Object)
,
clearData()
,
PartitionCellKeys
public java.lang.Object removeData(java.lang.Object key)
PartitionCell
.
key
- the key for which the associated data will be removed
null
if there is no data associated with
the given keygetData(Object)
,
putData(Object, Object)
,
clearData()
,
PartitionCellKeys
public void clearData()
PartitionCell
.
getData(Object)
,
putData(Object, Object)
,
removeData(Object)
public Partition getPartition()
partition
to which this PartitionCell
belongs.
Partition
public int getId()
PartitionCell
.
public YRectangle getBounds()
PartitionCell
.
public double getMinX()
PartitionCell
.
public double getMinY()
PartitionCell
.
public double getMaxX()
PartitionCell
.
public double getMaxY()
PartitionCell
.
public double getWidth()
PartitionCell
.
public double getHeight()
PartitionCell
.
public OrthogonalInterval createBorderInterval(PartitionCell.PartitionCellBorder border)
OrthogonalInterval
that defines the location, the size and the orientation of the given
PartitionCell.PartitionCellBorder
.
The values defining the border are:
PartitionCell.PartitionCellBorder.WEST
PartitionCell.PartitionCellBorder.EAST
PartitionCell.PartitionCellBorder.NORTH
PartitionCell.PartitionCellBorder.SOUTH
border
- a border of this partition cell
OrthogonalInterval
that defines the location, the size and the orientation of the given borderPartitionCell.PartitionCellBorder
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |