public class RectangleGuiImpl extends Rect<GuiOutputManager>
Widget.ZOrderClass
Modifier and Type | Field and Description |
---|---|
private GuiColorResolver |
gc
Color resolver.
|
private GuiDriver |
gd
Screen driver.
|
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
RectangleGuiImpl(WidgetId id,
Container<GuiOutputManager> owner)
This constructor creates a rectangle.
|
RectangleGuiImpl(WidgetId id,
RectangleConfig cfg)
Special constructor used to restore component using given configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draw the rectangle.
|
Widget.ZOrderClass |
getZOrderClass()
Get the Z-Order class
|
void |
initialize(WidgetId id,
RectangleConfig wcfg)
Replacement API for the logic which should exist in the widget's c'tor, but the logic
can't be executed as it depends on the widget being registered into the official registry.
|
protected int[] |
mouseActions()
Determine the mouse actions processed by this widget.
|
afterConfigUpdate, config, dimension, focusTraversable, height, minimumSize, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, createMouseHoverAction, deactivateDirectManipulation, debug, destroy, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, hasFocus, hidden, hide, highlighted, ignoreAction, insets, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, manageSystemActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, unrealize, updateSizeWorker, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
defaultMousePtr, enforceDefaultMousePtr, getLegacyWidget, isDirectManipulable
private GuiDriver gd
private GuiColorResolver gc
RectangleGuiImpl(WidgetId id, Container<GuiOutputManager> owner)
id
- The widget's ID.owner
- The parent container, frame which will include this
rectangle.public RectangleGuiImpl(WidgetId id, RectangleConfig cfg)
id
- The widget's ID.cfg
- Configuration data.public void initialize(WidgetId id, RectangleConfig wcfg)
This API is called after the widget is created and added to the registry.
initialize
in interface WidgetWithConfig<RectangleConfig>
initialize
in class Rect<GuiOutputManager>
id
- The widget's ID.wcfg
- The config used to initialize this widget.public void draw()
draw
in interface Widget<GuiOutputManager>
draw
in class Rect<GuiOutputManager>
public Widget.ZOrderClass getZOrderClass()
getZOrderClass
in interface Widget<GuiOutputManager>
getZOrderClass
in class AbstractWidget<GuiOutputManager>
protected int[] mouseActions()
mouseActions
in class AbstractWidget<GuiOutputManager>