public class DefaultComplexLabelClass extends LabelClass implements Persistent
Modifier and Type | Class and Description |
---|---|
static class |
DefaultComplexLabelClass.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
static String |
COMPLEXLABELCLASS_PERSISTENCE_DEFINITION_NAME |
PAPER, WORLD
Constructor and Description |
---|
DefaultComplexLabelClass() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
double |
getMaxScale() |
double |
getMinScale() |
boolean |
isVisible()
Returns true if the label will be showed in the map
|
boolean |
isVisible(double scale)
Returns true if the label will be showed in the map
|
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 |
setMaxScale(double maxScale) |
void |
setMinScale(double minScale) |
draw, drawInsideRectangle, getBounds, getCartographicSize, getClassName, getLabelExpressions, getLabelStyle, getName, getPriority, getReferenceSystem, getShape, getSQLQuery, getStringLabelExpression, getTexts, getTextSymbol, getUnit, isUseSqlQuery, setCartographicSize, setLabelExpressions, setLabelStyle, setName, setPriority, setReferenceSystem, setSQLQuery, setTexts, setTextSymbol, setUnit, setUseSqlQuery, setVisible, toCartographicSize, toString
public static final String COMPLEXLABELCLASS_PERSISTENCE_DEFINITION_NAME
public double getMinScale()
public void setMinScale(double minScale)
public double getMaxScale()
public void setMaxScale(double maxScale)
public boolean isVisible()
LabelClass
isVisible
in interface ILabelClass
isVisible
in class LabelClass
public boolean isVisible(double scale)
LabelClass
isVisible
in interface ILabelClass
isVisible
in class LabelClass
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class LabelClass
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class LabelClass
PersistenceException
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class LabelClass
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()}.