public class IlvMapAreaRenderingStyle extends IlvMapRenderingStyle
Constructor and Description |
---|
IlvMapAreaRenderingStyle()
Initializes an instance of the rendering style.
|
IlvMapAreaRenderingStyle(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
Color |
getFillColor()
Gets the color used to fill the areas.
|
IlvPattern |
getFillPattern()
Retrieves the
IlvPattern used to fill areas. |
IlvMapLineRenderingStyle |
getLineRenderingStyle()
Retrieves the
IlvMapLineRenderingStyle used to
draw the stroke of the area. |
Paint |
getPaint()
Gets the
Paint used to fill the area. |
boolean |
isDrawingStroke()
Returns
true if the boundary of the areas is drawn. |
boolean |
isFillingObject()
Returns
true if the areas are filled. |
boolean |
isPaintAbsolute()
Returns
false , the TexturePaint or
GradientPaint will be adapted to the bounding rectangle of
objects. |
boolean |
isPaintZoomed()
Returns
true if the texture or gradient will be zoomed
according to the shape when the object is zoomed. |
void |
setDrawingStroke(boolean stroke)
Specifies if the stroke of the areas is drawn.
|
void |
setFillColor(Color color)
Sets the color used to fill the areas.
|
void |
setFillingObject(boolean fill)
Specifies if the areas are filled.
|
void |
setFillPattern(IlvPattern pattern)
Sets the
IlvPattern used to fill areas. |
void |
setLineRenderingStyle(IlvMapLineRenderingStyle style)
Sets the
IlvMapLineRenderingStyle used to
draw the stroke of the area. |
void |
setPaint(Paint paint)
Set the
Paint used to fill the area. |
void |
setPaintAbsolute(boolean set)
When set to
false , the TexturePaint or
GradientPaint will be adapted to the bounding rectangle of
the object. |
void |
setPaintZoomed(boolean set)
When set to
true , the texture or gradient will be zoomed
according to the shape when the object is zoomed. |
void |
write(IlvOutputStream stream)
Writes the object into an
IlvOutputStream . |
public IlvMapAreaRenderingStyle()
public IlvMapAreaRenderingStyle(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.IlvReadFileException
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.public void setFillColor(Color color)
public Color getFillColor()
public void setPaint(Paint paint)
Paint
used to fill the area.public Paint getPaint()
Paint
used to fill the area.public boolean isPaintZoomed()
true
if the texture or gradient will be zoomed
according to the shape when the object is zoomed. The default value
is false
.
IlvGeneralPath
.public void setPaintZoomed(boolean set)
true
, the texture or gradient will be zoomed
according to the shape when the object is zoomed.
IlvGeneralPath
.set
- If true
, the texture or gradient is zoomed.IlvGeneralPath.setPaintZoomed(boolean)
,
IlvDefaultAreaRenderer.isUsingGeneralPath()
,
IlvDefaultAreaRenderer.setUsingGeneralPath(boolean)
public boolean isPaintAbsolute()
false
, the TexturePaint
or
GradientPaint
will be adapted to the bounding rectangle of
objects. The default value is false
. This value doesn't
affect automatically adjusted Paint
such as
ilog.views.java2d.IlvLinearGradientPaint
.
IlvGeneralPath
.public void setPaintAbsolute(boolean set)
false
, the TexturePaint
or
GradientPaint
will be adapted to the bounding rectangle of
the object. The default value is false
. This value doesn't
affect automatically adjusted Paint
such as
ilog.views.java2d.IlvLinearGradientPaint
.
IlvGeneralPath
.set
- If false
, the paint is not adapted to the
bounding rectangle of objects.IlvGeneralPath.setPaintAbsolute(boolean)
,
IlvDefaultAreaRenderer.isUsingGeneralPath()
,
IlvDefaultAreaRenderer.setUsingGeneralPath(boolean)
public void setFillingObject(boolean fill)
public boolean isFillingObject()
true
if the areas are filled.public void setDrawingStroke(boolean stroke)
IlvMapLineRenderingStyle
.public boolean isDrawingStroke()
true
if the boundary of the areas is drawn.public void setFillPattern(IlvPattern pattern)
IlvPattern
used to fill areas.public IlvPattern getFillPattern()
IlvPattern
used to fill areas.public void setLineRenderingStyle(IlvMapLineRenderingStyle style)
IlvMapLineRenderingStyle
used to
draw the stroke of the area.public IlvMapLineRenderingStyle getLineRenderingStyle()
IlvMapLineRenderingStyle
used to
draw the stroke of the area.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.