Package net.sf.freecol.client.control
Class MapTransform
- java.lang.Object
-
- net.sf.freecol.client.control.MapTransform
-
- Direct Known Subclasses:
MapEditorTransformPanel.LostCityRumourTransform,MapEditorTransformPanel.ResourceTransform,MapEditorTransformPanel.RiverStyleTransform,MapEditorTransformPanel.RiverTransform,MapEditorTransformPanel.SettlementTransform,MapEditorTransformPanel.TileTypeTransform
public abstract class MapTransform extends java.lang.ObjectRepresents a transformation that can be applied to aTile.- See Also:
transform(Tile)
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JPaneldescriptionPanelA panel with information about this transformation.
-
Constructor Summary
Constructors Constructor Description MapTransform()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.swing.JPanelgetDescriptionPanel()A panel with information about this transformation.voidsetDescriptionPanel(javax.swing.JPanel descriptionPanel)Sets a panel that can be used for describing this transformation to the user.abstract voidtransform(Tile t)Applies this transformation to the given tile.
-
-
-
Method Detail
-
transform
public abstract void transform(Tile t)
Applies this transformation to the given tile.- Parameters:
t- TheTileto be transformed,
-
getDescriptionPanel
public javax.swing.JPanel getDescriptionPanel()
A panel with information about this transformation. This panel is currently displayed on theInfoPanelwhen selected, but might be used elsewhere as well.- Returns:
- The panel or
nullif no panel has been set.
-
setDescriptionPanel
public void setDescriptionPanel(javax.swing.JPanel descriptionPanel)
Sets a panel that can be used for describing this transformation to the user.- Parameters:
descriptionPanel- The panel.
-
-