|
GLG Toolkit, Java Class Library
Version 4.6
|
Functions | |
| boolean | ConstrainObject (GlgObject from_attribute, GlgObject to_attribute) |
| Constrains an attribute or a point of the object to an attribute or a point of another object. More... | |
| boolean | ContainsObject (GlgObject container, Object object) |
| Checks if object belongs to the container. More... | |
| Object | GetElement (GlgObject container, int index) |
| Returns element at the specified position in the container. More... | |
| int | GetIndex (GlgObject container, Object object) |
| Returns index of the first occurrence of an object in the container. More... | |
| GlgObject | GetNamedObject (GlgObject container, String name) |
| Finds an object with the specified name inside the container of GLG objects and returns it. More... | |
| int | GetNumParents (GlgObject glg_object) |
| ADVANCED: Returns number of the object's parents. More... | |
| GlgObject | GetParent (GlgObject glg_object) |
| ADVANCED: Returns an object's parent object, if one exists., or an array of all parents for constrained data objects. More... | |
| Object | GetResource (GlgObject glg_object, String resource_name) |
| Deprecated, use GetNativeComponent: Returns an ID of a native resource. More... | |
| GlgObject | GetResourceObject (GlgObject glg_object, String resource_name) |
| Finds and returns a named resource or an attribute of the object. More... | |
| int | GetSize (GlgObject container) |
| Returns size of the container object. More... | |
| void | Inverse (GlgObject container) |
| Inverses the order of elements inside the container object. More... | |
| Object | Iterate (GlgObject container) |
| Traverses the container object's elements in the forward direction. More... | |
| Object | IterateBack (GlgObject container) |
| Traverses the container object's elements in the backward direction. More... | |
| void | ReleaseObject (GlgObject glg_object, GlgObject suspend_info) |
| Releases the object that was suspended for editing. More... | |
| boolean | ReorderElement (GlgObject container, int old_index, int new_index) |
| Changes an element's position inside the container. More... | |
| boolean | SaveObject (GlgObject glg_object, String filename) |
| Saves the object to a file using a default charset. More... | |
| boolean | SaveObject (GlgObject glg_object, String filename, String charset_name) |
| Saves an object into a file using the specified charset. More... | |
| void | SetEnd (GlgObject container) |
| Initializes the container object for the backward traversing. More... | |
| void | SetStart (GlgObject container) |
| Initializes the container object for the forward traversing. More... | |
| GlgObject | SuspendObject (GlgObject glg_object) |
| Suspends the object for editing after it has been drawn. More... | |
| boolean | UnconstrainObject (GlgObject glg_object) |
| Unconstrains an object's attribute or an object's point. More... | |
Constrains an attribute or a point of the object to an attribute or a point of another object.
| from_attribute | The attribute or point object to be constrained. |
| to_attribute | The attribute or the point to constrain to. |
This method invokes the corresponding method of the GlgObject class. See ConstrainObject for more information.
| boolean ContainsObject | ( | GlgObject | container, |
| Object | object | ||
| ) |
| Object GetElement | ( | GlgObject | container, |
| int | index | ||
| ) |
Returns element at the specified position in the container.
| container | A container object. |
| index | The element's position inside the container. |
This method invokes the corresponding method of the GlgObject class. See GetElement for more information.
| int GetIndex | ( | GlgObject | container, |
| Object | object | ||
| ) |
| int GetNumParents | ( | GlgObject | glg_object | ) |
ADVANCED: Returns number of the object's parents.
This method is used to determine the type of the return value of the GetParent method and must be called after the hierarchy is created.
For constrained objects, the method returns a number greater than 1.
| glg_object | An object to query. |
This method invokes the corresponding method of the GlgObject class.
ADVANCED: Returns an object's parent object, if one exists., or an array of all parents for constrained data objects.
| glg_object | An object to query. |
This method invokes the corresponding method of the GlgObject class. See GetParent for more information.
| Object GetResource | ( | GlgObject | glg_object, |
| String | resource_name | ||
| ) |
Deprecated, use GetNativeComponent:
Returns an ID of a native resource.
| glg_object | The object to be queried. |
| resource_name | Specifies the resource path of a native resource. |
This method was used in previous releases to get IDs of native objects used to render the viewport's drawing.
The method is deprecated, use GetNativeComponent.
Finds and returns a named resource or an attribute of the object.
| glg_object | The parent object whose resources are queried. |
| resource_name | A resource path to access the resource object inside the object the method is invoked on. It may use object names or default attribute names. |
This method invokes the corresponding method of the GlgObject class. See GetResourceObject for more information.
| int GetSize | ( | GlgObject | container | ) |
Returns size of the container object.
For a viewport or group object, the size is the number of objects in the viewport or group. For a polygon, the size is the number of vertices.
| container | A container object. |
While the method provides the Intermediate API functionality, it is also available in the Standard API when used with a group object returned by CreateTagList.
This method invokes the corresponding method of the GlgObject class.
| void Inverse | ( | GlgObject | container | ) |
| Object Iterate | ( | GlgObject | container | ) |
| Object IterateBack | ( | GlgObject | container | ) |
Traverses the container object's elements in the backward direction.
| container | A container object. |
This method invokes the corresponding method of the GlgObject class. See IterateBack for more information.
Releases the object that was suspended for editing.
| glg_object | The suspended object to be released. |
| suspend_info | Suspension information returned by the previous call to SuspendObject. |
This method releases previously suspended object and is intended to be used only in conjunction with the SuspendObject method.
This method invokes the corresponding method of the GlgObject class.
| boolean ReorderElement | ( | GlgObject | container, |
| int | old_index, | ||
| int | new_index | ||
| ) |
Changes an element's position inside the container.
| container | A container object. |
| old_index | The index of an element to be reordered. |
| new_index | A new element position. |
This method moves the element at the old_index to the new_index position inside the container. It generates an error message and returns false if indexes are out of range.
This method invokes the corresponding method of the GlgObject class.
| boolean SaveObject | ( | GlgObject | glg_object, |
| String | filename | ||
| ) |
Saves the object to a file using a default charset.
| filename | The file to save the object to. |
| glg_object | The object to save. |
This method invokes the corresponding method of the GlgObject class. See SaveObject for more information.
| boolean SaveObject | ( | GlgObject | glg_object, |
| String | filename, | ||
| String | charset_name | ||
| ) |
Saves an object into a file using the specified charset.
| filename | The file to save the object to. |
| glg_object | The object to save. |
| charset_name | Name of a charset for string encoding. |
This method invokes the corresponding method of the GlgObject class. See SaveObject for more information.
| void SetEnd | ( | GlgObject | container | ) |
Initializes the container object for the backward traversing.
The method sets the current position pointer past the last element of the container, preparing the container object for the backward traversing with IterateBack.
| container | A container object. |
This method invokes the corresponding method of the GlgObject class.
| void SetStart | ( | GlgObject | container | ) |
Initializes the container object for the forward traversing.
The method sets the current position pointer before the first element of the container, preparing the container object for the forward traversing with Iterate.
| container | A container object. |
This method invokes the corresponding method of the GlgObject class.
Suspends the object for editing after it has been drawn.
| glg_object | An object to be suspended. |
This method invokes the corresponding method of the GlgObject class. See SuspendObject for more information.
| boolean UnconstrainObject | ( | GlgObject | glg_object | ) |
Unconstrains an object's attribute or an object's point.
| glg_object | The attribute or point object to be unconstrained. |
This method invokes the corresponding method of the GlgObject class. See UnconstrainObject for more information.