|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.swingui.UIWindow
public class UIWindow
A UI window is a special container for Swing components which can be rendered on a Xith3D canvas.
| Constructor Summary | |
|---|---|
UIWindow(int width,
int height,
boolean clipAlpha,
boolean blendAlpha)
|
|
UIWindow(javax.swing.JComponent root,
int width,
int height,
boolean clipAlpha,
boolean blendAlpha)
|
|
| Method Summary | |
|---|---|
void |
dispatchEvent(java.awt.AWTEvent e)
|
boolean |
dragging(int index,
java.awt.Component c,
java.awt.event.MouseEvent me,
UIDraggingInformation info)
Finds the deepest component that will accept the dragging request. |
boolean |
dragging(java.awt.event.MouseEvent me,
UIDraggingInformation info)
Once a legitimate dragging operation is started then windows which implement this interface will get this callback as the icon is moved over their surface. |
boolean |
drop(int index,
java.awt.Component c,
java.awt.event.MouseEvent me,
UIDraggingInformation info)
Finds the deepest component that will accept the drop request. |
boolean |
dropped(java.awt.event.MouseEvent me,
UIDraggingInformation info)
When the mouse is released the dragging operation will stop. |
java.awt.image.BufferedImage |
getBuffer()
|
java.util.ArrayList<?> |
getDirtyAreas()
|
int |
getHeight()
|
UIOverlay |
getOverlay()
|
Node |
getRoot()
|
void |
getSize(java.awt.Dimension dim)
Gets the dimension of the overlay. |
int |
getWidth()
|
UIWindowManager |
getWindowManager()
|
int |
getX()
|
int |
getY()
|
boolean |
isDisabled()
|
boolean |
isDraggable()
|
boolean |
isOpaque()
This method is used by overlay manager to optimize the display of the overlay. |
void |
pack()
|
void |
processWindowEvent(java.awt.event.WindowEvent event)
|
void |
renderToBuffer(java.util.ArrayList<?> dirtyList)
|
void |
setComponentFocus(java.awt.Component focus)
|
void |
setDisabled(boolean b)
|
void |
setDraggable(boolean b)
|
void |
setFocus(boolean hasFocus)
|
void |
setPosition(int x,
int y)
|
void |
setRoot(javax.swing.JComponent root)
|
void |
setVisible(boolean visible)
|
void |
setWindowManager(UIWindowManager manager)
|
UIDraggingInformation |
startDrag(java.awt.event.MouseEvent me)
Called when the overlay manager starts a drag action. |
void |
update()
Called once per frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIWindow(int width,
int height,
boolean clipAlpha,
boolean blendAlpha)
public UIWindow(javax.swing.JComponent root,
int width,
int height,
boolean clipAlpha,
boolean blendAlpha)
| Method Detail |
|---|
public int getWidth()
public int getHeight()
public void setWindowManager(UIWindowManager manager)
public UIWindowManager getWindowManager()
public void setRoot(javax.swing.JComponent root)
public java.awt.image.BufferedImage getBuffer()
public UIOverlay getOverlay()
public boolean dragging(int index,
java.awt.Component c,
java.awt.event.MouseEvent me,
UIDraggingInformation info)
public boolean drop(int index,
java.awt.Component c,
java.awt.event.MouseEvent me,
UIDraggingInformation info)
public java.util.ArrayList<?> getDirtyAreas()
public void pack()
public void setComponentFocus(java.awt.Component focus)
public void setVisible(boolean visible)
public void dispatchEvent(java.awt.AWTEvent e)
public void processWindowEvent(java.awt.event.WindowEvent event)
public void renderToBuffer(java.util.ArrayList<?> dirtyList)
public void getSize(java.awt.Dimension dim)
UIOverlayInterface
getSize in interface UIOverlayInterfacepublic void update()
UIOverlayInterface
update in interface UIOverlayInterfacepublic Node getRoot()
getRoot in interface UIOverlayInterfacepublic boolean isOpaque()
UIOverlayInterface
isOpaque in interface UIOverlayInterfacepublic UIDraggingInformation startDrag(java.awt.event.MouseEvent me)
UIDragDropInterface
startDrag in interface UIDragDropInterface
public boolean dragging(java.awt.event.MouseEvent me,
UIDraggingInformation info)
UIDragDropInterface
dragging in interface UIDragDropInterface
public boolean dropped(java.awt.event.MouseEvent me,
UIDraggingInformation info)
UIDragDropInterface
dropped in interface UIDragDropInterfacepublic void setDisabled(boolean b)
public boolean isDisabled()
public void setDraggable(boolean b)
public boolean isDraggable()
public int getX()
public int getY()
public void setPosition(int x,
int y)
public void setFocus(boolean hasFocus)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||