public class IlvPointStyle extends IlvMapStyle
IlvMapStyle intended to be used with a
IlvMapMarker.| Modifier and Type | Field and Description |
|---|---|
static String |
FOREGROUND
The Foreground property name.
|
static String |
MARKER_CHAR
The MarkerChar property name.
|
static String |
MARKER_FONT
The MarkerFont property name.
|
static String |
MARKER_IMAGE
The MarkerImage property name.
|
static String |
MARKER_IMAGE_SOURCE
The MarkerImageSource property name.
|
static String |
MARKER_SIZE
The MarkerSize property name.
|
static String |
MARKER_TYPE
The MarkerType 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 |
|---|
IlvPointStyle()
Constructs an
IlvPointStyle |
IlvPointStyle(IlvInputStream stream)
Reads a
IlvPointStyle from a IlvInputStream |
IlvPointStyle(IlvPointStyle source)
Constructs a
IlvPointStyle by copying an existing one. |
| 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.
|
char |
getChar()
Retrieves the Type attribute value.
|
Font |
getFont()
Retrieves the Font attribute value.
|
Color |
getForeground()
Retrieve the
FOREGROUND attribute value. |
Image |
getImage()
Retrieves either an image from the ImageSource property or the
image set by calling
setImage(Image). |
String |
getImageSource()
Retrieves the ImageSource attribute value.
|
int |
getSize()
Retrieves the Size attribute value.
|
int |
getType()
Retrieves the Type attribute value.
|
int |
hashCode() |
void |
setChar(char tchar)
Sets the Char attribute value.
|
void |
setFont(Font font)
Sets the Font attribute value.
|
void |
setForeground(Color c)
Sets the
FOREGROUND attribute value. |
void |
setImage(Image img)
Sets an
Image object so that calls to getImage
will return it. |
void |
setImageSource(String source)
Sets the ImageSource attribute value.
|
void |
setSize(int size)
Sets the Size attribute value.
|
void |
setType(int type)
Sets the Type 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, 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, setVisibleInViewpublic static final String FOREGROUND
public static final String MARKER_SIZE
public static final String MARKER_TYPE
public static final String MARKER_CHAR
public static final String MARKER_FONT
public static final String MARKER_IMAGE
public static final String MARKER_IMAGE_SOURCE
public IlvPointStyle(IlvInputStream stream) throws IlvReadFileException
IlvPointStyle from a IlvInputStreamstream - The stream to read from.IlvReadFileExceptionpublic IlvPointStyle()
IlvPointStylepublic IlvPointStyle(IlvPointStyle source)
IlvPointStyle by copying an existing one.source - The style to copy.public void write(IlvOutputStream stream) throws IOException
IlvPointStyle into an IlvOutputStreamwrite in interface IlvPersistentObjectwrite in class IlvMapStylestream - The stream to write to.IOExceptionpublic IlvMapStyle copy()
copy in class IlvMapStyleIlvMapStyle.copy()public int hashCode()
hashCode in class IlvMapStylepublic boolean equals(Object o)
equals in class IlvMapStyleIlvMapStyle.equals(java.lang.Object)public Color getForeground()
FOREGROUND attribute value.FOREGROUND attribute value.public void setForeground(Color c)
FOREGROUND attribute value.c - The FOREGROUND attribute value as a Colorpublic int getSize()
public void setSize(int size)
size - The marker size.public int getType()
public void setType(int type)
type - The Type attribute value.public Font getFont()
public void setFont(Font font)
font - The Type attribute value.public char getChar()
public void setChar(char tchar)
tchar - The Char attribute value.public String getImageSource()
public void setImageSource(String source)
source - The ImageSource attribute value.public Image getImage()
setImage(Image).
If the ImageSource property has been set to a valid image location,
the corresponding image is returned.null.setImageSource(String),
getImageSource(),
setImage(Image)public void setImage(Image img)
Image object so that calls to getImage
will return it.
Setting img to null will force the
getImage method to retrieve the image from the ImageSource
property.img - The image to set.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.