public class PSurfaceAWT extends PSurfaceNone
Modifier and Type | Class and Description |
---|---|
class |
PSurfaceAWT.SmoothCanvas |
PSurfaceNone.AnimationThread
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
Constructor and Description |
---|
PSurfaceAWT(PGraphics graphics) |
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
createThread() |
java.lang.Object |
getNative()
Get the native window object associated with this drawing surface.
|
void |
hideCursor() |
void |
initFrame(PApplet sketch) |
void |
initOffscreen(PApplet sketch) |
void |
placePresent(int stopColor) |
void |
placeWindow(int[] location,
int[] editorLocation) |
void |
setAlwaysOnTop(boolean always)
Dumb name, but inherited from Frame and no better ideas.
|
void |
setCursor(int kind) |
void |
setCursor(PImage img,
int x,
int y) |
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(java.lang.String title)
Set the window (and dock, or whatever necessary) title.
|
void |
setupExternalMessages()
Set this sketch to communicate its state back to the PDE.
|
void |
setVisible(boolean visible)
Show or hide the window.
|
void |
showCursor() |
isStopped, pauseThread, resumeThread, setFrameRate, startThread, stopThread
public PSurfaceAWT(PGraphics graphics)
public void initOffscreen(PApplet sketch)
initOffscreen
in interface PSurface
initOffscreen
in class PSurfaceNone
public void initFrame(PApplet sketch)
initFrame
in interface PSurface
initFrame
in class PSurfaceNone
public java.lang.Object getNative()
PSurface
getNative
in interface PSurface
getNative
in class PSurfaceNone
public void setTitle(java.lang.String title)
setTitle
in interface PSurface
setTitle
in class PSurfaceNone
public void setResizable(boolean resizable)
setResizable
in interface PSurface
setResizable
in class PSurfaceNone
public void setIcon(PImage image)
setIcon
in interface PSurface
setIcon
in class PSurfaceNone
public void setAlwaysOnTop(boolean always)
PSurface
setAlwaysOnTop
in interface PSurface
setAlwaysOnTop
in class PSurfaceNone
public void setLocation(int x, int y)
setLocation
in interface PSurface
setLocation
in class PSurfaceNone
public void setVisible(boolean visible)
PSurfaceNone
setVisible
in interface PSurface
setVisible
in class PSurfaceNone
public void placePresent(int stopColor)
placePresent
in interface PSurface
placePresent
in class PSurfaceNone
public void placeWindow(int[] location, int[] editorLocation)
placeWindow
in interface PSurface
placeWindow
in class PSurfaceNone
public void setSize(int wide, int high)
setSize
in interface PSurface
setSize
in class PSurfaceNone
public void setupExternalMessages()
setupExternalMessages
in interface PSurface
setupExternalMessages
in class PSurfaceNone
public void setCursor(int kind)
setCursor
in interface PSurface
setCursor
in class PSurfaceNone
public void setCursor(PImage img, int x, int y)
setCursor
in interface PSurface
setCursor
in class PSurfaceNone
public void showCursor()
showCursor
in interface PSurface
showCursor
in class PSurfaceNone
public void hideCursor()
hideCursor
in interface PSurface
hideCursor
in class PSurfaceNone
public java.lang.Thread createThread()
createThread
in class PSurfaceNone