public abstract class MapEditorTransformPanel.MapTransform extends java.lang.Object implements MapEditorController.IMapTransform
Tile.transform(Tile)| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JPanel |
descriptionPanel
A panel with information about this transformation.
|
| Constructor and Description |
|---|
MapTransform() |
| Modifier and Type | Method and 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.
|
private javax.swing.JPanel descriptionPanel
public abstract void transform(Tile t)
transform in interface MapEditorController.IMapTransformt - The Tile to be transformed,public javax.swing.JPanel getDescriptionPanel()
InfoPanel when selected, but might be
used elsewhere as well.null if no panel
has been set.public void setDescriptionPanel(javax.swing.JPanel descriptionPanel)
descriptionPanel - The panel.setDescriptionPanel(JPanel)