org.opengis.go.display.style
Interface LabelPlacement
-
public interface LabelPlacementEncapsulates the label placement attributes that can be applied to any text Graphic.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringLABELLabel attribute name.static java.lang.StringROTATIONLabel rotation attribute name.static java.lang.StringSHOW_LABELShow label attribute name.static java.lang.StringXANCHORLabel X anchor attribute name.static java.lang.StringXDISPLACEMENTLabel X displacementattribute name.static java.lang.StringYANCHORLabel Y anchor attribute name.static java.lang.StringYDISPLACEMENTLabel Y displacement attribute name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetLabel()Returns the label.floatgetRotation()Returns the label rotation.booleangetShowLabel()Returns the show label.XAnchorgetXAnchor()Returns the label XAnchor.floatgetXDisplacement()Returns the label X displacement.YAnchorgetYAnchor()Returns the label YAnchor.floatgetYDisplacement()Returns the label Y displacement.booleanisLabelSet()Returns whether the label has been set.booleanisRotationSet()Returns whether the label rotation has been set.booleanisShowLabelSet()Returns whether the show label has been set.booleanisXAnchorSet()Returns whether the label XAnchor has been set.booleanisXDisplacementSet()Returns whether the label X displacement has been set.booleanisYAnchorSet()Returns whether the label YAnchor has been set.booleanisYDisplacementSet()Returns whether the label Y displacement has been set.voidsetLabel(java.lang.String label)Sets the label.voidsetLabelSet(boolean flag)Sets the fact that the label has been set.voidsetRotation(float labelRotation)Sets the label rotation.voidsetRotationSet(boolean flag)Sets the fact that the label rotation has been set.voidsetShowLabel(boolean showLabel)Sets the show label.voidsetShowLabelSet(boolean flag)Sets the fact that the show label has been set.voidsetXAnchor(XAnchor labelXAnchor)Sets the label XAnchor.voidsetXAnchorSet(boolean flag)Sets the fact that the label XAnchor has been set.voidsetXDisplacement(float labelXDisplacement)Sets the label X displacement.voidsetXDisplacementSet(boolean flag)Sets the fact that the label X displacement has been set.voidsetYAnchor(YAnchor labelYAnchor)Sets the label YAnchor.voidsetYAnchorSet(boolean flag)Sets the fact that the label YAnchor has been set.voidsetYDisplacement(float labelYDisplacement)Sets the label Y displacement.voidsetYDisplacementSet(boolean flag)Sets the fact that the label Y displacement has been set.
-
-
-
Field Detail
-
LABEL
static final java.lang.String LABEL
Label attribute name.- See Also:
- Constant Field Values
-
ROTATION
static final java.lang.String ROTATION
Label rotation attribute name.- See Also:
- Constant Field Values
-
XANCHOR
static final java.lang.String XANCHOR
Label X anchor attribute name.- See Also:
- Constant Field Values
-
XDISPLACEMENT
static final java.lang.String XDISPLACEMENT
Label X displacementattribute name.- See Also:
- Constant Field Values
-
YANCHOR
static final java.lang.String YANCHOR
Label Y anchor attribute name.- See Also:
- Constant Field Values
-
YDISPLACEMENT
static final java.lang.String YDISPLACEMENT
Label Y displacement attribute name.- See Also:
- Constant Field Values
-
SHOW_LABEL
static final java.lang.String SHOW_LABEL
Show label attribute name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
Returns the label.- Returns:
- the label.
-
isLabelSet
boolean isLabelSet()
Returns whether the label has been set.- Returns:
- true if the label has been set, false otherwise.
-
setLabel
void setLabel(java.lang.String label)
Sets the label.- Parameters:
label- the label.
-
setLabelSet
void setLabelSet(boolean flag)
Sets the fact that the label has been set.- Parameters:
flag- true if the label has been set, false otherwise.
-
getRotation
float getRotation()
Returns the label rotation.- Returns:
- the label rotation.
-
isRotationSet
boolean isRotationSet()
Returns whether the label rotation has been set.- Returns:
- true if the label rotation has been set, false otherwise.
-
setRotation
void setRotation(float labelRotation)
Sets the label rotation.- Parameters:
labelRotation- the label rotation.
-
setRotationSet
void setRotationSet(boolean flag)
Sets the fact that the label rotation has been set.- Parameters:
flag- true if the label rotation has been set, false otherwise.
-
getXAnchor
XAnchor getXAnchor()
Returns the label XAnchor.- Returns:
- the label XAnchor.
-
isXAnchorSet
boolean isXAnchorSet()
Returns whether the label XAnchor has been set.- Returns:
- true if the label XAnchor has been set, false otherwise.
-
setXAnchor
void setXAnchor(XAnchor labelXAnchor)
Sets the label XAnchor.- Parameters:
labelXAnchor- the label XAnchor.
-
setXAnchorSet
void setXAnchorSet(boolean flag)
Sets the fact that the label XAnchor has been set.- Parameters:
flag- true if the label XAnchor has been set, false otherwise.
-
getXDisplacement
float getXDisplacement()
Returns the label X displacement.- Returns:
- the label X displacement.
-
isXDisplacementSet
boolean isXDisplacementSet()
Returns whether the label X displacement has been set.- Returns:
- true if the label X displacement has been set, false otherwise.
-
setXDisplacement
void setXDisplacement(float labelXDisplacement)
Sets the label X displacement.- Parameters:
labelXDisplacement- the label X displacement.
-
setXDisplacementSet
void setXDisplacementSet(boolean flag)
Sets the fact that the label X displacement has been set.- Parameters:
flag- true if the label X displacement has been set, false otherwise.
-
getYAnchor
YAnchor getYAnchor()
Returns the label YAnchor.- Returns:
- the label YAnchor.
-
isYAnchorSet
boolean isYAnchorSet()
Returns whether the label YAnchor has been set.- Returns:
- true if the label YAnchor has been set, false otherwise.
-
setYAnchor
void setYAnchor(YAnchor labelYAnchor)
Sets the label YAnchor.- Parameters:
labelYAnchor- the label YAnchor.
-
setYAnchorSet
void setYAnchorSet(boolean flag)
Sets the fact that the label YAnchor has been set.- Parameters:
flag- true if the label YAnchor has been set, false otherwise.
-
getYDisplacement
float getYDisplacement()
Returns the label Y displacement.- Returns:
- the label Y displacement.
-
isYDisplacementSet
boolean isYDisplacementSet()
Returns whether the label Y displacement has been set.- Returns:
- true if the label Y displacement has been set, false otherwise.
-
setYDisplacement
void setYDisplacement(float labelYDisplacement)
Sets the label Y displacement.- Parameters:
labelYDisplacement- the label Y displacement.
-
setYDisplacementSet
void setYDisplacementSet(boolean flag)
Sets the fact that the label Y displacement has been set.- Parameters:
flag- true if the label Y displacement has been set, false otherwise.
-
getShowLabel
boolean getShowLabel()
Returns the show label.- Returns:
- the show label.
-
isShowLabelSet
boolean isShowLabelSet()
Returns whether the show label has been set.- Returns:
- true if the show label has been set, false otherwise.
-
setShowLabel
void setShowLabel(boolean showLabel)
Sets the show label.- Parameters:
showLabel- the show label.
-
setShowLabelSet
void setShowLabelSet(boolean flag)
Sets the fact that the show label has been set.- Parameters:
flag- true if the show label has been set, false otherwise.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG