|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.graphic.style.IlvMapStyle
ilog.views.maps.label.IlvMapLabelStyle
public class IlvMapLabelStyle
Class holding main graphic attributes for a label, that is, font, fill color, outline color, outline stroke and whether outline should be drawn.
| Field Summary | |
|---|---|
static String |
ALLOW_POINT_OVERLAP
The AllowPointOverlap 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. |
| Fields inherited from class ilog.views.maps.graphic.style.IlvMapStyle |
|---|
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 Summary | |
|---|---|
IlvMapLabelStyle()
Constructs a IlvMapLabelStyle |
|
IlvMapLabelStyle(IlvInputStream stream)
Reads a IlvMapLabelStyle from an IlvInputStream |
|
IlvMapLabelStyle(IlvMapLabelStyle source)
Constructor by copy |
|
| Method Summary | |
|---|---|
IlvMapStyle |
copy()
Creates a copy of the style. |
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. |
float |
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 |
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 |
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(float f)
Sets the line width of the label stroke. |
void |
write(IlvOutputStream stream)
Write a IlvMapLabelStyle into an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public IlvMapLabelStyle()
IlvMapLabelStyle
public IlvMapLabelStyle(IlvInputStream stream)
throws IlvReadFileException
IlvMapLabelStyle from an IlvInputStream
stream - The stream to read from.
IlvReadFileExceptionpublic IlvMapLabelStyle(IlvMapLabelStyle source)
source - source style to copy| Method Detail |
|---|
public IlvMapStyle copy()
copy in class IlvMapStyleIlvMapLabelStyle
public void write(IlvOutputStream stream)
throws IOException
IlvMapLabelStyle into an IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvMapStylestream - The stream to write to.
IOExceptionpublic 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(float f)
f - new line widthsetLabelStroke(Stroke)public float 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||