ilog.views.maps.graphic.style
Class IlvGraphicPathStyle

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

public class IlvGraphicPathStyle
extends IlvPolylineStyle

An IlvMapStyle intended to be used with a IlvMapGraphicPath.

Since:
JViews 7.5

Field Summary
static String DO_FILL
          The Filling attribute name.
static String DO_STROKE
          The DrawingStroke attribute name.
static String PAINT
          The Paint attribute name.
 
Fields inherited from class ilog.views.maps.graphic.style.IlvPolylineStyle
BACKGROUND, DECORATION, DECORATION_ONLY, DECORATION_PAINT, END_CAP, FOREGROUND, LINE_JOIN, LINE_STYLE, LINE_WIDTH, STROKE
 
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
IlvGraphicPathStyle()
          Constructs an IlvGraphicPathStyle
IlvGraphicPathStyle(IlvGraphicPathStyle source)
          Constructor by copy
IlvGraphicPathStyle(IlvInputStream stream)
          Reads IlvGraphicPathStyle from an IlvInputStream
 
Method Summary
 IlvMapStyle copy()
          Constructor by copy
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 Paint getPaint()
          Retrieves the paint attribute value.
 int hashCode()
          
 boolean isDrawingStroke()
          Tells if the drawing stroke attribute is set.
 boolean isFilling()
          Tells if the drawing stroke attribute is set or not.
 boolean isInherited(String propertyName)
          Retrieves the inherited state of the property.
 void setDrawingStroke(boolean stroke)
          Sets the DrawingStroke
 void setFilling(boolean fill)
          Set the filling attribute value.
 void setInherited(String propertyName, boolean inherited)
          Set the inherited state for this property.
 void setPaint(Paint paint)
          Sets the paint attribute value.
 void write(IlvOutputStream stream)
          Write this style to an IlvOutputStream
 
Methods inherited from class ilog.views.maps.graphic.style.IlvPolylineStyle
getBackground, getDecoration, getDecorationPaint, getEndCap, getForeground, getLineJoin, getLineStyle, getLineWidth, getStroke, isDecorationOnly, setBackground, setDecoration, setDecorationOnly, setDecorationPaint, setEndCap, setForeground, setLineJoin, setLineStyle, setLineWidth, setStroke
 
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, isThinClientBackground, isVisibleIn3DView, isVisibleInOverview, isVisibleInTree, isVisibleInView, objectEquals, removeAttributeListener, removeChild, removeStyleListener, setAlpha, setAlwaysOnTop, setAttribute, setAttributeFilter, setAttributeInfo, setCategory, setGraphic, 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

DO_STROKE

public static final String DO_STROKE
The DrawingStroke attribute name.

See Also:
Constant Field Values

DO_FILL

public static final String DO_FILL
The Filling attribute name.

See Also:
Constant Field Values

PAINT

public static final String PAINT
The Paint attribute name.

See Also:
Constant Field Values
Constructor Detail

IlvGraphicPathStyle

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

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

IlvGraphicPathStyle

public IlvGraphicPathStyle()
Constructs an IlvGraphicPathStyle


IlvGraphicPathStyle

public IlvGraphicPathStyle(IlvGraphicPathStyle source)
Constructor by copy

Parameters:
source - source style to copy
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Write this style to an IlvOutputStream

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

copy

public IlvMapStyle copy()
Constructor by copy

Overrides:
copy in class IlvPolylineStyle
Returns:
a new IlvGraphicPathStyle
See Also:
IlvMapStyle.copy()

hashCode

public int hashCode()

Overrides:
hashCode in class IlvPolylineStyle

equals

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

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

setDrawingStroke

public void setDrawingStroke(boolean stroke)
Sets the DrawingStroke

Parameters:
stroke - the drawing stroke attribute value.

isDrawingStroke

public boolean isDrawingStroke()
Tells if the drawing stroke attribute is set.

Returns:
The drawing stroke attribute value.

setFilling

public void setFilling(boolean fill)
Set the filling attribute value.

Parameters:
fill - The value of the filling attribute.

isFilling

public boolean isFilling()
Tells if the drawing stroke attribute is set or not.

Returns:
The drawing stroke attribute value.

setPaint

public void setPaint(Paint paint)
Sets the paint attribute value.

Parameters:
paint - The paint attribute value.

getPaint

public Paint getPaint()
Retrieves the paint attribute value. If no Paint attribute has been specified, the Background attribute is returned.

Returns:
The paint attribute value.

isInherited

public boolean isInherited(String propertyName)
Retrieves the inherited state of the property.

Specified by:
isInherited in interface IlvInheritable
Overrides:
isInherited in class IlvMapStyle
Parameters:
propertyName - The name of the property to check.
Returns:
true if the property is marked as inherited, false otherwise.

setInherited

public void setInherited(String propertyName,
                         boolean inherited)
Set the inherited state for this property. If a property is inherited, the value will be fetched on the parent if any.

Specified by:
setInherited in interface IlvInheritable
Overrides:
setInherited in class IlvMapStyle
Parameters:
propertyName - The name of the property to mark
inherited - true if the property will be inherited, false otherwise.


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