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

setDrawable()

The setDrawable() method designates which IONGRDrawable object will receive graphical output from the ION Server.

Syntax

public boolean setDrawable(IONGrDrawable ionGraphic)

public boolean setDrawable(IONJGrDrawable ionGraphic)

public boolean setDrawable(int iGraphic)

Return Value

This routine returns False if the specified drawable is not registered with the connection, or True otherwise.

Arguments

ionGraphic

An instance of an IONGrDrawable object to set as the current drawable. This graphic must have been registered with the IONGrConnection object via the addDrawable() method.

iGraphic

A zero-based integer index designating which IONGrDrawable object to set as the current drawable. This graphic must have been registered with the IONGrConnection object via the addDrawable() method.

Exceptions

None.

Example

boolean bSuccess = con.setDrawable(ionGraphic);  
boolean bSuccess = con.setDrawable(1);  

  IDL Online Help (March 06, 2007)