public class MapLayout extends java.lang.Object implements java.awt.LayoutManager, TaskLayoutDetails
Constructor and Description |
---|
MapLayout(java.awt.Dimension mapsize)
Constructs a map layout for the specified mapsize
|
MapLayout(java.awt.Dimension mapsize,
double compfactor)
Constructs a map layout for the specified mapsize
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
If the layout manager uses a per-component string, adds the component
comp to the layout,
associating it with the string specified by name . |
int |
getLeftBorder() |
java.awt.Point |
getMapPoint(java.lang.String location) |
java.awt.Dimension |
getMapsize() |
TDimension |
getTaskDimensions() |
int |
getTopBorder() |
boolean |
isMapPoint(java.lang.String location) |
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.
|
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
|
void |
setMapPoint(java.lang.String location,
java.awt.Point point)
Sets the poin on the map for the specified location
|
void |
setMapSize(java.awt.Dimension mapsize)
Sets the map size used by this layout manager
|
public MapLayout(java.awt.Dimension mapsize)
public MapLayout(java.awt.Dimension mapsize, double compfactor)
compfactor
- a scale factor for the components (default = 1).public void setMapSize(java.awt.Dimension mapsize)
public java.awt.Dimension getMapsize()
public void setMapPoint(java.lang.String location, java.awt.Point point)
public java.awt.Point getMapPoint(java.lang.String location)
public boolean isMapPoint(java.lang.String location)
public int getLeftBorder()
getLeftBorder
in interface TaskLayoutDetails
public int getTopBorder()
getTopBorder
in interface TaskLayoutDetails
public TDimension getTaskDimensions()
getTaskDimensions
in interface TaskLayoutDetails
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
comp
to the layout,
associating it with the string specified by name
.addLayoutComponent
in interface java.awt.LayoutManager
name
- the string to be associated with the componentcomp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to be removedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid outpreferredLayoutSize(java.awt.Container)
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the container to be laid outminimumLayoutSize(java.awt.Container)
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
parent
- the container to be laid out