Accessors for class IlvGraphic

Properties

Methods

Description

IlvGraphic is an abstract base class that:
Rogue Wave Views Views graphic objects inherit attributes from this class.
The shapes of graphic objects are defined by the user and made concrete by various drawing member functions. Other member functions provide information about the graphic objects, and carry out geometric tests concerning the shapes being used. For example, you can check whether a point with given coordinates lies inside a certain shape.
A fundamental inherited class is IlvSimpleGraphic. It implements all the features of the IlvGraphic class. It also implements real geometric-management member functions.
IlvGraphic has groups of member functions that deal with the following items:

TypeNameDescriptionNotes
IlvRectboundingBox()Returns the bounding box of the object.
IlvGadgetContainercontainerReturns the container where the graphic object is stored, or NULL if this object is not stored in any container. Note: you are not allowed to store an object in more than a single graphic holder (manager or container).
Booleancontains(IlvPoint point)Returns true when point lies inside the outline of the object.
UIntheightLets you get and set the graphic object's height.
Booleaninside(IlvRect rect)Returns true when the rectangle rect lies completely inside the bounding box of the object and false when this is not the case.
Booleanintersects(IlvRect rect)Returns true when the rectangle rect overlaps the bounding box of the object, and false when the rectangle rect does not overlap the bounding box.
IlvManagermanagerReturns the manager where the graphic object is stored, or NULL if this object is not stored in any manager. Note: you are not allowed to store an object in more than a single graphic holder (manager or container).
Voidmove(IlvPoint position)Moves the upper left corner of the bounding box of the object to the position position.
Voidreshape(IlvRect position)Sets the bounding box of the object to the rectangle parameter values.
BooleansensitiveSets the sensitivity of the graphic object.
Returns true if the object is sensitive (that is, if the object responds to user events). Otherwise, it returns false.
VoidsetCallback(String type, String callback, String language)Sets the callback function name of the graphic object to the value of the callback parameter. The type parameter specifies the type of the callback. The parameter language specifies in which scripting language the callback is defined.
setCallback removes all the callbacks of a given type that were set before the new callback is added.
Voidtranslate(Int dx, Int dy)Translates the position of the object by the vector (dx, dy).
BooleanvisibleSets or gets the visibility of the graphic object. This property applies only to an object that is already in the container.
UIntwidthLets you get and set the graphic object's width.
IntxInt x
IntySet and get the graphic object's location.