public class IlvGridStyle extends IlvMapStyle
IlvMapStyle
intended to be used with a grid.Modifier and Type | Field and Description |
---|---|
static String |
BASE_TEXT_DIRECTION
The baseTextDirection property name.
|
static String |
GRID_COLOR
The gridColor property name.
|
static String |
TEXT_COLOR
The textColor property name.
|
static String |
TEXT_FONT
The textFont property name.
|
static String |
TEXT_OUTLINE_COLOR
The textOutlineColor 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 |
---|
IlvGridStyle()
Constructs an
IlvPointStyle |
IlvGridStyle(IlvGridStyle source)
Constructs a
IlvPointStyle by copying an existing one. |
IlvGridStyle(IlvInputStream stream)
Reads a
IlvGridStyle from a IlvInputStream |
Modifier and Type | Method and Description |
---|---|
IlvMapStyle |
copy()
Return a copy of the style.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
int |
getBaseTextDirection()
Returns the base direction of the grid labels.
|
Color |
getGridColor()
Retrieve the
GRID_COLOR attribute value. |
Color |
getTextColor()
Retrieve the
TEXT_COLOR attribute value. |
Font |
getTextFont()
Retrieve the
TEXT_FONT attribute value. |
Color |
getTextOutlineColor()
Retrieve the
TEXT_OUTLINE_COLOR attribute value. |
void |
setBaseTextDirection(int textDir)
Changes the base direction of the grid labels.
|
void |
setGridColor(Color c)
Sets the
GRID_COLOR attribute value. |
void |
setTextColor(Color c)
Sets the
TEXT_COLOR attribute value. |
void |
setTextFont(Font c)
Sets the
TEXT_FONT attribute value. |
void |
setTextOutlineColor(Color c)
Sets the
TEXT_OUTLINE_COLOR attribute value. |
void |
write(IlvOutputStream stream)
write an
IlvPointStyle into an IlvOutputStream |
addAttributeListener, addChild, addStyleListener, addWeakStyleListener, getAlpha, getAttribute, getAttribute, getAttributeFilter, getAttributeInfo, getAttributeListeners, getCategory, getChildren, getDefaultValues, getGraphic, getLabelAttribute, getLegendGroup, getListeners, getParent, getStyleListeners, hashCode, isAlwaysOnTop, isInherited, 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 GRID_COLOR
public static final String TEXT_COLOR
public static final String TEXT_OUTLINE_COLOR
public static final String TEXT_FONT
public static final String BASE_TEXT_DIRECTION
public IlvGridStyle(IlvInputStream stream) throws IlvReadFileException
IlvGridStyle
from a IlvInputStream
stream
- The stream to read from.IlvReadFileException
public IlvGridStyle()
IlvPointStyle
public IlvGridStyle(IlvGridStyle source)
IlvPointStyle
by copying an existing one.source
- The style to copy.public void write(IlvOutputStream stream) throws IOException
IlvPointStyle
into an IlvOutputStream
write
in interface IlvPersistentObject
write
in class IlvMapStyle
stream
- The stream to write to.IOException
public IlvMapStyle copy()
copy
in class IlvMapStyle
IlvMapStyle.copy()
public boolean equals(Object o)
equals
in class IlvMapStyle
IlvMapStyle.equals(java.lang.Object)
public Color getGridColor()
GRID_COLOR
attribute value.GRID_COLOR
attribute value.public void setGridColor(Color c)
GRID_COLOR
attribute value.c
- The GRID_COLOR
attribute value as a Color
public Color getTextColor()
TEXT_COLOR
attribute value.TEXT_COLOR
attribute value.public void setTextOutlineColor(Color c)
TEXT_OUTLINE_COLOR
attribute value.c
- The TEXT_OUTLINE_COLOR
attribute value as a Color
public Color getTextOutlineColor()
TEXT_OUTLINE_COLOR
attribute value.TEXT_OUTLINE_COLOR
attribute value.public void setTextColor(Color c)
TEXT_COLOR
attribute value.c
- The TEXT_COLOR
attribute value as a Color
public Font getTextFont()
TEXT_FONT
attribute value.TEXT_FONT
attribute value.public void setTextFont(Font c)
TEXT_FONT
attribute value.c
- The TEXT_FONT
attribute value as a Font
public void setBaseTextDirection(int textDir)
textDir
- One of the following values:
IlvBidiUtil.INHERITED_DIRECTION
: base text direction is
inherited
IlvBidiUtil.COMPONENT_DIRECTION
: default GUI base text direction
IlvBidiUtil.LEFT_TO_RIGHT
: left-to-right base text direction.
IlvBidiUtil.RIGHT_TO_LEFT
: right-to-left base text direction.
IlvBidiUtil.CONTEXTUAL_DIRECTION
: contextual base text
direction.
public int getBaseTextDirection()
IlvBidiUtil.INHERITED_DIRECTION
: base text direction is
inherited
IlvBidiUtil.COMPONENT_DIRECTION
: default GUI base text direction
IlvBidiUtil.LEFT_TO_RIGHT
: left-to-right base text direction.
IlvBidiUtil.RIGHT_TO_LEFT
: right-to-left base text direction.
IlvBidiUtil.CONTEXTUAL_DIRECTION
: contextual base text
direction.
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.