|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.RenderPass
org.xith3d.ui.swingui.UIWindowManager
public class UIWindowManager
The overlay manager keeps track of all the overlay's on the screen and makes sure they are updated with the view transform once a frame. The Overlay manager should be placed into the XithBackground in the last ordered group to ensure that it is rendered last.
Originally Coded by David Yazel on Oct 4, 2003 at 11:29:28 PM.
| Field Summary | |
|---|---|
Transform3D |
lastTransform
|
Transform3D |
planeOffset
|
Transform3D |
worldTransform
|
| Constructor Summary | |
|---|---|
UIWindowManager(Canvas3D c)
|
|
| Method Summary | |
|---|---|
UIPositionedWindow |
addOverlay(UIOverlayInterface overlay)
This adds an overlay into the overlay manager system. |
void |
calcImagePlate()
|
int |
getX(UIOverlayInterface overlay)
|
int |
getY(UIOverlayInterface overlay)
|
boolean |
isVisible(UIOverlayInterface overlay)
|
void |
newFrame(Transform3D viewTransform)
Called once a frame to update the different overlays. |
void |
newFrame(View view)
Called each frame prior to rendering to update the overlays. |
void |
processEvent(java.awt.AWTEvent e)
|
void |
processMouseEvent(java.awt.event.MouseEvent me)
|
void |
removeOverlay(UIOverlayInterface overlay)
This removes the overlay from the overlay system. |
void |
setOverlayFocus(UIOverlayInterface overlay)
|
void |
setOverlayFocus(UIPositionedWindow w)
|
void |
setPosition(UIOverlayInterface overlay,
int x,
int y)
Sets the position of the specified overlay |
void |
setVisible(UIOverlayInterface overlay,
boolean show)
Sets the visibility of the window |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Transform3D planeOffset
public Transform3D worldTransform
public Transform3D lastTransform
| Constructor Detail |
|---|
public UIWindowManager(Canvas3D c)
| Method Detail |
|---|
public void calcImagePlate()
public void newFrame(View view)
newFrame(view.getTransform());
view - the view who's transform is used to update the overlays.public void newFrame(Transform3D viewTransform)
public UIPositionedWindow addOverlay(UIOverlayInterface overlay)
public void removeOverlay(UIOverlayInterface overlay)
public void setVisible(UIOverlayInterface overlay,
boolean show)
public boolean isVisible(UIOverlayInterface overlay)
public void setPosition(UIOverlayInterface overlay,
int x,
int y)
public int getX(UIOverlayInterface overlay)
public int getY(UIOverlayInterface overlay)
public void processEvent(java.awt.AWTEvent e)
public void setOverlayFocus(UIOverlayInterface overlay)
public void setOverlayFocus(UIPositionedWindow w)
public void processMouseEvent(java.awt.event.MouseEvent me)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||