Previous ION Java User's Guide: ION Java Class and Method Reference Next

addIONDrawable()

The addIONDrawable() method adds an object that implements the IONDrawable interface to the internal list of drawing areas maintained by this object. An IONDrawable represents an area that graphic primitives can be rendered onto. When the window is added to this class, that drawing area is made the current drawing area being used for graphical output. The developer has the option of telling ION what index to use and also requesting that the method send information about the new drawable to the server. The function returns the window index number that is used by IDL to reference the drawing area.

Syntax

public final int addIONDrawable(IONDrawable drawable)

public final int addIONDrawable(IONDrawable drawable, int index)

public final int addIONDrawable(IONDrawable drawable, boolean bSendAttr)

public final int addIONDrawable(IONDrawable drawable, int index, boolean    bSendAttr)

Arguments

drawable

An object that implements the IONDrawable interface.

index

The index to assign to the drawable. If no index is supplied, a free index is used.

bSendAttr

If true, the server is notified of the change to the current drawable.

Return Value

The function returns the window index number that is used by IDL to reference the drawable.

Exceptions

None.

Example

int iIndex = addIONDrawable( drawable);  
int iIndex = addIONDrawable( drawable, index);  

  IDL Online Help (March 06, 2007)