Intel

Developer Zone

Widget


com.intel.ui
Class Widget

java.lang.Object
  extended by com.intel.ui.Widget
Direct Known Subclasses:
CompositeWidget, Image, Label, Line, Rectangle

public abstract class Widget
extends java.lang.Object

This abstract class represents a parent class of all window gadgets. A widget consists of the following properties: ID, size, color and relative location inside the parent Widget. Widget IDs are for quick reference for the calling application (e.g. identifying a clicked object), and are not used internally by the package classes.


Method Summary
int getColor()
Returns the RGB color of the widget in the following format: bits 0-7 are blue, bits 8-15 are green, bits 16-23 are red, bits 24-31 are reserved.
short getId()
Returns the ID of the widget.
XYPair getRelativeLocation()
Returns the relative location of the widget (the top left corner of the widget) within the parent Widget.
XYPair getSize()
Returns the size of the Widget.
Methods inherited from class java.lang.Object
equals, hashCode, toString

Method Detail

getId

public short getId()
Returns the ID of the widget.

Returns:
Returns the ID of the widget.

getColor

public int getColor()
Returns the RGB color of the widget in the following format: bits 0-7 are blue, bits 8-15 are green, bits 16-23 are red, bits 24-31 are reserved.

Returns:
Returns the RGB color of the widget (bits 0-7 are blue, bits 8-15 are green, bits 16-23 are red, bits 24-31 are reserved).

getRelativeLocation

public XYPair getRelativeLocation()
Returns the relative location of the widget (the top left corner of the widget) within the parent Widget.

Returns:
Returns the relative location of the widget within the parent Widget.

getSize

public XYPair getSize()
Returns the size of the Widget.

Returns:
Returns the size of the Widget.