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()
PSurface
public void initOffscreen(PApplet sketch)
initOffscreen
in interface PSurface
public void setTitle(java.lang.String title)
public void setVisible(boolean visible)
setVisible
in interface PSurface
public void setResizable(boolean resizable)
setResizable
in interface PSurface
public void setAlwaysOnTop(boolean always)
PSurface
setAlwaysOnTop
in interface PSurface
public void placeWindow(int[] location, int[] editorLocation)
placeWindow
in interface PSurface
public void placePresent(int stopColor)
placePresent
in interface PSurface
public void setupExternalMessages()
setupExternalMessages
in interface PSurface
public void setLocation(int x, int y)
setLocation
in interface PSurface
public void setSmooth(int level)
public void setFrameRate(float fps)
setFrameRate
in interface PSurface
public void setCursor(PImage image, int hotspotX, int hotspotY)
public void showCursor()
showCursor
in interface PSurface
public void hideCursor()
hideCursor
in interface PSurface
public void startThread()
PSurface
startThread
in interface PSurface
public void pauseThread()
PSurface
pauseThread
in interface PSurface
public void resumeThread()
resumeThread
in interface PSurface
public boolean stopThread()
PSurface
stopThread
in interface PSurface