org.opengis.go.display.style
Interface TextSymbolizer
-
- All Superinterfaces:
- java.lang.Cloneable, GraphicStyle
public interface TextSymbolizer extends GraphicStyle
Encapsulates the style data applicable toGraphics that are of type Text in the sense of SLD (OGC 02-070).Note that the "fill color" of a
TextSymbolizercould also be called the "text color" as it is the primary color used to draw the text.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.awt.ColorDEFAULT_FILL_BACKGROUND_COLORDefault fill background color value.static java.awt.ColorDEFAULT_FILL_COLORDefault fill color value.static floatDEFAULT_FILL_OPACITYDefault fill opacity value.static FillPatternDEFAULT_FILL_PATTERNDefault fill pattern value.static FillStyleDEFAULT_FILL_STYLEDefault fill style value.static java.awt.FontDEFAULT_FONTstatic floatDEFAULT_HALO_RADIUSDefault halo radius value.static floatDEFAULT_ROTATIONDefault rotation.static XAnchorDEFAULT_X_ANCHORDefault xAnchor.static floatDEFAULT_X_DISPLACEMENTDefault xDisplacement.static YAnchorDEFAULT_Y_ANCHORDefault yAnchor.static floatDEFAULT_Y_DISPLACEMENTDefault yDisplacement.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.awt.ColorgetBackgroundColor()Returns the color that is used to fill in a bounding box behind the text, or null if no background is to be drawn using this symbolizer.java.awt.ColorgetFillBackgroundColor()Returns the color that is used as the pattern background color when a stipple pattern is used for the fill color.java.awt.ColorgetFillColor()Returns the color used to draw the text.float[]getFillGradientPoints()Returns the fill gradient points value, or null if there is no fill gradient.floatgetFillOpacity()Returns the fill opacity value.FillPatterngetFillPattern()Returns the fill pattern value.FillStylegetFillStyle()Returns the fill style value.java.awt.FontgetFont()Returns the Font object.java.awt.ColorgetHaloColor()Returns the color that is used to fill in the halo, or null if no halo is to be drawn.floatgetHaloRadius()Returns the halo radius value, or zero if no halo is to be drawn.floatgetRotation()Returns the label rotation.XAnchorgetXAnchor()Returns the label XAnchor.floatgetXDisplacement()Returns the label X displacement.YAnchorgetYAnchor()Returns the label YAnchor.floatgetYDisplacement()Returns the label Y displacement.voidsetBackgroundColor(java.awt.Color backgroundColor)Sets the color that is used for rendering a background behind the text.voidsetFillBackgroundColor(java.awt.Color fillBackgroundColor)Sets the color that is used as the pattern background color when a stipple pattern is used for the fill color.voidsetFillColor(java.awt.Color fillColor)Sets the color used to draw the text.voidsetFillGradientPoints(float[] fillGradientPoints)Sets the fill gradient points value.voidsetFillOpacity(float fillOpacity)Sets the fill opacity value.voidsetFillPattern(FillPattern fillPattern)Sets the fill pattern value.voidsetFillStyle(FillStyle fillStyle)Sets the fill style value.voidsetFont(java.awt.Font object)Sets the Font object.voidsetHaloColor(java.awt.Color haloColor)Sets the halo color.voidsetHaloRadius(float haloRadius)Sets the halo radius value.voidsetRotation(float labelRotation)Sets the label rotation.voidsetXAnchor(XAnchor xAnchor)Sets the label XAnchor.voidsetXDisplacement(float xDisplacement)Sets the label X displacement.voidsetYAnchor(YAnchor yAnchor)Sets the label YAnchor.voidsetYDisplacement(float yDisplacement)Sets the label Y displacement.-
Methods inherited from interface org.opengis.go.display.style.GraphicStyle
addGraphicStyleListener, clone, getImplHint, removeGraphicStyleListener, setImplHint, setPropertiesFrom
-
-
-
-
Field Detail
-
DEFAULT_FILL_COLOR
static final java.awt.Color DEFAULT_FILL_COLOR
Default fill color value.
-
DEFAULT_FILL_BACKGROUND_COLOR
static final java.awt.Color DEFAULT_FILL_BACKGROUND_COLOR
Default fill background color value.
-
DEFAULT_FILL_OPACITY
static final float DEFAULT_FILL_OPACITY
Default fill opacity value.- See Also:
- Constant Field Values
-
DEFAULT_FILL_PATTERN
static final FillPattern DEFAULT_FILL_PATTERN
Default fill pattern value.
-
DEFAULT_FILL_STYLE
static final FillStyle DEFAULT_FILL_STYLE
Default fill style value.
-
DEFAULT_FONT
static final java.awt.Font DEFAULT_FONT
-
DEFAULT_HALO_RADIUS
static final float DEFAULT_HALO_RADIUS
Default halo radius value.- See Also:
- Constant Field Values
-
DEFAULT_ROTATION
static final float DEFAULT_ROTATION
Default rotation.- See Also:
- Constant Field Values
-
DEFAULT_X_ANCHOR
static final XAnchor DEFAULT_X_ANCHOR
Default xAnchor.
-
DEFAULT_X_DISPLACEMENT
static final float DEFAULT_X_DISPLACEMENT
Default xDisplacement.- See Also:
- Constant Field Values
-
DEFAULT_Y_ANCHOR
static final YAnchor DEFAULT_Y_ANCHOR
Default yAnchor.
-
DEFAULT_Y_DISPLACEMENT
static final float DEFAULT_Y_DISPLACEMENT
Default yDisplacement.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFillColor
java.awt.Color getFillColor()
Returns the color used to draw the text. This is the color used to fill the interior of the font glyphs.- Returns:
- the text foreground color.
-
setFillColor
void setFillColor(java.awt.Color fillColor)
Sets the color used to draw the text. This is the color used to fill the interior of the font glyphs.- Parameters:
fillColor- the text foreground color.
-
getFillBackgroundColor
java.awt.Color getFillBackgroundColor()
Returns the color that is used as the pattern background color when a stipple pattern is used for the fill color.- Returns:
- the font glyph background color for stippled text rendering.
-
setFillBackgroundColor
void setFillBackgroundColor(java.awt.Color fillBackgroundColor)
Sets the color that is used as the pattern background color when a stipple pattern is used for the fill color.- Parameters:
fillBackgroundColor- the font glyph background color for stippled text rendering.
-
getFillGradientPoints
float[] getFillGradientPoints()
Returns the fill gradient points value, or null if there is no fill gradient.- Returns:
- the fill gradient points value.
-
setFillGradientPoints
void setFillGradientPoints(float[] fillGradientPoints)
Sets the fill gradient points value.- Parameters:
fillGradientPoints- the fill gradient points value, or null to specify no fill gradient.
-
getFillOpacity
float getFillOpacity()
Returns the fill opacity value.- Returns:
- the fill opacity value.
-
setFillOpacity
void setFillOpacity(float fillOpacity)
Sets the fill opacity value.- Parameters:
fillOpacity- the fill opacity value.
-
getFillPattern
FillPattern getFillPattern()
Returns the fill pattern value.- Returns:
- the fill pattern value.
-
setFillPattern
void setFillPattern(FillPattern fillPattern)
Sets the fill pattern value.- Parameters:
fillPattern- the fill pattern value.
-
getFillStyle
FillStyle getFillStyle()
Returns the fill style value.- Returns:
- the fill style value.
-
setFillStyle
void setFillStyle(FillStyle fillStyle)
Sets the fill style value.- Parameters:
fillStyle- the fill style value.
-
getFont
java.awt.Font getFont()
Returns the Font object.- Returns:
- the Font object.
-
setFont
void setFont(java.awt.Font object)
Sets the Font object.- Parameters:
object- the Font object.
-
getHaloRadius
float getHaloRadius()
Returns the halo radius value, or zero if no halo is to be drawn.- Returns:
- the value of the halo radius.
-
setHaloRadius
void setHaloRadius(float haloRadius)
Sets the halo radius value. If zero, no halo will be drawn.- Parameters:
haloRadius- the value of the halo radius.
-
getHaloColor
java.awt.Color getHaloColor()
Returns the color that is used to fill in the halo, or null if no halo is to be drawn.- Returns:
- the halo color.
-
setHaloColor
void setHaloColor(java.awt.Color haloColor)
Sets the halo color.- Parameters:
haloColor- the halo color.
-
getBackgroundColor
java.awt.Color getBackgroundColor()
Returns the color that is used to fill in a bounding box behind the text, or null if no background is to be drawn using this symbolizer.- Returns:
- the color of the background behind the label, or null if no background will be drawn.
-
setBackgroundColor
void setBackgroundColor(java.awt.Color backgroundColor)
Sets the color that is used for rendering a background behind the text.- Parameters:
backgroundColor- the font glyph background color for stippled text rendering.
-
getRotation
float getRotation()
Returns the label rotation.- Returns:
- the label rotation.
-
setRotation
void setRotation(float labelRotation)
Sets the label rotation.- Parameters:
labelRotation- the label rotation.
-
getXAnchor
XAnchor getXAnchor()
Returns the label XAnchor.- Returns:
- the label XAnchor.
-
setXAnchor
void setXAnchor(XAnchor xAnchor)
Sets the label XAnchor.- Parameters:
xAnchor- the label XAnchor.
-
getXDisplacement
float getXDisplacement()
Returns the label X displacement.- Returns:
- the label X displacement.
-
setXDisplacement
void setXDisplacement(float xDisplacement)
Sets the label X displacement.- Parameters:
xDisplacement- the label X displacement.
-
getYAnchor
YAnchor getYAnchor()
Returns the label YAnchor.- Returns:
- the label YAnchor.
-
setYAnchor
void setYAnchor(YAnchor yAnchor)
Sets the label YAnchor.- Parameters:
yAnchor- the label YAnchor.
-
getYDisplacement
float getYDisplacement()
Returns the label Y displacement.- Returns:
- the label Y displacement.
-
setYDisplacement
void setYDisplacement(float yDisplacement)
Sets the label Y displacement.- Parameters:
yDisplacement- the label Y displacement.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG