ilog.views.maps.graphic
Interface IlvPathDecoration

All Known Implementing Classes:
IlvClippedPathDecoration, IlvDecorationPropertyEditor.PredefinedDecoration, IlvMultiPathDecoration, IlvOutlinedPathDecoration, IlvShapedPathDecoration, IlvShapeEndedPathDecoration, IlvStrokedPathDecoration

public interface IlvPathDecoration

This interface defines the generic path decoration behavior.

Since:
JViews 5.0

Method Summary
 IlvRect boundingBox(Shape shape, IlvRect rect, IlvTransformer t)
          Returns the bounding box of the specified shape, if it is decorated using this decoration.
 void draw(Graphics2D graphics, Shape shape, IlvTransformer t)
          Draws the decoration for the specified shape in the specified graphics.
 float equivalentWidth(IlvTransformer t)
          Returns an equivalent line width to this path decoration, if it is drawn using the specified transformer.
 boolean isZoomable()
          Returns true if this path decoration is zoomable.
 

Method Detail

draw

void draw(Graphics2D graphics,
          Shape shape,
          IlvTransformer t)
Draws the decoration for the specified shape in the specified graphics.


boundingBox

IlvRect boundingBox(Shape shape,
                    IlvRect rect,
                    IlvTransformer t)
Returns the bounding box of the specified shape, if it is decorated using this decoration.
If r is non null, the result is put in r and returned, otherwise the result is returned in a newly allocated IlvRect.

Parameters:
shape - The shape whose bounding box is to be computed.
rect - The IlvRect that will contain the result.
t - The transformer for this bounding box.

isZoomable

boolean isZoomable()
Returns true if this path decoration is zoomable.


equivalentWidth

float equivalentWidth(IlvTransformer t)
Returns an equivalent line width to this path decoration, if it is drawn using the specified transformer.

Parameters:
t - The transformer to compute the equivalent width.
Returns:
The equivalent width.


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