|
||||||||||
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 final 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.
Constructor Summary | |
---|---|
MapControls(FreeColClient freeColClient)
The basic constructor. |
Method Summary | |
---|---|
void |
addToComponent(Canvas component)
Adds the map controls to the given component. |
boolean |
canZoomIn()
|
boolean |
canZoomOut()
|
void |
changeBackgroundColor(java.awt.Color newColor)
|
int |
getInfoPanelHeight()
Returns the height of the InfoPanel. |
int |
getInfoPanelWidth()
Returns the width of the InfoPanel. |
boolean |
isShowing()
|
void |
removeFromComponent(Canvas canvas)
Removes the map controls from the parent component. |
void |
update()
Updates this MapControls . |
void |
update(MapEditorTransformPanel.MapTransform mapTransform)
Updates this InfoPanel . |
void |
zoomIn()
Zooms in the mini map. |
void |
zoomOut()
Zooms out the mini map. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapControls(FreeColClient freeColClient)
freeColClient
- The main controller object for the clientMethod Detail |
---|
public void update(MapEditorTransformPanel.MapTransform mapTransform)
InfoPanel
.
mapTransform
- The current MapTransform.public void addToComponent(Canvas component)
component
- The component to add the map controls to.public int getInfoPanelWidth()
int
valuepublic int getInfoPanelHeight()
int
valuepublic void removeFromComponent(Canvas canvas)
public boolean isShowing()
public void zoomIn()
public void zoomOut()
public boolean canZoomIn()
public boolean canZoomOut()
public void changeBackgroundColor(java.awt.Color newColor)
newColor
- public void update()
MapControls
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |