public class IlvMapLabelStyle extends IlvMapStyle
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_POINT_OVERLAP
The AllowPointOverlap property name.
|
static String |
BASE_TEXT_DIRECTION
The BaseTextDirection property name.
|
static String |
DRAW_CENTERED
The drawCentered property name.
|
static String |
DRAW_OUTLINE
The DrawOutline property name.
|
static String |
FOLLOW_PATH
The FollowPath property name.
|
static String |
FOREGROUND
The Foreground property name.
|
static String |
LABEL_FONT
The LabelFont property name.
|
static String |
LABEL_STROKE
The LabelStroke property name.
|
static String |
LABELLING_SMALL_AREAS
The LabellingSmallAreas property name.
|
static String |
OUTLINE_COLOR
The OutlineColor property name.
|
static String |
STROKE_WIDTH
The StrokeWidth property name.
|
ALPHA, ALWAYS_ON_TOP, ATTRIBUTE_INFO, CATEGORY, LABEL_ATTRIBUTE, LEGEND_GROUP, PARENT, THIN_CLIENT_BACKGROUND, VISIBLE_IN_3DVIEW, VISIBLE_IN_OVERVIEW, VISIBLE_IN_TREE, VISIBLE_IN_VIEW
Constructor and Description |
---|
IlvMapLabelStyle()
Constructs a
IlvMapLabelStyle |
IlvMapLabelStyle(IlvInputStream stream)
Reads a
IlvMapLabelStyle from an IlvInputStream |
IlvMapLabelStyle(IlvMapLabelStyle source)
Constructor by copy
|
Modifier and Type | Method and Description |
---|---|
IlvMapStyle |
copy()
Creates a copy of the style.
|
int |
getBaseTextDirection()
Retrieves the BaseTextDirection property value.
|
Color |
getForeground()
Returns the fill color of the label.
|
Font |
getLabelFont()
Returns the text font of the label.
|
Stroke |
getLabelStroke()
Returns the outline stroke of the label.
|
Color |
getOutlineColor()
Returns the outline color of the label.
|
double |
getStrokeWidth()
Returns the line width of the label stroke.
|
boolean |
isAllowPointOverlap()
Tests if the labels are allowed to overlap points.
|
boolean |
isDrawCentered()
Tells whether labels should be displayed in the polygon center, even if polygon is not filled.
|
boolean |
isDrawOutline()
Returns whether the outline should be drawn.
|
boolean |
isFollowPath()
Tells whether the labels should follow polylines.
|
boolean |
isInherited(String propertyName)
Retrieves the inherited state of the property.
|
boolean |
isLabellingSmallAreas()
Tells whether small areas should be labeled, even if label is bigger than area.
|
void |
setAllowPointOverlap(boolean b)
Sets the overlap policy for labels and points.
|
void |
setBaseTextDirection(int textDir)
Sets the base text direction.
|
void |
setDrawCentered(boolean drawCentered)
Sets whether labels should be displayed in the polygon center, even if polygon is not filled.
|
void |
setDrawOutline(boolean drawOutline)
Sets whether the outline should be drawn.
|
void |
setFollowPath(boolean labelSmallAreas)
Sets whether the labels should follow polylines.
|
void |
setForeground(Color fillColor)
Sets the fill color of the label.
|
void |
setLabelFont(Font labelFont)
Sets the text font of the label.
|
void |
setLabellingSmallAreas(boolean labelSmallAreas)
Sets whether small areas should be labeled, even if label is bigger than area.
|
void |
setLabelStroke(Stroke labelStroke)
Returns the stroke of the label.
|
void |
setOutlineColor(Color outlineColor)
Sets the outline color of the label.
|
void |
setStrokeWidth(double sw)
Sets the line width of the label stroke.
|
void |
write(IlvOutputStream stream)
Write a
IlvMapLabelStyle into an IlvOutputStream . |
addAttributeListener, addChild, addStyleListener, addWeakStyleListener, equals, getAlpha, getAttribute, getAttribute, getAttributeFilter, getAttributeInfo, getAttributeListeners, getCategory, getChildren, getDefaultValues, getGraphic, getLabelAttribute, getLegendGroup, getListeners, getParent, getStyleListeners, hashCode, isAlwaysOnTop, isThinClientBackground, isVisibleIn3DView, isVisibleInOverview, isVisibleInTree, isVisibleInView, objectEquals, removeAttributeListener, removeChild, removeStyleListener, setAlpha, setAlwaysOnTop, setAttribute, setAttributeFilter, setAttributeInfo, setCategory, setGraphic, setInherited, setLabelAttribute, setLegendGroup, setParent, setThinClientBackground, setVisibleIn3DView, setVisibleInOverview, setVisibleInTree, setVisibleInView
public static final String FOREGROUND
public static final String LABEL_FONT
public static final String LABEL_STROKE
public static final String OUTLINE_COLOR
public static final String DRAW_OUTLINE
public static final String LABELLING_SMALL_AREAS
public static final String DRAW_CENTERED
public static final String FOLLOW_PATH
public static final String STROKE_WIDTH
public static final String ALLOW_POINT_OVERLAP
public static final String BASE_TEXT_DIRECTION
public IlvMapLabelStyle()
IlvMapLabelStyle
public IlvMapLabelStyle(IlvInputStream stream) throws IlvReadFileException
IlvMapLabelStyle
from an IlvInputStream
stream
- The stream to read from.IlvReadFileException
public IlvMapLabelStyle(IlvMapLabelStyle source)
source
- source style to copypublic IlvMapStyle copy()
copy
in class IlvMapStyle
IlvMapLabelStyle
public boolean isInherited(String propertyName)
isInherited
in interface IlvInheritable
isInherited
in class IlvMapStyle
propertyName
- The name of the property to check.true
if the property is marked as inherited, false
otherwise.IlvMapStyle.isInherited(java.lang.String)
public void write(IlvOutputStream stream) throws IOException
IlvMapLabelStyle
into an IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvMapStyle
stream
- The stream to write to.IOException
public Font getLabelFont()
public void setLabelFont(Font labelFont)
labelFont
- The text font.public Color getForeground()
public void setForeground(Color fillColor)
fillColor
- The fill color.public Color getOutlineColor()
public void setOutlineColor(Color outlineColor)
outlineColor
- The outline color.public Stroke getLabelStroke()
public void setLabelStroke(Stroke labelStroke)
labelStroke
- The label stroke.public boolean isDrawOutline()
true
if the outline should be drawn false
otherwise.public void setDrawOutline(boolean drawOutline)
drawOutline
- true
if the outline should be drawn false
otherwise.public void setLabellingSmallAreas(boolean labelSmallAreas)
labelSmallAreas
- true
if the small areas should be labeled, false
otherwise.public boolean isDrawCentered()
true
labels should be displayed in the polygon center, false
otherwise.public void setDrawCentered(boolean drawCentered)
drawCentered
- true
if labels should be displayed in the polygon center, false
otherwise.public boolean isLabellingSmallAreas()
true
if the small areas should be labeled, false
otherwise.public void setFollowPath(boolean labelSmallAreas)
labelSmallAreas
- true
if the the labels should follow polylines, false
otherwise.public boolean isFollowPath()
true
if the the labels should follow polylines, false
otherwise.public void setStrokeWidth(double sw)
sw
- new line widthsetLabelStroke(Stroke)
public double getStrokeWidth()
public void setAllowPointOverlap(boolean b)
b
- Set to true
to allow overlap, set to
false
to avoid overlap.public boolean isAllowPointOverlap()
true
is
returned.public void setBaseTextDirection(int textDir)
textDir
- New bas text directionpublic int getBaseTextDirection()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.