|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.gui2.DrawAtom | +--gishur.gui2.DrawManager | +--gishur.gui2.LayerManager
A LayerManager is a DrawManager
that manages a list of Layer
s,
one BackgroundLayer
and one InputLayer
.
A LayerManager accepts (and consumes) the following messages:
Accepted Messages | ||
Message ID | Argument Type | Meaning |
gain_focus | gishur.gui2.DisplayObject | Gains the focus for the given DisplayObject. |
lose_focus | gishur.gui2.DisplayObject | Loses the focus of the actual focused Object. |
BackgroundLayer
,
InputLayer
Fields inherited from class gishur.gui2.DrawAtom |
BLOCK_REPAINT, MARK_RECALC, MARK_REPAINT, MARK_SIZE, REPAINT, UNBLOCK_REPAINT, USER_STATES_FIRST, USER_STATES_MASK |
Constructor Summary | |
LayerManager()
Default constructor. |
Method Summary | |
void |
add(Layer layer)
Adds the Layer layer at the end of the layer list. |
BackgroundLayer |
background()
Returns the background layer of this LayerManager. |
Layer |
first()
Returns the first stored Layer in the LayerManager. |
InputLayer |
input()
Returns the input layer of this LayerManager. |
void |
insert(Layer l,
Layer layer)
Inserts the Layer layer in the layer list
before l . |
Layer |
last()
Returns the last stored Layer in the LayerManager. |
Layer |
layer(int i)
Returns the layer with the given index. |
int |
layerCount()
Returns the number of the stored layers. |
void |
remove(Layer layer)
Removes the given Layer from this layer list. |
void |
setBackground(BackgroundLayer back)
Set the background to the given background layer. |
void |
setInputLayer(InputLayer input)
Set the input layer. |
void |
setScreenTransformation(ScreenTransformation transform)
Sets the screen transformation for this Layer. |
Methods inherited from class gishur.gui2.DrawManager |
dispatchEvent, displayManager, draw, drawComponent, processMessage, recalculate |
Methods inherited from class gishur.gui2.DrawAtom |
addProperties, collectHits, getBounds, getLocalProperty, getProperty, getProperty, getRequiredProperty, locate, prepeareRenderContext, preprocessEvent, properties, removeProperty, sendEvent, sendMessage, setBounds, setPropertiesTo, setProperty, setProperty, setProperty, setProperty, toString, toString, toStringDetail, toTreeString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LayerManager()
Method Detail |
public BackgroundLayer background()
public InputLayer input()
public void setBackground(BackgroundLayer back)
back
- the new BackgroundLayer
public void setInputLayer(InputLayer input)
input
- new input layerpublic final void setScreenTransformation(ScreenTransformation transform)
ScreenTransformation
correctly, use this method instead of DrawAtom.setProperty(java.lang.String, java.lang.Object)
.transform
- the new ScreenTransformation
public Layer first()
Layer
in the LayerManager.Layer
public Layer last()
Layer
in the LayerManager.Layer
public Layer layer(int i)
index
- of the layer (0
for the first)public int layerCount()
public void add(Layer layer)
Layer
layer
at the end of the layer list.layer
- Layer
to addpublic void insert(Layer l, Layer layer)
Layer
layer
in the layer list
before l
.l
- Layer
to insert before or null
to add
at the end of the layer listlayer
- Layer
to insertpublic void remove(Layer layer)
Layer
from this layer list. All members
of the layer are removed.layer
- Layer
to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |