The Interactor type exposes the following members.

Constructors

  NameDescription
Public methodInteractor
Creates a new interactor for the argument object and includes the argument sub-interactors in it.

Methods

  NameDescription
Public methodCreateOrientationTransform
Create a transformation that applies the given orientation to the interactor.
Public methodInvalidate
Invoke this method to mark the apearance of this interactor invalid, so that it gets repainted.
Protected methodIsOver
Specifies whether a certain coordinate is considered to be part of the interactor. This can be used for irregularly shaped interactors, or interactors with "holes". By default, this method returns true, which means that all coordinates within the interactor Rectangle are included.
Protected methodOnAttached
Invoked when the interactor gets attached to its parent.
Protected methodOnDetached
Invoked when the interactor gets detached from its parent.

Properties

  NameDescription
Public propertyChilds
The child interactors of this interactor. This property may be null.
Public propertyHeight
The height of the interactor in terms of its own coordinate system, i.e. before applying any transformation. This is the height of the interactor without taking into account additional layers.
Public propertyIsInteractive
Controls whether an interactor can be interacted with.
Public propertyLayers
The layers of this interactor.
Public propertyLayoutManager
The layout property controls the placement of sub-interactors relative to this one. This property may be null.
Public propertyObject
The controlled object.
Public propertyOpacity
A value between 0 and 1 that specifies the opacity of the interactor. 1 means fully opaque, 0 means fully transparent (i.e. invisible). The default is 1.
Public propertyParent
The interactor that this interactor is a child of.
Public propertyRectangle
The rectangle that this interactor occupies, including the space taken by its layers.
Public propertyToolTip
The tooltip for this interactor. Override this to return the proper information for this interactor. If null, no tooltip will be shown.
Public propertyTransform
Transformation that is applied to the interactor before drawing, relative to the origin of its parent, i.e.:
  • If one applies this transformation to a local coordinate, one obtains the coordinates in the coordinate system of the parent.
  • If one uses this transformation to transform the parent coordinate system (CTM), one obtains the local coordinate system.
Public propertyViewerTransform
Transforms coordinates in the local coordinate system to the coordinate system of the viewer, i.e.:
  • If one applies this transformation to a local coordinate, one obtains the coordinates in the coordinate system of the viewer.
  • If one uses this transformation to transform the original viewer coordinate system (CTM), one obtains the local coordinate system.
Public propertyVisibleRectangle
A rectangle that defines a the visible part of the interactor, in terms of its own coordinate system.
Public propertyWidth
The width of the interactor in terms of its own coordinate system, i.e. before applying any transformation. This is the width of the interactor without taking into account additional layers.

See Also