public abstract class CustomLayer extends Layer implements java.lang.Cloneable
Layer.DataSize| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | KEY_DIMENSION | 
| Constructor and Description | 
|---|
| CustomLayer(java.lang.String name,
           java.lang.String description,
           Layer.DataSize dataSize,
           int priority,
           char mnemonic,
           java.lang.Object paint) | 
| CustomLayer(java.lang.String name,
           java.lang.String description,
           Layer.DataSize dataSize,
           int priority,
           java.lang.Object paint) | 
| Modifier and Type | Method and Description | 
|---|---|
| CustomLayer | clone()Create a deep copy of the custom layer, with a different ID and
 independent settings. | 
| java.util.List<javax.swing.Action> | getActions()Get any actions (in addition to the standard add, edit and remove
 actions) for this custom layer. | 
| int | getBiome() | 
| java.lang.Integer | getExportIndex()Get the index indicating the export order of the layer. | 
| java.awt.image.BufferedImage | getIcon() | 
| float | getOpacity() | 
| java.lang.Object | getPaint() | 
| java.lang.String | getPalette() | 
| java.lang.Integer | getPaletteIndex()Get the index indicating the position of the layer on its palette. | 
| LayerRenderer | getRenderer() | 
| java.lang.String | getType()Get a short, human-readable description of the layer type. | 
| boolean | isExport() | 
| boolean | isHide() | 
| void | setBiome(int biome) | 
| void | setExport(boolean export) | 
| void | setExportIndex(java.lang.Integer exportIndex)Set the index indicating the export order of the layer. | 
| void | setHide(boolean hide) | 
| void | setMinMaxHeight(int oldMinHeight,
               int newMinHeight,
               int oldMaxHeight,
               int newMaxHeight,
               HeightTransform transform)This is invoked by WorldPainter when the dimension height is transformed (minHeight and/or maxHeight changes,
 and/or a shift and/or scaling operation applied), so that the layer settings may be adjusted accordingly, if
 applicable. | 
| void | setName(java.lang.String name)Custom layers have names independent of their ID, so changing the name
 after creation is not a problem. | 
| void | setOpacity(float opacity) | 
| void | setPaint(java.lang.Object paint) | 
| void | setPalette(java.lang.String palette) | 
| void | setPaletteIndex(java.lang.Integer paletteIndex)Set the index indicating the position of the layer on its palette. | 
compareTo, equals, getDataSize, getDefaultValue, getDescription, getExporter, getExporterType, getId, getMnemonic, getName, getPriority, hashCode, isExportableToFile, setDescription, toStringpublic static final java.lang.String KEY_DIMENSION
public CustomLayer(java.lang.String name,
                   java.lang.String description,
                   Layer.DataSize dataSize,
                   int priority,
                   java.lang.Object paint)
public CustomLayer(java.lang.String name,
                   java.lang.String description,
                   Layer.DataSize dataSize,
                   int priority,
                   char mnemonic,
                   java.lang.Object paint)
public void setName(java.lang.String name)
public final java.lang.Object getPaint()
public final void setPaint(java.lang.Object paint)
public float getOpacity()
public void setOpacity(float opacity)
public int getBiome()
public void setBiome(int biome)
public boolean isHide()
public void setHide(boolean hide)
public java.lang.String getPalette()
public void setPalette(java.lang.String palette)
public boolean isExport()
public void setExport(boolean export)
public java.lang.Integer getExportIndex()
public void setExportIndex(java.lang.Integer exportIndex)
public java.lang.Integer getPaletteIndex()
public void setPaletteIndex(java.lang.Integer paletteIndex)
public void setMinMaxHeight(int oldMinHeight,
                            int newMinHeight,
                            int oldMaxHeight,
                            int newMaxHeight,
                            HeightTransform transform)
The default implementation does nothing.
public java.lang.String getType()
public LayerRenderer getRenderer()
getRenderer in class Layerpublic java.util.List<javax.swing.Action> getActions()
The KEY_DIMENSION value of the action will be set to the
 current dimension, if any, before the action is invoked.
null if there
 aren't any.public CustomLayer clone()
clone in class java.lang.Object