|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectframework.MapLayout
public class MapLayout
MapLayout.java
Handles the layout of a panel containing a map and POIs.
Field Summary |
---|
Fields inherited from interface no.tellu.cdlc.gui.LayoutManager |
---|
CENTER, LEFT, RIGHT |
Constructor Summary | |
---|---|
MapLayout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(no.tellu.cdlc.gui.GuiElement comp,
int constraint)
Empty. |
int |
getConstraint(no.tellu.cdlc.gui.GuiElement comp)
Get the constraint applied when the component was added. |
int |
getHorizontalGap()
Get horizontal spacing between layed out elements. |
int |
getVerticalGap()
Get vertical spacing between layed out elements. |
void |
layoutContainer(no.tellu.cdlc.gui.GuiPanel parent)
Sets the x and y coordinates of the MapElement and POIElement. |
no.tellu.cdlc.gui.Dimension |
minimumLayoutSize(no.tellu.cdlc.gui.GuiPanel parent)
Calculates the size dimensions for the specified container, given the components it contains. |
no.tellu.cdlc.gui.Dimension |
preferredLayoutSize(no.tellu.cdlc.gui.GuiPanel parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(no.tellu.cdlc.gui.GuiElement comp)
Empty. |
void |
setHorizontalGap(int horizontalSpacing)
Empty. |
void |
setVerticalGap(int verticalSpacing)
Empty. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapLayout()
Method Detail |
---|
public void addLayoutComponent(no.tellu.cdlc.gui.GuiElement comp, int constraint)
addLayoutComponent
in interface no.tellu.cdlc.gui.LayoutManager
public void removeLayoutComponent(no.tellu.cdlc.gui.GuiElement comp)
removeLayoutComponent
in interface no.tellu.cdlc.gui.LayoutManager
public no.tellu.cdlc.gui.Dimension minimumLayoutSize(no.tellu.cdlc.gui.GuiPanel parent)
minimumLayoutSize
in interface no.tellu.cdlc.gui.LayoutManager
parent
- the container to be laid out
public no.tellu.cdlc.gui.Dimension preferredLayoutSize(no.tellu.cdlc.gui.GuiPanel parent)
preferredLayoutSize
in interface no.tellu.cdlc.gui.LayoutManager
parent
- the container to be laid out
public void layoutContainer(no.tellu.cdlc.gui.GuiPanel parent)
layoutContainer
in interface no.tellu.cdlc.gui.LayoutManager
parent
- the specified component being laid outpublic void setVerticalGap(int verticalSpacing)
setVerticalGap
in interface no.tellu.cdlc.gui.LayoutManager
public int getVerticalGap()
getVerticalGap
in interface no.tellu.cdlc.gui.LayoutManager
public void setHorizontalGap(int horizontalSpacing)
setHorizontalGap
in interface no.tellu.cdlc.gui.LayoutManager
public int getHorizontalGap()
getHorizontalGap
in interface no.tellu.cdlc.gui.LayoutManager
public int getConstraint(no.tellu.cdlc.gui.GuiElement comp)
getConstraint
in interface no.tellu.cdlc.gui.LayoutManager
comp
- component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |