| Modifier and Type | Class and Description |
|---|---|
static class |
PSurfaceFX.PApplicationFX |
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH| Constructor and Description |
|---|
PSurfaceFX(PGraphicsFX2D graphics) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getNative()
Get the native window object associated with this drawing surface.
|
void |
hideCursor() |
void |
initFrame(PApplet sketch) |
void |
initOffscreen(PApplet sketch) |
boolean |
isStopped() |
void |
pauseThread()
On the next trip through the animation thread, things should go sleepy-bye.
|
void |
placePresent(int stopColor) |
void |
placeWindow(int[] location,
int[] editorLocation) |
void |
resumeThread() |
void |
setAlwaysOnTop(boolean always)
Dumb name, but inherited from Frame and no better ideas.
|
void |
setCursor(int kind) |
void |
setCursor(PImage image,
int hotspotX,
int hotspotY) |
void |
setFrameRate(float fps) |
void |
setIcon(PImage icon) |
void |
setLocation(int x,
int y) |
void |
setResizable(boolean resizable)
Set true if we want to resize things (default is not resizable)
|
void |
setSize(int wide,
int high) |
void |
setSmooth(int level) |
void |
setTitle(java.lang.String title)
Set the window (and dock, or whatever necessary) title.
|
void |
setupExternalMessages() |
void |
setVisible(boolean visible)
Show or hide the window.
|
void |
showCursor() |
void |
startThread()
Start the animation thread
|
boolean |
stopThread()
Stop the animation thread (set it null)
|
public PSurfaceFX(PGraphicsFX2D graphics)
public java.lang.Object getNative()
PSurfacepublic void initOffscreen(PApplet sketch)
initOffscreen in interface PSurfacepublic void setTitle(java.lang.String title)
public void setVisible(boolean visible)
setVisible in interface PSurfacepublic void setResizable(boolean resizable)
setResizable in interface PSurfacepublic void setAlwaysOnTop(boolean always)
PSurfacesetAlwaysOnTop in interface PSurfacepublic void placeWindow(int[] location,
int[] editorLocation)
placeWindow in interface PSurfacepublic void placePresent(int stopColor)
placePresent in interface PSurfacepublic void setupExternalMessages()
setupExternalMessages in interface PSurfacepublic void setLocation(int x,
int y)
setLocation in interface PSurfacepublic void setSmooth(int level)
public void setFrameRate(float fps)
setFrameRate in interface PSurfacepublic void setCursor(PImage image, int hotspotX, int hotspotY)
public void showCursor()
showCursor in interface PSurfacepublic void hideCursor()
hideCursor in interface PSurfacepublic void startThread()
PSurfacestartThread in interface PSurfacepublic void pauseThread()
PSurfacepauseThread in interface PSurfacepublic void resumeThread()
resumeThread in interface PSurfacepublic boolean stopThread()
PSurfacestopThread in interface PSurface