com.intel.ui
Class Widget
- java.lang.Object
-
- 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 parentWidget
. 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
Methods Modifier and Type Method and Description 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 parentWidget
.XYPair
getSize()
Returns the size of theWidget
.
-
-
-
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 parentWidget
.- Returns:
- Returns the relative location of the widget within the parent
Widget
.
-
getSize
public XYPair getSize()
Returns the size of theWidget
.- Returns:
- Returns the size of the
Widget
.
-
-