|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.client.gui.panel.MapControls
public abstract class MapControls
A collection of panels and buttons that are used to provide the user with a more detailed view of certain elements on the map and also to provide a means of input in case the user can't use the keyboard. The MapControls are useless by themselves, this object needs to be placed on a JComponent in order to be usable.
| Field Summary | |
|---|---|
static int |
CONTROLS_LAYER
|
private FreeColClient |
freeColClient
|
private GUI |
gui
|
private InfoPanel |
infoPanel
|
private MiniMap |
miniMap
|
private java.util.List<UnitButton> |
unitButtons
|
| Constructor Summary | |
|---|---|
MapControls(FreeColClient freeColClient,
GUI gui,
boolean useSkin)
The basic constructor. |
|
| Method Summary | |
|---|---|
abstract void |
addToComponent(Canvas component)
Adds the map controls to the given component. |
FreeColClient |
getFreeColClient()
Returns the FreeColClient. |
InfoPanel |
getInfoPanel()
Returns the info panel. |
MiniMap |
getMiniMap()
Returns the mini map. |
java.util.List<UnitButton> |
getUnitButtons()
Returns a list of unit buttons. |
abstract boolean |
isShowing()
|
abstract void |
removeFromComponent(Canvas canvas)
Removes the map controls from the parent canvas component. |
void |
update()
Updates this MapControls. |
void |
update(MapEditorTransformPanel.MapTransform mapTransform)
Updates this InfoPanel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final FreeColClient freeColClient
private final InfoPanel infoPanel
private final MiniMap miniMap
private final java.util.List<UnitButton> unitButtons
private GUI gui
public static final int CONTROLS_LAYER
| Constructor Detail |
|---|
public MapControls(FreeColClient freeColClient,
GUI gui,
boolean useSkin)
freeColClient - The main controller object for the clientgui - | Method Detail |
|---|
public MiniMap getMiniMap()
MiniMap valuepublic InfoPanel getInfoPanel()
InfoPanel valuepublic java.util.List<UnitButton> getUnitButtons()
List valuepublic FreeColClient getFreeColClient()
FreeColClient valuepublic void update(MapEditorTransformPanel.MapTransform mapTransform)
InfoPanel.
mapTransform - The current MapTransform.public abstract void addToComponent(Canvas component)
component - The component to add the map controls to.public abstract void removeFromComponent(Canvas canvas)
canvas - Canvas parentpublic abstract boolean isShowing()
public void update()
MapControls.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||