Class UICanvas
public class UICanvas extends UIStateComponent
{
// Methods
public int getID();
public String getName();
public void setID(int id);
public void setName(String name);
}
This class implements a canvas control. UICanvas objects, such as UIDrawText controls, UILine controls, and UIStatic controls, provide a context for displaying text or images. UICanvas defines methods for retrieving and setting the object's name and identifier.
UIComponent
|
+--UIStateComponent
|
+--UICanvas
public int getID();
Retrieves the control's identifier.
Return Value:
Returns the integer associated with the control.
See Also: setID, getName
public String getName();
Retrieves the control's name.
Return Value:
Returns the string that displays the control's associated name.
See Also: setName, getID
public void setID(int id);
Sets the control's identifier.
Return Value:
No return value.
Parameter | Description |
id
| The value to be associated with the control.
|
See Also: getID, setName
public void setName(String name);
Sets the control's name.
Return Value:
No return value.
Parameter | Description |
name
| The name to be associated with the control.
|
See Also: getName, setID