net.sf.freecol.client.gui.panel
Class MapEditorTransformPanel.MapTransform

java.lang.Object
  extended by net.sf.freecol.client.gui.panel.MapEditorTransformPanel.MapTransform
Direct Known Subclasses:
MapEditorTransformPanel.TileTypeTransform
Enclosing class:
MapEditorTransformPanel

public abstract class MapEditorTransformPanel.MapTransform
extends java.lang.Object

Represents a transformation that can be applied to a Tile.

See Also:
transform(Tile)

Constructor Summary
MapEditorTransformPanel.MapTransform()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapEditorTransformPanel.MapTransform

public MapEditorTransformPanel.MapTransform()
Method Detail

transform

public abstract void transform(Tile t)
Applies this transformation to the given tile.

Parameters:
t - The Tile to be transformed,

getDescriptionPanel

public javax.swing.JPanel getDescriptionPanel()
A panel with information about this transformation. This panel is currently displayed on the InfoPanel 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.
See Also:
setDescriptionPanel(JPanel)