public class IlvAttachableGraphic extends Object implements IlvAttachable
IlvAttachableGraphic
provides a concrete implementation
of IlvAttachable
. It allows to layout IlvGraphic
objects
which are contained in an IlvCompositeGraphic
Constructor and Description |
---|
IlvAttachableGraphic(IlvGraphic element,
IlvCompositeGraphic parent)
Creates an instance of
IlvAttachableGraphic |
Modifier and Type | Method and Description |
---|---|
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(double x,
double 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(double, double) method. |
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter
b . |
public IlvAttachableGraphic(IlvGraphic element, IlvCompositeGraphic parent)
IlvAttachableGraphic
element
- IlvGraphic
object wrapped by this objectparent
- parent of the supplied elementpublic IlvGraphic getGraphic()
IlvGraphic
instance for this object.public IlvRect getAttachmentBounds()
getAttachmentBounds
in interface IlvAttachable
public IlvPoint getHotSpot()
getAttachmentBounds()
.getHotSpot
in interface IlvAttachable
public void move(double x, double y)
move
in interface IlvAttachable
x
- The new horizontal value.y
- The new vertical value.public void center(IlvRect size, Insets insets)
center
in interface IlvAttachable
size
- The new attachment rectangle.insets
- specifies the space that the object must leave
at each of its edges.public IlvPoint[] getLinkPoints()
getLinkPoints
in interface IlvAttachable
IlvLinkImage.getLinkPoints(ilog.views.IlvTransformer)
public void setVisible(boolean b)
b
.setVisible
in interface IlvAttachable
b
- if true
, shows this component;
otherwise, hides this componentpublic boolean isVisible()
true
when this component is visible.isVisible
in interface IlvAttachable
public IlvAttachable getPostOrderFirstChild()
getPostOrderFirstChild
in interface IlvAttachable
public IlvAttachable[] getAttachables()
getAttachables
in interface IlvAttachable
public Object[] getConstraints()
getConstraints
in interface IlvAttachable
IlvCompositeGraphic.getConstraints()
public void setOffset(IlvPoint offset)
move(double, double)
method.setOffset
in interface IlvAttachable
public IlvPoint getOffset()
NULL
if none.
The offset is applied to the position defined with the move(double, double)
method.getOffset
in interface IlvAttachable
public 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 IlvAttachable
center
- The center of the rotation.angle
- The rotation angle in degrees.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.