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.Object
Represents a transformation that can be applied to aTile
.- See Also:
transform(Tile)
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JPanel
descriptionPanel
A 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.JPanel
getDescriptionPanel()
A panel with information about this transformation.void
setDescriptionPanel(javax.swing.JPanel descriptionPanel)
Sets a panel that can be used for describing this transformation to the user.abstract void
transform(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
- TheTile
to be transformed,
-
getDescriptionPanel
public javax.swing.JPanel getDescriptionPanel()
A panel with information about this transformation. This panel is currently displayed on theInfoPanel
when selected, but might be used elsewhere as well.- Returns:
- The panel or
null
if 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.
-
-