|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.rendering.IlvMapRenderingStyle
ilog.views.maps.rendering.IlvMapLineRenderingStyle
public class IlvMapLineRenderingStyle
This rendering style stores style parameters to draw lines.
| Constructor Summary | |
|---|---|
IlvMapLineRenderingStyle()
Initializes an instance of the renderer. |
|
IlvMapLineRenderingStyle(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
| Method Summary | |
|---|---|
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. |
float |
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. |
float |
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. |
float |
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(float 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(float 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapLineRenderingStyle()
public IlvMapLineRenderingStyle(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
stream - the output stream
IOException - 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 lines
public 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.
getScaledLineWidth(ilog.views.maps.srs.coordsys.IlvCoordinateSystem, ilog.views.maps.srs.coordsys.IlvCoordinateSystem),
getScale(),
setScale(float)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.
getScaledLineWidth(ilog.views.maps.srs.coordsys.IlvCoordinateSystem, ilog.views.maps.srs.coordsys.IlvCoordinateSystem),
getScale(),
setScale(float)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.
IlvGeneralPath.isPaintZoomed(),
IlvDefaultCurveRenderer.isUsingGeneralPath(),
IlvDefaultCurveRenderer.setUsingGeneralPath(boolean)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.
IlvGeneralPath.isPaintAbsolute(),
IlvDefaultCurveRenderer.isUsingGeneralPath(),
IlvDefaultCurveRenderer.setUsingGeneralPath(boolean)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(float lineWidth)
Paint has been set
and a IlvGeneralPath is used.
public float 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 float describing the dash.public float[] getLineStyle()
public void setScale(float scale)
scale - The scale.public float getScale()
public float[] getScaledLineStyle(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
setScale(float),
getScale()
public float getScaledLineWidth(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
setScale(float),
getScale()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||