MLayer
Layer
-
FindFirstNonRootTabCycleMember(Layer n, int dir) : Layer
-
IsTabCycleKey(Key k) : int
- addActionConsumer(AbstractActionConsumer consumer)
-
addChildLayer(Layer l)
-
addLayer(Layer l, int layoutHints)
-
addTabCycleMembersToList(PointerArray list)
-
addXFMChild(Layer c)
-
addXFMObject(XFMObject o)
-
allowSubPixelPosition() : int
- Query whether layer allows sub-pixel placement. Allowing this can cause text rendering artefacts for example so the default is not to allow it.
allowSubPixelSize() : int
- Query whether layer allows sub-pixel size.
appendHierarchyString(String r, int cx) : String
-
beginXFMTag(AbstractXMLForm form, HashTable attributes) : int
-
buildTabCycleList()
- Scan child layers and build tab cycle list. Usually implemented by container-like layers (e.g. Panels).
calcAbsolutePosition(Point2f v)
-
calcPreferredSize() : int
-
calcPreferredSizeX() : int
-
calcPreferredSizeY() : int
-
callReopen()
-
consumeAction(AbstractAction ac) : int
-
containsAbsoluteXY(float x, y) : int
- Check whether this layer contains the given absolute coordinate.
drawChildHierarchy(int bForceRedraw, bCheckIntersect)
-
drawHierarchy(int bForceRedraw, bCheckIntersect)
-
endXFMTag(AbstractXMLForm form, HashTable attributes)
-
findTabCycleRoot() : Layer
- Find parent layer that is a a tab cycle root.
focusNextTabCycleMember(int local)
- Determine next tab cycle member and set the keyboard focus. This method does not generate a onKeyboardFocusLost() event for the current tab focus layer; yet it will generate an onTabFocusLost() event for the current layer and an onTabFocus() event for the new tab focus layer. If the local argument is true, this will only cycle within the list of the tab cycle root that references this layer in its cycle list.
focusPreviousTabCycleMember(int local)
- Determine previous tab cycle member and set the keyboard focus. This method does not generate a onKeyboardFocusLost() event for the current tab focus layer; yet it will generate an onTabFocusLost() event for the current layer and an onTabFocus() event for the new tab focus layer. If the local argument is true, this will only cycle within the list of the tab cycle root that references this layer in its cycle list.
getAbsolutePositionString() : String
-
getAbsolutePositionX() : float
-
getAbsolutePositionY() : float
-
getAlignment() : int
-
getAlpha() : int
-
getGeometryString() : String
-
getLayerId() : String
-
getLayout()
- Return the layout of this layer.
getLayoutFirstChild() : Layer
-
getLayoutHints() : int
-
getLayoutSizeX() : float
-
getLayoutSizeY() : float
-
getLayoutWeightX() : float
-
getLayoutWeightY() : float
-
getMinimumSizePadX() : float
-
getMinimumSizePadY() : float
-
getMinimumSizeX() : float
-
getMinimumSizeY() : float
-
getPadBottom() : float
-
getPadLeft() : float
-
getPadRight() : float
-
getPadTop() : float
-
getParent() : Layer
-
getPositionString() : String
-
getPositionX() : float
-
getPositionY() : float
-
getPreferredSizePadX() : float
-
getPreferredSizePadY() : float
-
getPreferredSizeX() : float
-
getPreferredSizeY() : float
-
getRoot() : Layer
-
getScalingX() : float
-
getScalingY() : float
-
getScreenRegion() : Rectangle2f
- Return the rectangular screen region occupied by this layer
getSizeX() : float
-
getSizeY() : float
-
getTabCycleOrder() : int
- Returns sorting order in tabcycleroot list. Should return -1 if this layer is not focusable.
grabKeyboardFocus()
- Helper method to delegate key input to this layer.
handleNewTabCycleFocus(Layer n)
-
hasChildLayer(Layer l) : int
- Query whether this layer has the given child layer.
hasKeyboardFocus() : int
- Query whether this layer currently has the keyboard focus
hasMouseFocus() : int
- Query whether this layer currently has the mouse focus
hasParent(Layer l) : int
- Query whether l is a parent of this layer.
hide()
- Hide layer. Only used for dialogs/windows/popups.
hideToolTip()
-
invalidateAbsolutePositions()
-
isEmptyTabCycleProxy() : int
-
isModal() : int
- This is used to implement dialog windows that make all other floating layers
isMouseFocusLocked() : int
-
isMouseOver() : int
-
isPopup() : int
- Return true if the floating layer should be closed when the user clicks outside the layer area
isTabCycleMember() : int
- Query whether this layer supports tab-cycling. A special case are tabcycleroots which cannot be focused themselves but still are cycle memberes and thus should have a tab cycle order assigned.
isTabCycleProxy() : int
- Query whether the layer is cycleroot and active cyclemember at the same time, e.g. a TabbedView.
isTabCycleRoot() : int
- Query whether this layer manages a focus cycle list for its child layers.
isTranslucent() : int
-
Layer()
-
layerAt2f(float x, y) : Layer
-
layoutHierarchy()
- Layout child layers. Assumes that this layer is already layouted.
loseKeyboardFocus()
- Lose keyboard focus (if this layer has it), do not generate onKeyboardFocusLost() event!
loseMouseFocus()
- Lose mouse focus (if this layer has it), do not generate onMouseLeave() event!
moveToPosition2f(float x, y)
-
newToolTip() : ToolTip
- Instantiate and return new ToolTip object. The ToolTip instance is deleted when the tooltip is hidden.
onAcceleratorKey(AcceleratorKey k)
- Called if the given accelerator key has been pressed.
onChildMouseEnter(MouseEvent ev)
- Called if a child gains the mouse focus. Used for submenus to disable the auto-hide timeout if a submenu child is re-focused.
onDraw()
- The onDraw() method is called when the layer region needs to be repainted.
onKey(Key key) : int
- The onKey() method is called when a keyboard input event has been received from the HAL(SDL) subsystem. Returns true/false depending on whether the event was handled or not.
onKeyboardFocus()
- The onKeyboardFocus() method is called when this layer has gained the keyboard focus. This method is usually called if a new keyboard focus has been set by @UI.SetKeyboardFocus.
onKeyboardFocusLost()
- The onKeyboardFocusLost() method is called when this layer has lost the keyboard focus; probably because another layer grabbed it.
onLookAndFeelChanged()
- Called by @UI.SetLookAndFeel() if the look and feel class has changed. Layers that store color information in member variables have to re-read these fields for example (e.g. @Label or @TransparentPanel).
onMouse(MouseEvent ev) : int
-
onMouseBeginDrag(MouseEvent dragStart, ev) : int
-
onMouseClick(MouseEvent ev) : int
-
onMouseDoubleClick(MouseEvent ev) : int
-
onMouseDrag(MouseEvent lastEv, currentEv) : int
- Called when onMouseBeginDrag() returned true, the left mouse button is held down and the mouse has moved at least §UIConstants.MOUSE_DRAG_THRESHOLD pixels.
onMouseEndDrag(MouseEvent ev)
-
onMouseEnter(MouseEvent ev) : int
-
onMouseFocus()
-
onMouseHold(MouseEvent startEv) : int
- Called when a mouse button is pressed and held down for §UIConstants.MOUSE_HOLD_DELAY milliseconds without moving the mouse pointer.
onMouseLeave(MouseEvent ev) : int
-
onMouseUnfocus()
-
onReopen()
-
onTabFocus()
- Called if the keyboard focus was gained by cycling through the layers using tab/cursor keys. Also used by some dialog classes to set the default button. This event is very similar to onKeyboardFocus() although the layer can implement a slightly different behaviour (e.g. a textfield might want to select all text)
provideAction(AbstractAction providedAction)
-
recursiveBuildTabCycleLists()
- Utility method that is used to recursively build tabcycle lists for all children. Usually this is automatically done when using XMLForms but if the layer hierarchy is built programmatically this method might be handy.
recursiveFocusTabCycleMember(Layer active, int dir, local) : int
-
recursiveOnLookAndFeelChanged()
- Do not call directly. This is called by @UI.SetLookAndFeel().
redraw()
- Redraw this layer
redrawAll()
- Redraw all layers. Also see §UI.RedrawAll
removeActionConsumer(AbstractActionConsumer consumer)
-
removeChildHierarchy()
-
removeChildLayer(Layer l)
-
removeChildren()
-
revertCursor(String name)
-
scheduleToolTipTimer()
-
setAlignment(int alignment)
-
setAlpha(int a)
-
setGeometry(float px, py, sx, sy)
-
setLayerId(String id)
-
setLayout(Layout l)
- Set a Layout for this Layer.
setLayoutHints(int hints)
-
setLayoutWeight2f(float x, y)
-
setLayoutWeightX(float wx)
-
setLayoutWeightY(float wy)
-
setMinimumSize2f(float w, h)
-
setMinimumSizeX(float x)
-
setMinimumSizeY(float y)
-
setPadBottom(float bottom)
-
setPadding4f(float top, left, bottom, right)
-
setPadLeft(float left)
-
setPadRight(float right)
-
setPadTop(float top)
-
setPosition2f(float x, y)
-
setPositionX(float x)
-
setPositionY(float y)
-
setPreferredSize2f(float w, h)
-
setPreferredSizeX(float w)
-
setPreferredSizeY(float h)
-
setRequiredSize2f(float w, h)
- Force layer size to be (_w; _h)
setRequiredSizeX(float w)
-
setRequiredSizeY(float h)
-
setScaling2f(float x, y)
-
setScalingX(float x)
-
setScalingY(float y)
-
setSize2f(float x, y)
-
setSizeX(float x)
-
setSizeY(float y)
-
setTabCycleOrder(int order)
-
setToolTipCaption(String tooltipCaption)
-
showCursor(String name)
-
showToolTip()
-
wantKeyRepeat(Key k) : int
-
~Layer()
- float
ABS_INVALID
-
int
DEFAULT_PREFERRED_SIZE_X
-
int
DEFAULT_PREFERRED_SIZE_Y
-
auto-generated by "DOG", the TkScript document generator. Mon, 21/May/2007 00:21:47