public class DefaultGridTopology extends Object implements AreaTopology
DefaultArea implementation.| Constructor and Description |
|---|
DefaultGridTopology(DefaultArea area) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawLayout(OutputDisplay disp)
Graphically displays the topology on a graphical output device.
|
Area |
getArea() |
int |
getHeight()
Obtains the height the area occupies.
|
int |
getMaxIndent() |
int |
getMinIndent() |
Area |
getNextOnLine() |
Rectangular |
getPosition()
Obtains the position of the area in its parent area.
|
Rectangular |
getPosition(Area a)
Obtains the position of the given area within this topology.
|
Area |
getPreviousOnLine() |
int |
getTopologyHeight()
Obtains the total height of the topology used for placing the child
areas within this area.
|
Rectangular |
getTopologyPosition()
Obtains the absolute position of the whole topology within the page.
|
int |
getTopologyWidth()
Obtains the total width of the topology used for placing the child
areas within this area.
|
int |
getWidth()
Obtains the width the area occupies.
|
void |
setPosition(Area a,
Rectangular gp)
Sets the position of the given area in this topology.
|
void |
update()
Recomputes the topology.
|
public DefaultGridTopology(DefaultArea area)
public Area getArea()
public void update()
AreaTopologyupdate in interface AreaTopologypublic int getTopologyWidth()
AreaTopologygetTopologyWidth in interface AreaTopologypublic int getTopologyHeight()
AreaTopologygetTopologyHeight in interface AreaTopologypublic Rectangular getTopologyPosition()
AreaTopologygetTopologyPosition in interface AreaTopologypublic Rectangular getPosition(Area a)
AreaTopologygetPosition in interface AreaTopologya - The area whose position we want to obtain.null when the area position is not described by this topology.public void setPosition(Area a, Rectangular gp)
AreaTopologysetPosition in interface AreaTopologya - The area whose position we want to set.gp - The new position.public int getWidth()
AreaTopologygetWidth in interface AreaTopologypublic int getHeight()
AreaTopologygetHeight in interface AreaTopologypublic Rectangular getPosition()
AreaTopologygetPosition in interface AreaTopologypublic Area getPreviousOnLine()
getPreviousOnLine in interface AreaTopologypublic Area getNextOnLine()
getNextOnLine in interface AreaTopologypublic int getMinIndent()
getMinIndent in interface AreaTopologypublic int getMaxIndent()
getMaxIndent in interface AreaTopologypublic void drawLayout(OutputDisplay disp)
AreaTopologydrawLayout in interface AreaTopologydisp - the ouptut display to be usedCopyright © 2018. All rights reserved.