ilog.views.graphic.composite.layout
Interface IlvAttachable

All Known Implementing Classes:
IlvAttachableGraphic

public interface IlvAttachable

This interface describes the objects which can be tied together using IlvLayoutManager.

Since:
JViews 6.0
See Also:
IlvLayoutManager

Method Summary
 void center(IlvRect size, Insets insets)
          Moves and resizes the object.
 IlvAttachable[] getAttachables()
          Returns the children of this objects if any, otherwise returns an empty array.
 IlvRect getAttachmentBounds()
          Returns the "attachment rectangle".
 Object[] getConstraints()
          Returns the constraints of the children of this objects if any, otherwise returns an empty array.
 IlvPoint getHotSpot()
          Returns the hotspot.
 IlvPoint[] getLinkPoints()
          Returns the points that define the link.
 IlvPoint getOffset()
          Returns the offset for this object or NULL if none.
 IlvAttachable getPostOrderFirstChild()
          Returns the first child in the tree, according to the postorder traversal scheme.
 boolean isVisible()
          Returns true when this component is visible.
 void move(float x, float y)
          Moves the object.
 void resize(IlvPoint size)
          Resizes this object.
 void rotate(IlvPoint center, double angle)
          Rotates this object.
 void setOffset(IlvPoint offset)
          Defines an offset applied to the position defined with the move(float, float) method.
 void setVisible(boolean b)
          Shows or hides this component depending on the value of parameter b.
 

Method Detail

getAttachmentBounds

IlvRect getAttachmentBounds()
Returns the "attachment rectangle". All attachments are relative to this rectangle. Attachment constraints modify the attachment rectangle to exert their effects.

Returns:
bound rectangle

getAttachables

IlvAttachable[] getAttachables()
Returns the children of this objects if any, otherwise returns an empty array.


getConstraints

Object[] getConstraints()
Returns the constraints of the children of this objects if any, otherwise returns an empty array.

See Also:
IlvCompositeGraphic.getConstraints()

getHotSpot

IlvPoint getHotSpot()
Returns the hotspot. This is a particular point (for example,; the apex of an info-window). It is given in coordinates relative to the upper left corner of getAttachmentBounds().


move

void move(float x,
          float y)
Moves the object. Moves the top-left corner of the attachment rectangle of the object to (x,y).

Parameters:
x - The new horizontal value.
y - The new vertical value.

center

void center(IlvRect size,
            Insets insets)
Moves and resizes the object. Moves the center of the attachment rectangle of the object to the center of the given rectangle. Resizes the object to the given rectangles expanded to its edges by the insets.

Parameters:
size - The new attachment rectangle.
insets - specifies the space that the object must leave at each of its edges.

getLinkPoints

IlvPoint[] getLinkPoints()
Returns the points that define the link.


setVisible

void setVisible(boolean b)
Shows or hides this component depending on the value of parameter b.

Parameters:
b - if true, shows this component; otherwise, hides this component

isVisible

boolean isVisible()
Returns true when this component is visible.

Since:
JViews 8.0

getPostOrderFirstChild

IlvAttachable getPostOrderFirstChild()
Returns the first child in the tree, according to the postorder traversal scheme.


setOffset

void setOffset(IlvPoint offset)
Defines an offset applied to the position defined with the move(float, float) method.


getOffset

IlvPoint getOffset()
Returns the offset for this object or NULL if none. The offset is applied to the position defined with the move(float, float) method.


resize

void resize(IlvPoint size)
Resizes this object. The bounding rectangle of this object is modified. It sets its new size as (size.x, size.y).


rotate

void rotate(IlvPoint center,
            double angle)
Rotates this object. The object is rotated around the point specified by center and by an angle in degrees specified by angle.

Parameters:
center - The center of the rotation.
angle - The rotation angle in degrees.


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