public class PointLabelPositioner extends AbstractStyle
AbstractStyle.RegisterPersistence
CartographicSupport.CartographicContext
Modifier and Type | Field and Description |
---|---|
static byte |
FORBIDDEN |
static java.lang.String |
POINT_LABEL_POSITIONER_PERSISTENCE_NAME |
static byte |
PREFERENCE_HIGH |
static byte |
PREFERENCE_LOW |
static byte |
PREFERENCE_NORMAL |
LOGGER, STYLE_PERSISTENCE_DEFINITION_NAME
PAPER, WORLD
Constructor and Description |
---|
PointLabelPositioner()
Constructor method
|
PointLabelPositioner(int[] preferenceVector,
java.lang.String description)
Constructor method
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
void |
drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
Used to show an outline of the style to graphically show its properties.
|
int[] |
getPreferenceVector() |
boolean |
isSuitableFor(ISymbol sym)
True if this symbol is ok for the style or class.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
getDescription, setDescription
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
copyCartographicContext
public static final java.lang.String POINT_LABEL_POSITIONER_PERSISTENCE_NAME
public static final byte FORBIDDEN
public static final byte PREFERENCE_HIGH
public static final byte PREFERENCE_NORMAL
public static final byte PREFERENCE_LOW
public PointLabelPositioner()
public PointLabelPositioner(int[] preferenceVector, java.lang.String description)
preferenceVector
- description
- public void drawInsideRectangle(java.awt.Graphics2D g, java.awt.Rectangle r)
IStyle
g
- Graphics2Dr
- Rectanglepublic boolean isSuitableFor(ISymbol sym)
IStyle
sym
- ISymbolpublic void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractStyle
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractStyle
PersistenceException
public static void registerPersistent()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class AbstractStyle
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()}.
public void drawOutline(java.awt.Graphics2D g, java.awt.Rectangle r)
IStyle
public int[] getPreferenceVector()