ilog.views.maps.graphic.style
Class IlvPolylineStyle

java.lang.Object
  extended by ilog.views.maps.graphic.style.IlvMapStyle
      extended by ilog.views.maps.graphic.style.IlvPolylineStyle
All Implemented Interfaces:
IlvPersistentObject, IlvInheritable
Direct Known Subclasses:
IlvGraphicPathStyle

public class IlvPolylineStyle
extends IlvMapStyle

An IlvMapStyle intended to be used by a IlvMapPolyline graphic object. This style redefines the Stroke, EndCap, LineJoin, LineStyle ... graphic properties.

Since:
JViews 7.5

Field Summary
static String BACKGROUND
          The Background property name.
static String DECORATION
          The Decoration attribute name.
static String DECORATION_ONLY
          The DecorationOnly attribute name.
static String DECORATION_PAINT
          The DecorationPaint attribute name.
static String END_CAP
          The EndCap property name.
static String FOREGROUND
          The Foreground attribute name.
static String LINE_JOIN
          The LineJoin property name.
static String LINE_STYLE
          The LineStyle property name.
static String LINE_WIDTH
          The LineWidth property name.
static String STROKE
          The Stroke property name.
 
Fields inherited from class ilog.views.maps.graphic.style.IlvMapStyle
ALPHA, ALWAYS_ON_TOP, ATTRIBUTE_INFO, CATEGORY, LABEL_ATTRIBUTE, LEGEND_GROUP, PARENT, THIN_CLIENT_BACKGROUND, VISIBLE_IN_3DVIEW, VISIBLE_IN_OVERVIEW, VISIBLE_IN_TREE, VISIBLE_IN_VIEW
 
Constructor Summary
IlvPolylineStyle()
          Create a IlvPolylineStyle
IlvPolylineStyle(IlvInputStream stream)
          Reads an IlvPolylineStyle from an IlvInputStream
IlvPolylineStyle(IlvPolylineStyle source)
          Creates s IlvPolyLine by copying an existing one.
 
Method Summary
 IlvMapStyle copy()
          Return a copy of the style.
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 Color getBackground()
          Retrieves the Background property value.
 IlvPathDecoration getDecoration()
          Retrieves the Decoration property value.
 Paint getDecorationPaint()
          Retrieves the DecorationPaint property value.
 int getEndCap()
          Retrieves the EndCap property value.
 Color getForeground()
          Retrieve the FOREGROUND attribute value.
 int getLineJoin()
          Retrieves the LineJoin property value.
 float[] getLineStyle()
          Retrieves the LineStyle property value.
 float getLineWidth()
          Retrieves the LineWidth property value.
 Stroke getStroke()
          Retrieves the Stroke property value.
 int hashCode()
          
 boolean isDecorationOnly()
          Retrieves the DecorationOnly property value.
 void setBackground(Color b)
          Sets the Background property value.
 void setDecoration(IlvPathDecoration decoration)
          Sets the Decoration property value.
 void setDecorationOnly(boolean on)
          Sets the DecorationOnly property value.
 void setDecorationPaint(Paint p)
          Sets the DecorationPaint property value.
 void setEndCap(int cap)
          Sets the EndCap property value.
 void setForeground(Color c)
          Sets the FOREGROUND attribute value.
 void setLineJoin(int join)
          Sets the LineJoin property value.
 void setLineStyle(float[] style)
          Sets the LineStyle property value.
 void setLineWidth(float width)
          Sets the LineWidth property value.
 void setStroke(Stroke s)
          Sets the Stroke property value.
 void write(IlvOutputStream stream)
          Writes an IllPolylineStyle to an IlvOutputStream
 
Methods inherited from class ilog.views.maps.graphic.style.IlvMapStyle
addAttributeListener, addChild, addStyleListener, addWeakStyleListener, getAlpha, getAttribute, getAttribute, getAttributeFilter, getAttributeInfo, getAttributeListeners, getCategory, getChildren, getDefaultValues, getGraphic, getLabelAttribute, getLegendGroup, getListeners, getParent, getStyleListeners, isAlwaysOnTop, isInherited, isThinClientBackground, isVisibleIn3DView, isVisibleInOverview, isVisibleInTree, isVisibleInView, objectEquals, removeAttributeListener, removeChild, removeStyleListener, setAlpha, setAlwaysOnTop, setAttribute, setAttributeFilter, setAttributeInfo, setCategory, setGraphic, setInherited, setLabelAttribute, setLegendGroup, setParent, setThinClientBackground, setVisibleIn3DView, setVisibleInOverview, setVisibleInTree, setVisibleInView
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOREGROUND

public static final String FOREGROUND
The Foreground attribute name.

See Also:
Constant Field Values

DECORATION

public static final String DECORATION
The Decoration attribute name.

See Also:
Constant Field Values

DECORATION_ONLY

public static final String DECORATION_ONLY
The DecorationOnly attribute name.

See Also:
Constant Field Values

DECORATION_PAINT

public static final String DECORATION_PAINT
The DecorationPaint attribute name.

See Also:
Constant Field Values

BACKGROUND

public static final String BACKGROUND
The Background property name.

See Also:
Constant Field Values

STROKE

public static final String STROKE
The Stroke property name.

See Also:
Constant Field Values

END_CAP

public static final String END_CAP
The EndCap property name.

See Also:
Constant Field Values

LINE_JOIN

public static final String LINE_JOIN
The LineJoin property name.

See Also:
Constant Field Values

LINE_STYLE

public static final String LINE_STYLE
The LineStyle property name.

See Also:
Constant Field Values

LINE_WIDTH

public static final String LINE_WIDTH
The LineWidth property name.

See Also:
Constant Field Values
Constructor Detail

IlvPolylineStyle

public IlvPolylineStyle(IlvInputStream stream)
                 throws IlvReadFileException
Reads an IlvPolylineStyle from an IlvInputStream

Parameters:
stream - The stream to read from.
Throws:
IlvReadFileException

IlvPolylineStyle

public IlvPolylineStyle()
Create a IlvPolylineStyle


IlvPolylineStyle

public IlvPolylineStyle(IlvPolylineStyle source)
Creates s IlvPolyLine by copying an existing one.

Parameters:
source - The polyline to copy.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes an IllPolylineStyle to an IlvOutputStream

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvMapStyle
Parameters:
stream - The stream to write to.
Throws:
IOException

copy

public IlvMapStyle copy()
Return a copy of the style.

Overrides:
copy in class IlvMapStyle
Returns:
A copy of the style.
See Also:
IlvMapStyle.copy()

hashCode

public int hashCode()

Overrides:
hashCode in class IlvMapStyle

equals

public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class IlvMapStyle
See Also:
IlvMapStyle.equals(java.lang.Object)

getForeground

public Color getForeground()
Retrieve the FOREGROUND attribute value.

Returns:
The FOREGROUND attribute value.

setForeground

public void setForeground(Color c)
Sets the FOREGROUND attribute value.

Parameters:
c - The FOREGROUND attribute value as a Color

getBackground

public Color getBackground()
Retrieves the Background property value.

Returns:
The Background property value.

setBackground

public void setBackground(Color b)
Sets the Background property value.

Parameters:
b - The Background property value.

setStroke

public void setStroke(Stroke s)
Sets the Stroke property value.

Parameters:
s - The Stroke property value.

getStroke

public Stroke getStroke()
Retrieves the Stroke property value.

Returns:
The Stroke property value.

getEndCap

public int getEndCap()
Retrieves the EndCap property value.

Returns:
The EndCap property value.

setEndCap

public void setEndCap(int cap)
Sets the EndCap property value.

Parameters:
cap - The EndCap property value.

getLineJoin

public int getLineJoin()
Retrieves the LineJoin property value.

Returns:
The LineJoin property value.

setLineJoin

public void setLineJoin(int join)
Sets the LineJoin property value.

Parameters:
join - The LineJoin property value.

getLineStyle

public float[] getLineStyle()
Retrieves the LineStyle property value.

Returns:
The LineStyle property value.

setLineStyle

public void setLineStyle(float[] style)
Sets the LineStyle property value.

Parameters:
style - The LineStyle property value.

setLineWidth

public void setLineWidth(float width)
Sets the LineWidth property value.

Parameters:
width - The LineWidth property value.

getLineWidth

public float getLineWidth()
Retrieves the LineWidth property value.

Returns:
The LineWidth property value.

setDecoration

public void setDecoration(IlvPathDecoration decoration)
Sets the Decoration property value.

Parameters:
decoration - The Decoration property value.

getDecoration

public IlvPathDecoration getDecoration()
Retrieves the Decoration property value.

Returns:
The Decoration property value.

setDecorationOnly

public void setDecorationOnly(boolean on)
Sets the DecorationOnly property value.

Parameters:
on - The DecorationOnly property value.

isDecorationOnly

public boolean isDecorationOnly()
Retrieves the DecorationOnly property value.

Returns:
The DecorationOnly property value.

setDecorationPaint

public void setDecorationPaint(Paint p)
Sets the DecorationPaint property value.

Parameters:
p - The DecorationPaint property value.

getDecorationPaint

public Paint getDecorationPaint()
Retrieves the DecorationPaint property value.

Returns:
The DecorationPaint property value.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.