public class IlvMarkerIcon extends Object implements Icon, Serializable
Icon
class that draws an IlvMarker
object of
a specific type.
IlvMarkerIcon
can be used by the
IlvDefaultDataAnnotation
class to draw an IlvMarker
next to the graphical representation of a data point.
IlvMarkerFactory
,
IlvMarker
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CIRCLE_MARKER
The circle type value.
|
static int |
DIAMOND_MARKER
The diamond type value.
|
static int |
PLUS_MARKER
The plus type value.
|
static int |
SQUARE_MARKER
The square type value.
|
Constructor and Description |
---|
IlvMarkerIcon()
Creates a new
IlvMarkerIcon of a square type
with a size of 3. |
IlvMarkerIcon(IlvMarker marker,
int size,
IlvStyle style)
Creates a new
IlvMarkerIcon using the given
marker with the specified size. |
IlvMarkerIcon(int type,
int size,
IlvStyle style)
Creates a new
IlvMarkerIcon of the specified type with the
given size. |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns the height of the icon.
|
int |
getIconWidth()
Returns the width of the icon.
|
IlvMarker |
getMarker()
Returns the marker.
|
int |
getSize()
Returns the symbol size.
|
IlvStyle |
getStyle()
Returns the current style.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draws the icon.
|
void |
setSize(int size)
Sets the symbol size.
|
void |
setStyle(IlvStyle style)
Sets the current style.
|
public static final int SQUARE_MARKER
IlvMarkerFactory.SQUARE
public static final int DIAMOND_MARKER
IlvMarkerFactory.DIAMOND
public static final int CIRCLE_MARKER
IlvMarkerFactory.CIRCLE
public static final int PLUS_MARKER
IlvMarkerFactory.PLUS
public IlvMarkerIcon()
IlvMarkerIcon
of a square type
with a size of 3.public IlvMarkerIcon(int type, int size, IlvStyle style)
IlvMarkerIcon
of the specified type with the
given size.IlvMarkerFactory.getMarker(int)
public final IlvMarker getMarker()
public final int getSize()
public void setSize(int size)
public final IlvStyle getStyle()
public void setStyle(IlvStyle style)
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.