public class PSurfaceNone extends Object implements PSurface
Modifier and Type | Class and Description |
---|---|
class |
PSurfaceNone.AnimationThread |
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
Constructor and Description |
---|
PSurfaceNone(PGraphics graphics) |
Modifier and Type | Method and Description |
---|---|
Thread |
createThread() |
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 image) |
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 |
setTitle(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 PSurfaceNone(PGraphics graphics)
public void initOffscreen(PApplet sketch)
initOffscreen
in interface PSurface
public Object getNative()
PSurface
public void setTitle(String title)
public void setVisible(boolean visible)
setVisible
in interface PSurface
public void setResizable(boolean resizable)
setResizable
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 setAlwaysOnTop(boolean always)
PSurface
setAlwaysOnTop
in interface PSurface
public void setLocation(int x, int y)
setLocation
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 Thread createThread()
public void startThread()
PSurface
startThread
in interface PSurface
public boolean stopThread()
PSurface
stopThread
in interface PSurface
public void pauseThread()
PSurface
pauseThread
in interface PSurface
public void resumeThread()
resumeThread
in interface PSurface
public void setFrameRate(float fps)
setFrameRate
in interface PSurface