ilog.views.maps.graphic
Class IlvMapGeneralPath

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvGeneralPath
          extended by ilog.views.maps.graphic.IlvMapGeneralPath
All Implemented Interfaces:
IlvPolyPointsInterface, IlvPersistentObject, IlvMapGraphic, Transferable, Serializable
Direct Known Subclasses:
IlvMapOrthodromyPath

public class IlvMapGeneralPath
extends IlvGeneralPath
implements IlvMapGraphic

IlvMapGeneralPath is an IlvGeneralPath that accepts an IlvGeneralPathStyle to define its graphical attributes.

Since:
JViews 7.5
See Also:
Serialized Form

Constructor Summary
IlvMapGeneralPath()
          Constructs an IlvMapGeneralPath instance.
IlvMapGeneralPath(IlvInputStream stream)
          Reads an IlvMapGeneralPath instance from an IlvInputStream.
IlvMapGeneralPath(IlvMapGeneralPath source)
          Creates a new IlvMapGeneralPath by copying an existing one.
IlvMapGeneralPath(Shape shape)
          Constructs an IlvMapGeneralPath instance from a Shape object.
 
Method Summary
 IlvGraphic copy()
          Copies the objects.
 IlvGraphic copy(IlvCoordinateTransformation transform)
          Copies the element and applies the specified transformation to its coordinates.
 void draw(Graphics g, IlvTransformer t)
          Draws the object.
 Paint getFillPaint()
          Retrieves the fill paint from the style.
 Stroke getStroke()
          Retrieves the stroke from the style.
 Paint getStrokePaint()
          Retrieves the stroke paint from the style.
 float getStrokeWidth()
          Retrieves the stroke width from the style.
 IlvMapStyle getStyle()
          Retrieves the IlvMapStyle attached to this graphic.
 boolean isFillOn()
          Retrieves the fill on from the style.
 boolean isPaintAbsolute()
          Retrieves the paint absolute from the style.
 boolean isPaintZoomed()
          Retrieves the paint zoomed from the style.
 boolean isStrokeOn()
          Retrieves the stroke on from the style.
 IlvMapGeometry makeGeometry()
          Returns an IlvMapPolygon geometry instance.
 void setFillOn(boolean set)
          Sets the fill on in the IlvGeneralPathStyle.
 void setFillPaint(Paint paint)
          Sets the fill paint in the IlvGeneralPathStyle.
 void setPaintAbsolute(boolean set)
          Sets the paint absolute in the IlvGeneralPathStyle.
 void setPaintZoomed(boolean set)
          Sets the paint zoomed in the IlvGeneralPathStyle.
 void setStroke(Stroke stroke)
          Sets the stroke in the IlvGeneralPathStyle.
 void setStrokeOn(boolean set)
          Sets the stroke on in the IlvGeneralPathStyle.
 void setStrokePaint(Paint paint)
          Sets the stroke paint in the IlvGeneralPathStyle.
 void setStrokeWidth(float width)
          Sets the stroke width in the IlvGeneralPathStyle.
 void setStyle(IlvMapStyle style)
          Implements the IlvMapGraphic interface.
 void write(IlvOutputStream stream)
          Writes this IlvMapGraphicPath object to the IlvOutputStream passed as parameter
 
Methods inherited from class ilog.views.graphic.IlvGeneralPath
adaptPaint, allowsPointInsertion, allowsPointMove, allowsPointRemoval, applyTransform, boundingBox, calcBoundingBox, contains, getAlpha, getClip, getIntersectionWithOutline, getMaximumStrokeWidth, getPointAt, getPointsCardinal, getShape, getShapeBounds, getTransformer, insertPoint, isContainsWhenNotFilled, isMovePointAllowed, isPointEditionAllowed, isTransformedShapeMode, makeSelection, movePoint, moveResize, pointsInBBox, removePoint, resize, setAlpha, setBackground, setClip, setContainsWhenNotFilled, setForeground, setInternalShape, setMaximumStrokeWidth, setMovePointAllowed, setPointEditionAllowed, setShape, setShapeBounds, setTransformedShapeMode, setTransformer
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, move, move, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, rotate, scale, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipText, setVisible, toString, translate, zoomable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvMapGeneralPath

public IlvMapGeneralPath()
Constructs an IlvMapGeneralPath instance.


IlvMapGeneralPath

public IlvMapGeneralPath(IlvMapGeneralPath source)
Creates a new IlvMapGeneralPath by copying an existing one.

Parameters:
source - The IlvMapGeneralPath to copy.

IlvMapGeneralPath

public IlvMapGeneralPath(IlvInputStream stream)
                  throws IlvReadFileException
Reads an IlvMapGeneralPath instance from an IlvInputStream.

Parameters:
stream - The stream to read from.
Throws:
IlvReadFileException - if there is a problem reading from stream.

IlvMapGeneralPath

public IlvMapGeneralPath(Shape shape)
Constructs an IlvMapGeneralPath instance from a Shape object.

Parameters:
shape - The Shape.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this IlvMapGraphicPath object to the IlvOutputStream passed as parameter

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvGeneralPath
Parameters:
stream - The stream to write to.
Throws:
IOException - if there is a problem writing to stream.

getFillPaint

public Paint getFillPaint()
Retrieves the fill paint from the style.

Overrides:
getFillPaint in class IlvGeneralPath
Returns:
The fill paint as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setFillPaint(java.awt.Paint)

setFillPaint

public void setFillPaint(Paint paint)
Sets the fill paint in the IlvGeneralPathStyle.

Overrides:
setFillPaint in class IlvGeneralPath
Parameters:
paint - The fill paint to be set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.getFillPaint(), IlvGeneralPath.isFillOn()

getStrokePaint

public Paint getStrokePaint()
Retrieves the stroke paint from the style.

Overrides:
getStrokePaint in class IlvGeneralPath
Returns:
The stroke paint as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setStrokePaint(java.awt.Paint), IlvGeneralPath.isStrokeOn(), IlvGeneralPath.setStroke(java.awt.Stroke)

setStrokePaint

public void setStrokePaint(Paint paint)
Sets the stroke paint in the IlvGeneralPathStyle.

Overrides:
setStrokePaint in class IlvGeneralPath
Parameters:
paint - The stroke paint to be set in the < code>IlvGeneralPathStyle.
See Also:
IlvGeneralPath.getStrokePaint(), IlvGeneralPath.isStrokeOn(), IlvGeneralPath.setStroke(java.awt.Stroke)

setPaintAbsolute

public void setPaintAbsolute(boolean set)
Sets the paint absolute in the IlvGeneralPathStyle.

Overrides:
setPaintAbsolute in class IlvGeneralPath
Parameters:
set - The paint absolute to be set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.isPaintAbsolute(), IlvGeneralPath.setPaintZoomed(boolean), IlvGeneralPath.setFillPaint(java.awt.Paint), IlvGeneralPath.setStrokePaint(java.awt.Paint), IlvGeneralPath.adaptPaint(java.awt.Shape, java.awt.Paint)

isPaintAbsolute

public boolean isPaintAbsolute()
Retrieves the paint absolute from the style.

Overrides:
isPaintAbsolute in class IlvGeneralPath
Returns:
The paint absolute as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setPaintAbsolute(boolean), IlvGeneralPath.setPaintZoomed(boolean), IlvGeneralPath.setFillPaint(java.awt.Paint), IlvGeneralPath.setStrokePaint(java.awt.Paint), IlvGeneralPath.adaptPaint(java.awt.Shape, java.awt.Paint)

getStrokeWidth

public float getStrokeWidth()
Retrieves the stroke width from the style.

Returns:
The stroke width as set in the IlvGeneralPathStyle.

draw

public void draw(Graphics g,
                 IlvTransformer t)
Draws the object.

Overrides:
draw in class IlvGeneralPath
Parameters:
g - The destination Graphics.
t - The transformation used to draw the object.
See Also:
IlvGeneralPath.draw(java.awt.Graphics, ilog.views.IlvTransformer)

setStrokeWidth

public void setStrokeWidth(float width)
Sets the stroke width in the IlvGeneralPathStyle.

Parameters:
width - The stroke width to be set in the IlvGeneralPathStyle.

setPaintZoomed

public void setPaintZoomed(boolean set)
Sets the paint zoomed in the IlvGeneralPathStyle.

Overrides:
setPaintZoomed in class IlvGeneralPath
Parameters:
set - The paint zoomed value to be set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.isPaintZoomed(), IlvGeneralPath.setFillPaint(java.awt.Paint), IlvGeneralPath.setStrokePaint(java.awt.Paint)

isPaintZoomed

public boolean isPaintZoomed()
Retrieves the paint zoomed from the style.

Overrides:
isPaintZoomed in class IlvGeneralPath
Returns:
The paint zoomed as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setPaintZoomed(boolean), IlvGeneralPath.setFillPaint(java.awt.Paint), IlvGeneralPath.setStrokePaint(java.awt.Paint)

setStrokeOn

public void setStrokeOn(boolean set)
Sets the stroke on in the IlvGeneralPathStyle.

Overrides:
setStrokeOn in class IlvGeneralPath
Parameters:
set - The stroke on to be set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setStroke(java.awt.Stroke), IlvGeneralPath.setStrokePaint(java.awt.Paint), IlvGeneralPath.isStrokeOn()

isStrokeOn

public boolean isStrokeOn()
Retrieves the stroke on from the style.

Overrides:
isStrokeOn in class IlvGeneralPath
Returns:
The stroke on as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setStroke(java.awt.Stroke), IlvGeneralPath.setStrokePaint(java.awt.Paint), IlvGeneralPath.setStrokeOn(boolean)

setFillOn

public void setFillOn(boolean set)
Sets the fill on in the IlvGeneralPathStyle.

Overrides:
setFillOn in class IlvGeneralPath
Parameters:
set - The fill on to be set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.isFillOn(), IlvGeneralPath.setFillPaint(java.awt.Paint)

isFillOn

public boolean isFillOn()
Retrieves the fill on from the style.

Overrides:
isFillOn in class IlvGeneralPath
Returns:
The fill on as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.setFillPaint(java.awt.Paint), IlvGeneralPath.setFillOn(boolean)

getStroke

public Stroke getStroke()
Retrieves the stroke from the style.

Overrides:
getStroke in class IlvGeneralPath
Returns:
The stroke as set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.getStrokePaint(), IlvGeneralPath.setStroke(java.awt.Stroke), IlvGeneralPath.isStrokeOn()

setStroke

public void setStroke(Stroke stroke)
Sets the stroke in the IlvGeneralPathStyle.

Overrides:
setStroke in class IlvGeneralPath
Parameters:
stroke - The stroke to be set in the IlvGeneralPathStyle.
See Also:
IlvGeneralPath.getStrokePaint(), IlvGeneralPath.getStroke(), IlvGeneralPath.isStrokeOn()

getStyle

public IlvMapStyle getStyle()
Retrieves the IlvMapStyle attached to this graphic.

Specified by:
getStyle in interface IlvMapGraphic
Returns:
The IlvMapStyle attached to this graphic.

setStyle

public void setStyle(IlvMapStyle style)
Implements the IlvMapGraphic interface.

Specified by:
setStyle in interface IlvMapGraphic
Parameters:
style - The IlvMapStyle to set. Must be a IlvGeneralPathStyle instance.

copy

public IlvGraphic copy()
Copies the objects.

Overrides:
copy in class IlvGeneralPath
Returns:
A new IlvMapGeneralPath instance.
See Also:
IlvGraphic

copy

public IlvGraphic copy(IlvCoordinateTransformation transform)
                throws IlvCoordinateTransformationException
Copies the element and applies the specified transformation to its coordinates.

Specified by:
copy in interface IlvMapGraphic
Parameters:
transform - Transformation to apply.
Returns:
A new copied object.
Throws:
IlvCoordinateTransformationException
See Also:
IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)

makeGeometry

public IlvMapGeometry makeGeometry()
Returns an IlvMapPolygon geometry instance.

Specified by:
makeGeometry in interface IlvMapGraphic
Returns:
A new geometry.
Since:
JViews 8.0
See Also:
IlvMapGraphic.makeGeometry()


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