public interface Zone extends LocatedObject
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_Z_BOTTOM |
static int |
DEFAULT_Z_LENGTH |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ZoneListener listener)
Adds a listener to this zone.
|
void |
addVariable(String name)
Adds a variable to this zone.
|
boolean |
addZone(Zone child)
Adds a child zone to this zone.
|
boolean |
contains(LocatedObject object)
Returns true if a object is geographically contained into the zone.
|
boolean |
contains(Position position)
Returns true if a point is geographically contained into the zone.
|
boolean |
fits(Zone aZone)
Determines if a Zone fits (don't exceed limits) of this zone/
|
List<Zone> |
getChildren()
Gets the list of children zones
|
String |
getId()
Returns the zone id.
|
int |
getLayer()
Determines the deepth of this zone
|
Position |
getLeftTopAbsolutePosition()
Gets the absolute (x,y) point in the left-top corner of the zone.
|
Position |
getLeftTopRelativePosition()
Gets the (x,y) point in the left-top corner of the zone.
|
Zone |
getParent()
Gets the parent Zone
|
Position |
getRelativePosition(LocatedObject object)
Returns relative position of specified object from top left corner of this zone.
|
Position |
getRightBottomAbsolutePosition()
Gets the absolute (x,y) point in the right-bottom corner of the zone.
|
Position |
getRightBottomRelativePosition()
Gets the (x,y) point in the right-bottom corner of the zone.
|
boolean |
getUseParentVariables()
Determines if this zone use the variable of its parent zone.
|
Set<String> |
getVariableNames()
Gets the list of variable names
|
Set<Variable> |
getVariables()
Gets the list of variable
|
Object |
getVariableValue(String name)
Gets the value from a zone variable.
|
int |
getXLength()
Gets the zone X length (width)
|
int |
getYLength()
Gets the zone Y length.
|
int |
getZLength()
Gets the zone Z length.
|
void |
removeListener(ZoneListener listener)
Removes a listener from the zone.
|
void |
removeVariable(String name)
Removes a variable from this zone.
|
void |
resize(int newWidth,
int newHeight,
int newDepth)
Resizes the zone
|
void |
setLeftTopRelativePosition(Position leftTopPosition)
Sets the relative (x,y) point in the left-top corner of the zone.
|
void |
setParent(Zone parent)
Sets the parent Zone
|
void |
setUseParentVariables(boolean useParentVariables)
Modifies if this zone will use the variable of its parent zone.
|
void |
setVariableValue(String name,
Object newValue)
Sets specified variable value.
|
void |
setXLength(int length)
Sets the zone X length .
|
void |
setYLength(int length)
Sets the zone Y length.
|
void |
setZLength(int length)
Sets the zone Y length.
|
attachObject, detachObject, getCenterAbsolutePosition, setCenterAbsolutePosition
static final int DEFAULT_Z_LENGTH
static final int DEFAULT_Z_BOTTOM
String getId()
Position getLeftTopRelativePosition()
getLeftTopAbsolutePosition
method.Position getLeftTopAbsolutePosition()
Position getRightBottomRelativePosition()
getRightBottomAbsolutePosition
method.Position getRightBottomAbsolutePosition()
void setLeftTopRelativePosition(Position leftTopPosition) throws Exception
leftTopPosition
- The new left-top corner of the zone.Exception
- When the zone does not fit its parent zone.int getXLength()
void setXLength(int length) throws Exception
length
- the new zone X length.Exception
- When the zone does not fit its parent zone.int getYLength()
void setYLength(int length) throws Exception
length
- the new zone Y length.Exception
- When the zone does not fit its parent zone.int getZLength()
void setZLength(int length) throws Exception
length
- the new zone Z length.Exception
- When the zone does not fit its parent zone.boolean contains(LocatedObject object)
object
- a located objectboolean contains(Position position)
position
- a pointPosition getRelativePosition(LocatedObject object)
object
- a located objectboolean addZone(Zone child)
child
- boolean fits(Zone aZone)
aZone
- a zoneint getLayer()
void setParent(Zone parent)
parent
- Zone getParent()
void addListener(ZoneListener listener)
listener
- the listener to be added.void removeListener(ZoneListener listener)
listener
- the listener to be removed.void setUseParentVariables(boolean useParentVariables)
useParentVariables
- true if the zone must use its parent variables.boolean getUseParentVariables()
Object getVariableValue(String name)
name
- The name of variable.void setVariableValue(String name, Object newValue)
name
- variable name to setnewValue
- property value to setvoid addVariable(String name)
name
- The variable name.void removeVariable(String name)
name
- The variable name.Set<String> getVariableNames()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.