public class DefaultComplexLegendItem extends java.lang.Object implements ComplexLegendItem, Persistent
Modifier and Type | Class and Description |
---|---|
static class |
DefaultComplexLegendItem.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPLEX_LEGEND_ITEM_PERSISTENCE_DEFINITION_NAME |
static Logger |
logger |
Constructor and Description |
---|
DefaultComplexLegendItem() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
ILegend |
getLegend() |
double |
getMaxScale() |
double |
getMinScale() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setLegend(ILegend legend) |
void |
setMaxScale(double maxScale) |
void |
setMinScale(double minScale) |
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cloneQuietly, cloneQuietly
public static final Logger logger
public static final java.lang.String COMPLEX_LEGEND_ITEM_PERSISTENCE_DEFINITION_NAME
public ILegend getLegend()
getLegend
in interface ComplexLegendItem
public void setLegend(ILegend legend)
setLegend
in interface ComplexLegendItem
public double getMaxScale()
getMaxScale
in interface ComplexLegendItem
public void setMaxScale(double maxScale)
setMaxScale
in interface ComplexLegendItem
public double getMinScale()
getMinScale
in interface ComplexLegendItem
public void setMinScale(double minScale)
setMinScale
in interface ComplexLegendItem
public java.lang.String toString()
toString
in interface ComplexLegendItem
toString
in class java.lang.Object
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.