GLG Toolkit, Java Class Library  Version 4.6
Extended API Methods

Detailed Description

Functions

boolean AddObjectAt (GlgObject container, Object object, int index)
 Adds an object at the specified position inside the container. More...
 
boolean AddObjectToBottom (GlgObject container, Object object)
 Adds an object at the end of the container. More...
 
boolean AddObjectToTop (GlgObject container, Object object)
 Adds an object at the end of the container. More...
 
GlgObject CloneObject (GlgObject glg_object, int clone_type)
 Creates a specialized copy (clone) of an object. More...
 
GlgObject CopyObject (GlgObject glg_object)
 Creates a copy of the object. More...
 
boolean DeleteBottomObject (GlgObject container)
 Deletes an object from the bottom of the container. More...
 
boolean DeleteObject (GlgObject container, Object object)
 Finds and deletes an object from the container. More...
 
boolean DeleteObjectAt (GlgObject container, int index)
 Deletes an object from the specified position in the container. More...
 
boolean DeleteTopObject (GlgObject container)
 Deletes an object from the beginning of the container. More...
 
boolean SetResourceObject (GlgObject glg_object, String resource_name, GlgObject value)
 Replaces a resource object inside the object the method is invoked on. More...
 
boolean SetXform (GlgObject glg_object, GlgObject xform)
 Adds or deletes transformations attached to the object. More...
 

Function Documentation

◆ AddObjectAt()

boolean AddObjectAt ( GlgObject  container,
Object  object,
int  index 
)

Adds an object at the specified position inside the container.

Parameters
containerA container object.
objectThe object to be added.
indexThe position in a container.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class. See AddObjectAt for more information.

◆ AddObjectToBottom()

boolean AddObjectToBottom ( GlgObject  container,
Object  object 
)

Adds an object at the end of the container.

Parameters
containerA container object.
objectThe object to be added.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class. See AddObjectToBottom for more information.

◆ AddObjectToTop()

boolean AddObjectToTop ( GlgObject  container,
Object  object 
)

Adds an object at the end of the container.

Parameters
containerA container object.
objectThe object to be added.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class. See AddObjectToTop for more information.

◆ CloneObject()

GlgObject CloneObject ( GlgObject  glg_object,
int  clone_type 
)

Creates a specialized copy (clone) of an object.

Parameters
clone_typeThe type of cloning to perform, see CloneObject.
glg_objectThe object to be copied.
Returns
An object's clone.

This method invokes the corresponding method of the GlgObject class. See CloneObject for more information.

◆ CopyObject()

GlgObject CopyObject ( GlgObject  glg_object)

Creates a copy of the object.

Parameters
glg_objectThe object to be copied.
Returns
An object's copy.

This method invokes the corresponding method of the GlgObject class. See CopyObject for more information.

◆ DeleteBottomObject()

boolean DeleteBottomObject ( GlgObject  container)

Deletes an object from the bottom of the container.

Parameters
containerA container object.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class. See DeleteBottomObject for more information.

◆ DeleteObject()

boolean DeleteObject ( GlgObject  container,
Object  object 
)

Finds and deletes an object from the container.

Parameters
containerA container object.
objectAn object to be deleted.
Returns
true if the object was successfully deleted. If the object was not found, the method returns false without generating an error message.

This method invokes the corresponding method of the GlgObject class.

◆ DeleteObjectAt()

boolean DeleteObjectAt ( GlgObject  container,
int  index 
)

Deletes an object from the specified position in the container.

Parameters
containerA container object.
indexAn index of the object to be deleted.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class.

◆ DeleteTopObject()

boolean DeleteTopObject ( GlgObject  container)

Deletes an object from the beginning of the container.

Parameters
containerA container object.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class.

◆ SetResourceObject()

boolean SetResourceObject ( GlgObject  glg_object,
String  resource_name,
GlgObject  value 
)

Replaces a resource object inside the object the method is invoked on.

Parameters
glg_objectThe object to replace resources of.
resource_nameA default attribute name of a resource that is being set or replaced.
valueA new resource object.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class. See SetResourceObject for more information.

◆ SetXform()

boolean SetXform ( GlgObject  glg_object,
GlgObject  xform 
)

Adds or deletes transformations attached to the object.

Parameters
glg_objectThe object whose transformation will be added or deleted.
xformA new transformation object to be attached to the object the method is invoked on, or null to delete the currently attached transformation.
Returns
Success or failure status.

This method invokes the corresponding method of the GlgObject class. See SetXform for more information.