|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Component
pivot.wtk.Container
pivot.wtk.Display
public final class Display
Container that serves as the root of a component hierarchy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pivot.wtk.Component |
---|
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Constructor Summary | |
---|---|
protected |
Display(ApplicationContext.DisplayHost displayHost)
|
Method Summary | |
---|---|
ApplicationContext.DisplayHost |
getDisplayHost()
|
Point |
getMouseLocation()
|
void |
insert(Component component,
int index)
Inserts an item into the sequence at a specific index. |
void |
invalidate()
Notifies the component's parent that it needs to re-layout. |
void |
paint(java.awt.Graphics2D graphics)
Paints the component. |
void |
repaint(int x,
int y,
int width,
int height,
boolean immediate)
Flags an area as needing to be repainted. |
void |
setLocation(int x,
int y)
Sets the component's location. |
protected void |
setParent(Container parent)
|
protected void |
setSkin(Skin skin)
Sets the skin, replacing any previous skin. |
Methods inherited from class pivot.wtk.Container |
---|
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, isAncestor, isFocusable, isValid, iterator, load, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, remove, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setTooltip, setVisible, store, store, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Display(ApplicationContext.DisplayHost displayHost)
Method Detail |
---|
public ApplicationContext.DisplayHost getDisplayHost()
public Point getMouseLocation()
protected void setSkin(Skin skin)
Component
setSkin
in class Component
skin
- The new skin.protected void setParent(Container parent)
setParent
in class Container
public void setLocation(int x, int y)
Component
setLocation
in class Component
x
- The component's horizontal position relative to the origin of the
parent container.y
- The component's vertical position relative to the origin of the
parent container.public void invalidate()
Component
invalidate
in class Container
public void repaint(int x, int y, int width, int height, boolean immediate)
Component
repaint
in class Component
public void paint(java.awt.Graphics2D graphics)
Component
paint
in interface Visual
paint
in class Container
graphics
- The graphics context in which to paint the visual.public void insert(Component component, int index)
Sequence
insert
in interface Sequence<Component>
insert
in class Container
component
- The item to be added to the sequence.index
- The index at which the item should be inserted. Must be a value between
0 and getLength().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |