|
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
Represents a rectangular part of the Partition
as result of the decomposition process. Each instance of
PartitionCell provides a data store (putData(Object, Object)
, getData(Object)
and removeData(Object)
) that could be used to bind additional information to it, e.g. what element of the graph is
covered by this PartitionCell.
PartitionCellKeys
Nested Class Summary | |
---|---|
static class |
PartitionCell.PartitionCellBorder
Type-safe enumeration that is used to define the border of a partition cell. |
Constructor Summary | |
---|---|
PartitionCell(double x,
double y,
double width,
double height,
Partition partition)
Creates a new partition cell of the given partition with the given bounds. |
|
PartitionCell(YRectangle bounds,
Partition partition)
Creates a new partition cell of the given partition with location and size of the given rectangle. |
Method Summary | |
---|---|
void |
clearData()
Clears all additional data. |
OrthogonalInterval |
createBorderInterval(PartitionCell.PartitionCellBorder border)
Returns an OrthogonalInterval that defines location, size and orientation of the given border. |
YRectangle |
getBounds()
Returns the bounds the partition cell. |
Object |
getData(Object key)
Returns additional data to which the given key is mapped for this partition cell. |
double |
getHeight()
Returns the height of this partition cell. |
int |
getId()
Returns a unique identifier of this partition cell. |
double |
getMaxX()
Returns the x value of the right border of this partition cell. |
double |
getMaxY()
Returns the y value of the lower border of this partition cell. |
double |
getMinX()
Returns the x value of the left border of this partition cell. |
double |
getMinY()
Returns the y value of the upper border of this partition cell. |
Partition |
getPartition()
Returns the partition to which this partition cell belongs. |
double |
getWidth()
Returns the width of this partition cell. |
Object |
putData(Object key,
Object data)
Stores additional data to which the given key is mapped for this partition cell. |
Object |
removeData(Object key)
Removes additional data to which the given key is mapped for this partition cell. |
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)
bounds
- The bounds of the partition cell.partition
- The partition to which the partition cell belongs.Partition
public PartitionCell(double x, double y, double width, double height, Partition partition)
x
- The x-coordinate of upper left corner of the partition cell.y
- The y-coordinate of upper left corner of the partition cell.width
- The width of the partition cell.height
- The height of the partition cell.partition
- The partition to which the partition cell belongs.Method Detail |
---|
public Object putData(Object key, Object data)
key
- The key with which the given data is to be associated.data
- The additional data.
getData(Object)
,
removeData(Object)
,
clearData()
,
PartitionCellKeys
public Object getData(Object key)
key
- The Key with which the given data is to be associated.
putData(Object, Object)
,
removeData(Object)
,
clearData()
,
PartitionCellKeys
public Object removeData(Object key)
key
- The Key with which the given data is to be associated.
getData(Object)
,
putData(Object, Object)
,
clearData()
,
PartitionCellKeys
public void clearData()
getData(Object)
,
putData(Object, Object)
,
removeData(Object)
public Partition getPartition()
partition
to which this partition cell belongs.
Partition
public int getId()
public YRectangle getBounds()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public double getWidth()
public double getHeight()
public OrthogonalInterval createBorderInterval(PartitionCell.PartitionCellBorder border)
OrthogonalInterval
that defines location, size and orientation of the given border. 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 location, size and orientation of the given border.PartitionCell.PartitionCellBorder
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |