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

addDrawable()

The addDrawable() method adds the specified ION graphic to the connection object. In turn, the graphic objects sets its reference back to the connection. Once added, the graphic can communicate with the ION Server and thus request graphics and information.


Note
When using an IONGrConnection class, it is recommended that you add a drawable method using addDrawable(). Do not use the parent class IONGraphicsClient.addIONDrawable since this method does not set the connection from the drawable method back to the connection.

Syntax

public int addDrawable(IONGrDrawable ionGraphic)

public int addDrawable(IONJGrDrawable ionGraphic)

Return Value

This method returns a reference to the added IONGrDrawable/IONJGrDrawable object.

Arguments

ionGraphic

An object of the IONGrDrawable class to add to the connection object.

Exceptions

None.

Example

IONGrDrawable draw;  
con.addDrawable(draw);  

  IDL Online Help (March 06, 2007)