public class IlvMapPointRenderingStyle extends IlvMapRenderingStyle
IlvDefaultPointRenderer
.
Two sets of parameters are stored in this style: a set to customize
an IlvMarker
for which you can specify marker type size
and color, and a set to customize an IlvFontMarker
for
which you can specify a character, a font, an antialiasing mode, a fill
paint, a stroke paint, and a rotation angle.Constructor and Description |
---|
IlvMapPointRenderingStyle()
Constructs a new
IlvMapPointRenderingStyle
with the defaults parameters values. |
IlvMapPointRenderingStyle(IlvInputStream stream)
Reads a
IlvMapPointRenderingStyle from
an IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
char |
getChar()
Retrieves the character used to render a point.
|
Paint |
getFillPaint()
Retrieves the fill paint used to fill the character.
|
Font |
getFont()
Retrieves the font used to render a point.
|
Color |
getMarkerColor()
Retrieves the marker color.
|
int |
getMarkerSize()
Retrieves the marker size
|
int |
getMarkerType()
Retrieves the marker type.
|
double |
getRotation()
Retrieves the angle used to rotate the character.
|
Paint |
getStrokePaint()
Retrieves the paint used to draw the outline the character.
|
boolean |
isAntialiasing()
Retrieves the antialiasing value.
|
void |
setAntialiasing(boolean antialiasing)
Specifies is the
IlvFontMarker should
render the character antialiased. |
void |
setChar(char c)
Sets the character used to render a point when an
IlvFontMarker is used. |
void |
setFillPaint(Paint paint)
Sets the fill paint used to fill the character.
|
void |
setFont(Font font)
Sets the font used to render a point when an
IlvFontMarker is used. |
void |
setMarkerColor(Color color)
Sets the marker color.
|
void |
setMarkerSize(int size)
Sets the size of the marker
This attribute is only used when the associated renderer
produces an
IlvMarker . |
void |
setMarkerType(int type)
Sets the marker type used to render the points.
|
void |
setRotation(double angle)
Sets the angle (in degrees) for the rotation of the character.
|
void |
setStrokePaint(Paint paint)
Sets the stroke paint used to draw the outline the character.
|
void |
write(IlvOutputStream stream)
Writes this style in an
IlvOutputStream |
public IlvMapPointRenderingStyle()
IlvMapPointRenderingStyle
with the defaults parameters values.
Default values are:
public IlvMapPointRenderingStyle(IlvInputStream stream) throws IlvReadFileException
IlvMapPointRenderingStyle
from
an IlvInputStream
.stream
- The IlvInputStream
.IlvReadFileException
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
stream
- The IlvOutputStream
.IOException
- thrown when an exception occurs during
the write operation for this object.public void setMarkerType(int type)
IlvMarker
type
- The marker type.
Recognized values are those recognized by an IlvMarker
:
public int getMarkerType()
public void setMarkerSize(int size)
IlvMarker
.size
- The marker size.public int getMarkerSize()
public void setMarkerColor(Color color)
IlvMarker
.color
- The marker color.public Color getMarkerColor()
public void setChar(char c)
IlvFontMarker
is used. The marker will
then display the character c of the font
specified by the setFont
method.c
- The character to be displayed.public char getChar()
public void setFont(Font font)
IlvFontMarker
is used. The marker will
then display the character specified by the setChar
method of the font specified by this method.font
- The font.public Font getFont()
public void setAntialiasing(boolean antialiasing)
IlvFontMarker
should
render the character antialiased.
This attribute is only used when the associated renderer
produces an IlvFontMarker
.antialiasing
- true
if the character will
be rendered antialiased, false
otherwise.public boolean isAntialiasing()
true
if the character is rendered antialiased,
false
otherwise.public void setFillPaint(Paint paint)
IlvFontMarker
.paint
- The Paint
used to fill the character.
If this parameter is set to null
, the character
will not be filled.public Paint getFillPaint()
public void setStrokePaint(Paint paint)
IlvFontMarker
.paint
- the Paint
used to draw the outline of
the character.
If this parameter is set to null
, the outline of the
character will not be drawn.public Paint getStrokePaint()
public void setRotation(double angle)
IlvFontMarker
.angle
- The angle in degrees.public double getRotation()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.