ilog.views
Interface IlvDefinitionRectInterface

All Known Implementing Classes:
IlvArc, IlvCircularScale, IlvCompositeGraphic, IlvFilledArc, IlvRectangularScale, IlvSDMCompositeNode

public interface IlvDefinitionRectInterface

This interface lets exposing an IlvRect. Through this interface, users can access and change the exposed IlvRect. Several graphic objects, such as IlvArc and IlvRectangularScale, implement this interface to expose its definition rectangle.

The definition rectangle is not the bounding box of the graphic object. It lets users to position the graphic object more accurately than the bounding box. The definition rectangle can be bigger than the bounding box such as in an IlvArc; It can also be smaller than the bounding box such as in an IlvRectangularScale. So the meaning of the definition rectangle depends on its implementation in concrete graphic objects.

Since:
JViews 8.0

Method Summary
 IlvRect getDefinitionRect()
          Returns a copy of the definition rectangle.
 IlvTransformer getDefinitionTransformer()
          Returns the transformer to be applied to the definition of the object.
 void setDefinitionRect(IlvRect rect)
          Sets a new definition rectangle.
 

Method Detail

getDefinitionRect

IlvRect getDefinitionRect()
Returns a copy of the definition rectangle. The implementation should not return the internal instance of its definition rectangle.

Returns:
The definition rectangle.

setDefinitionRect

void setDefinitionRect(IlvRect rect)
Sets a new definition rectangle. The implementation should make a copy of this IlvRect and does not use the specified instance.

Parameters:
rect - The new definition rectangle.

getDefinitionTransformer

IlvTransformer getDefinitionTransformer()
Returns the transformer to be applied to the definition of the object. If getDefinitionRect() returns a transformed rectangle, this function should return null.

Returns:
A copy of the internal transformer.


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