public class IlvMapLineRenderingStyle extends IlvMapRenderingStyle
Constructor and Description |
---|
IlvMapLineRenderingStyle()
Initializes an instance of the renderer.
|
IlvMapLineRenderingStyle(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
int |
getEndCap()
Retrieves the end cap style.
|
Color |
getForeground()
Retrieves the foreground color.
|
int |
getLineJoin()
Retrieves the line join style.
|
float[] |
getLineStyle()
Returns the array representing the lengths of the dash segments.
|
double |
getLineWidth()
Retrieves the line width.
|
Paint |
getPaint()
Retrieves the
Paint used to draw the lines. |
IlvPathDecoration |
getPathDecoration()
Retrieves the
IlvPathDecoration used to draw the lines. |
double |
getScale()
Returns the scale at which the line width is specified.
|
float[] |
getScaledLineStyle(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
Returns the line style in the manager coordinate system so that
the actual style is observed for the specified scale.
|
double |
getScaledLineWidth(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
Returns the line width in the manager coordinate system so that
the actual line width is observed for the scale specified in this
rendering style.
|
Stroke |
getStroke()
Returns the
Stroke used to draw the lines. |
boolean |
isDecorationOnly()
Tells if the object should draw only its decoration.
|
boolean |
isLineWidthZoomed()
Returns
true if the line width of this rendering style
is zoomed when the object is zoomed. |
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 |
setDecorationOnly(boolean decorationOnly)
Sets if the object should only draw its decorations.
|
void |
setEndCap(int endCap)
Sets the end cap style.
|
void |
setForeground(Color color)
Sets the foreground color.
|
void |
setLineJoin(int lineJoin)
Sets the line join style.
|
void |
setLineStyle(float[] lineStyle)
Sets the array representing the lengths of the dash segments
of polylines generated by this renderer.
|
void |
setLineWidth(double lineWidth)
Sets the line width.
|
void |
setLineWidthZoomed(boolean set)
When set to
true , the line width of this rendering style
is zoomed when the object is zoomed. |
void |
setPaint(Paint paint)
Sets the
Paint used to draw the lines |
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 |
setPathDecoration(IlvPathDecoration decoration)
Sets the
IlvPathDecoration used to draw the lines. |
void |
setScale(double scale)
Sets the scale at which the line width is specified.
|
void |
setStroke(Stroke stroke)
Sets the
Stroke used to draw the lines. |
void |
write(IlvOutputStream stream)
Writes the object in a
IlvOutputStream . |
public IlvMapLineRenderingStyle()
public IlvMapLineRenderingStyle(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 setStroke(Stroke stroke)
Stroke
used to draw the lines.
When a stroke is set, the line width stored in this rendering style
is not used anymore.public Stroke getStroke()
Stroke
used to draw the lines.public void setPaint(Paint paint)
Paint
used to draw the linespublic Paint getPaint()
Paint
used to draw the lines.public void setPathDecoration(IlvPathDecoration decoration)
IlvPathDecoration
used to draw the lines.public boolean isDecorationOnly()
public void setDecorationOnly(boolean decorationOnly)
public IlvPathDecoration getPathDecoration()
IlvPathDecoration
used to draw the lines.public boolean isLineWidthZoomed()
true
if the line width of this rendering style
is zoomed when the object is zoomed. If the line width is zoomed, it
it scales according to the current map scale.
The default value is true
.public void setLineWidthZoomed(boolean set)
true
, the line width of this rendering style
is zoomed when the object is zoomed. If the line width is zoomed, it
it scales according to the current map scale.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)
,
IlvDefaultCurveRenderer.isUsingGeneralPath()
,
IlvDefaultCurveRenderer.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)
,
IlvDefaultCurveRenderer.isUsingGeneralPath()
,
IlvDefaultCurveRenderer.setUsingGeneralPath(boolean)
public void setForeground(Color color)
Paint
has been set
and a IlvGeneralPath
is used.public Color getForeground()
public void setLineWidth(double lineWidth)
Paint
has been set
and a IlvGeneralPath
is used.public double getLineWidth()
public void setEndCap(int endCap)
Paint
has been set,
and a IlvGeneralPath
is used.endCap
- The end cap. Valid values are java.awt.BasicStroke.CAP_BUTT
,
java.awt.BasicStroke.CAP_ROUND
and
java.awt.BasicStroke.CAP_SQUARE
.public int getEndCap()
public void setLineJoin(int lineJoin)
Paint
has been set,
and a IlvGeneralPath
is used.lineJoin
- The line join. Valid values are java.awt.BasicStroke.JOIN_BEVEL
,
java.awt.BasicStroke.JOIN_MITER
and
java.awt.BasicStroke.JOIN_ROUND
.public int getLineJoin()
public void setLineStyle(float[] lineStyle)
lineStyle
- An array of double describing the dash.public float[] getLineStyle()
public void setScale(double scale)
scale
- The scale.public double getScale()
public float[] getScaledLineStyle(IlvCoordinateSystem sourceCS, IlvCoordinateSystem targetCS)
setScale(double)
,
getScale()
public double getScaledLineWidth(IlvCoordinateSystem sourceCS, IlvCoordinateSystem targetCS)
setScale(double)
,
getScale()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.