|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataPartition
Represents a data partition. It has an id which identifies the resource, which is the mother of the partition.
Method Summary | |
---|---|
DataPartition |
getEmpty(int newID)
Creates an empty Object with the given id. |
DataPartition |
getPartition(Rectangle partitionBounds)
Returns the partition specified by the given Rectangle . |
Rectangle |
getPartitionBounds()
Returns the bounds of the partition as a rectangle. |
int |
getRootID()
Returns the id of the super data structure this partition is a part of. |
void |
setPartition(DataPartition partition,
Rectangle partitionBounds)
Overwrites the data at the location specified by the Rectangle with
the given partition-data. |
Method Detail |
---|
int getRootID()
Rectangle getPartitionBounds()
DataPartition getPartition(Rectangle partitionBounds)
Rectangle
. Note, that
partitioning by a rectangle does not mean, that the underlying datastructure
has to be 2D, but only that the splitting has to be at max. 2D.
partitionBounds
- the bounds of the partition which are to be retrieved
in global coordinates (the coordinates should be relative to the root-structure)void setPartition(DataPartition partition, Rectangle partitionBounds)
Rectangle
with
the given partition-data.
partition
- the new datapartitionBounds
- the target location of the data (in coordinates of the root structure)DataPartition getEmpty(int newID)
newID
- the id of the new Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |