ilog.views.maps.beans.editor
Class IlvDecorationPropertyEditor.PredefinedDecoration

java.lang.Object
  extended by ilog.views.maps.beans.editor.IlvDecorationPropertyEditor.PredefinedDecoration
All Implemented Interfaces:
IlvPersistentObject, IlvPathDecoration
Enclosing class:
IlvDecorationPropertyEditor

public static class IlvDecorationPropertyEditor.PredefinedDecoration
extends Object
implements IlvPathDecoration, IlvPersistentObject

The editor will manage a table of PredefinedDecoration instances attached to a single unique String key.

Since:
JViews 7.5

Constructor Summary
IlvDecorationPropertyEditor.PredefinedDecoration(IlvInputStream stream)
          Creates a PredefinedDecoration by reading the id from a stream.
 
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.
 boolean equals(Object t)
          
 float equivalentWidth(IlvTransformer t)
          Returns an equivalent line width to this path decoration, if it is drawn using the specified transformer.
 IlvPathDecoration getDelegate()
          Returns the delegate decoration.
 boolean isZoomable()
          Returns true if this path decoration is zoomable.
 void write(IlvOutputStream stream)
          Writes the attributes of a persistent object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDecorationPropertyEditor.PredefinedDecoration

public IlvDecorationPropertyEditor.PredefinedDecoration(IlvInputStream stream)
Creates a PredefinedDecoration by reading the id from a stream.

Parameters:
stream - stream to read from.
Method Detail

equals

public boolean equals(Object t)

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

draw

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

Specified by:
draw in interface IlvPathDecoration
See Also:
IlvPathDecoration.draw(java.awt.Graphics2D, java.awt.Shape, ilog.views.IlvTransformer)

boundingBox

public 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.

Specified by:
boundingBox in interface IlvPathDecoration
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.
See Also:
IlvPathDecoration.boundingBox(java.awt.Shape, ilog.views.IlvRect, ilog.views.IlvTransformer)

isZoomable

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

Specified by:
isZoomable in interface IlvPathDecoration
See Also:
IlvPathDecoration.isZoomable()

equivalentWidth

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

Specified by:
equivalentWidth in interface IlvPathDecoration
Parameters:
t - The transformer to compute the equivalent width.
Returns:
The equivalent width.
See Also:
IlvPathDecoration.equivalentWidth(ilog.views.IlvTransformer)

write

public void write(IlvOutputStream stream)
           throws IOException
Writes the attributes of a persistent object.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - the output stream
Throws:
IOException - thrown when an exception occurs during the write operation for this object.
See Also:
IlvPersistentObject.write(ilog.views.io.IlvOutputStream)

getDelegate

public IlvPathDecoration getDelegate()
Returns the delegate decoration.

Returns:
Returns the delegate decoration.
Since:
JViews 7.5


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