|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.graphic.composite.layout.IlvAttachableGraphic
public class IlvAttachableGraphic
The class IlvAttachableGraphic provides a concrete implementation
of IlvAttachable. It allows to layout IlvGraphic objects
which are contained in an IlvCompositeGraphic
| Constructor Summary | |
|---|---|
IlvAttachableGraphic(IlvGraphic element,
IlvCompositeGraphic parent)
Creates an instance of IlvAttachableGraphic |
|
| 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 attachments of the children of this objects if any, otherwise returns an empty array. |
IlvGraphic |
getGraphic()
Returns the IlvGraphic instance for this object. |
IlvPoint |
getHotSpot()
Returns the hotspot. |
IlvPoint[] |
getLinkPoints()
Returns the points that define this 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 the 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvAttachableGraphic(IlvGraphic element,
IlvCompositeGraphic parent)
IlvAttachableGraphic
element - IlvGraphic object wrapped by this objectparent - parent of the supplied element| Method Detail |
|---|
public IlvGraphic getGraphic()
IlvGraphic instance for this object.
public IlvRect getAttachmentBounds()
getAttachmentBounds in interface IlvAttachablepublic IlvPoint getHotSpot()
getAttachmentBounds().
getHotSpot in interface IlvAttachable
public void move(float x,
float y)
move in interface IlvAttachablex - The new horizontal value.y - The new vertical value.
public void center(IlvRect size,
Insets insets)
center in interface IlvAttachablesize - The new attachment rectangle.insets - specifies the space that the object must leave
at each of its edges.public IlvPoint[] getLinkPoints()
getLinkPoints in interface IlvAttachableIlvLinkImage.getLinkPoints(ilog.views.IlvTransformer)public void setVisible(boolean b)
b.
setVisible in interface IlvAttachableb - if true, shows this component;
otherwise, hides this componentpublic boolean isVisible()
true when this component is visible.
isVisible in interface IlvAttachablepublic IlvAttachable getPostOrderFirstChild()
getPostOrderFirstChild in interface IlvAttachablepublic IlvAttachable[] getAttachables()
getAttachables in interface IlvAttachablepublic Object[] getConstraints()
getConstraints in interface IlvAttachableIlvCompositeGraphic.getConstraints()public void setOffset(IlvPoint offset)
move(float, float) method.
setOffset in interface IlvAttachablepublic IlvPoint getOffset()
NULL if none.
The offset is applied to the position defined with the move(float, float) method.
getOffset in interface IlvAttachablepublic void resize(IlvPoint size)
size.x, size.y).
resize in interface IlvAttachable
public void rotate(IlvPoint center,
double angle)
center and by an angle in
degrees specified by angle.
rotate in interface IlvAttachablecenter - The center of the rotation.angle - The rotation angle in degrees.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||