public class PointLabelPositioner extends AbstractStyle
AbstractStyle.RegisterPersistenceCartographicSupport.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_NAMEPAPER, 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, setDescriptioncopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlycopyCartographicContextpublic 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)
IStyleg - Graphics2Dr - Rectanglepublic boolean isSuitableFor(ISymbol sym)
IStylesym - ISymbolpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractStylePersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractStylePersistenceExceptionpublic static void registerPersistent()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractStylejava.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)
IStylepublic int[] getPreferenceVector()