processing.awt
Class PSurfaceAWT
- java.lang.Object
-
- processing.core.PSurfaceNone
-
- processing.awt.PSurfaceAWT
-
- All Implemented Interfaces:
- PSurface
public class PSurfaceAWT extends PSurfaceNone
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classPSurfaceAWT.SmoothCanvas-
Nested classes/interfaces inherited from class processing.core.PSurfaceNone
PSurfaceNone.AnimationThread
-
-
Field Summary
-
Fields inherited from interface processing.core.PSurface
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
-
-
Constructor Summary
Constructors Constructor and Description PSurfaceAWT(PGraphics graphics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.ThreadcreateThread()java.lang.ObjectgetNative()Get the native window object associated with this drawing surface.voidhideCursor()voidinitFrame(PApplet sketch)voidinitOffscreen(PApplet sketch)voidplacePresent(int stopColor)voidplaceWindow(int[] location, int[] editorLocation)voidsetAlwaysOnTop(boolean always)Dumb name, but inherited from Frame and no better ideas.voidsetCursor(int kind)voidsetCursor(PImage img, int x, int y)voidsetIcon(PImage image)voidsetLocation(int x, int y)voidsetResizable(boolean resizable)Set true if we want to resize things (default is not resizable)voidsetSize(int wide, int high)voidsetTitle(java.lang.String title)Set the window (and dock, or whatever necessary) title.voidsetupExternalMessages()Set this sketch to communicate its state back to the PDE.voidsetVisible(boolean visible)Show or hide the window.voidshowCursor()-
Methods inherited from class processing.core.PSurfaceNone
isStopped, pauseThread, resumeThread, setFrameRate, startThread, stopThread
-
-
-
-
Constructor Detail
-
PSurfaceAWT
public PSurfaceAWT(PGraphics graphics)
-
-
Method Detail
-
initOffscreen
public void initOffscreen(PApplet sketch)
- Specified by:
initOffscreenin interfacePSurface- Overrides:
initOffscreenin classPSurfaceNone
-
initFrame
public void initFrame(PApplet sketch)
- Specified by:
initFramein interfacePSurface- Overrides:
initFramein classPSurfaceNone
-
getNative
public java.lang.Object getNative()
Description copied from interface:PSurfaceGet the native window object associated with this drawing surface. For Java2D, this will be an AWT Frame object. For OpenGL, the window. The data returned here is subject to the whims of the renderer, and using this method means you're willing to deal with underlying implementation changes and that you won't throw a fit like a toddler if your code breaks sometime in the future.- Specified by:
getNativein interfacePSurface- Overrides:
getNativein classPSurfaceNone
-
setTitle
public void setTitle(java.lang.String title)
Set the window (and dock, or whatever necessary) title.- Specified by:
setTitlein interfacePSurface- Overrides:
setTitlein classPSurfaceNone
-
setResizable
public void setResizable(boolean resizable)
Set true if we want to resize things (default is not resizable)- Specified by:
setResizablein interfacePSurface- Overrides:
setResizablein classPSurfaceNone
-
setIcon
public void setIcon(PImage image)
- Specified by:
setIconin interfacePSurface- Overrides:
setIconin classPSurfaceNone
-
setAlwaysOnTop
public void setAlwaysOnTop(boolean always)
Description copied from interface:PSurfaceDumb name, but inherited from Frame and no better ideas.- Specified by:
setAlwaysOnTopin interfacePSurface- Overrides:
setAlwaysOnTopin classPSurfaceNone
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfacePSurface- Overrides:
setLocationin classPSurfaceNone
-
setVisible
public void setVisible(boolean visible)
Description copied from class:PSurfaceNoneShow or hide the window.- Specified by:
setVisiblein interfacePSurface- Overrides:
setVisiblein classPSurfaceNone
-
placePresent
public void placePresent(int stopColor)
- Specified by:
placePresentin interfacePSurface- Overrides:
placePresentin classPSurfaceNone
-
placeWindow
public void placeWindow(int[] location, int[] editorLocation)- Specified by:
placeWindowin interfacePSurface- Overrides:
placeWindowin classPSurfaceNone
-
setSize
public void setSize(int wide, int high)- Specified by:
setSizein interfacePSurface- Overrides:
setSizein classPSurfaceNone
-
setupExternalMessages
public void setupExternalMessages()
Set this sketch to communicate its state back to the PDE. This uses the stderr stream to write positions of the window (so that it will be saved by the PDE for the next run) and notify on quit. See more notes in the Worker class.- Specified by:
setupExternalMessagesin interfacePSurface- Overrides:
setupExternalMessagesin classPSurfaceNone
-
setCursor
public void setCursor(int kind)
- Specified by:
setCursorin interfacePSurface- Overrides:
setCursorin classPSurfaceNone
-
setCursor
public void setCursor(PImage img, int x, int y)
- Specified by:
setCursorin interfacePSurface- Overrides:
setCursorin classPSurfaceNone
-
showCursor
public void showCursor()
- Specified by:
showCursorin interfacePSurface- Overrides:
showCursorin classPSurfaceNone
-
hideCursor
public void hideCursor()
- Specified by:
hideCursorin interfacePSurface- Overrides:
hideCursorin classPSurfaceNone
-
createThread
public java.lang.Thread createThread()
- Overrides:
createThreadin classPSurfaceNone
-
-
DataMelt 3.0 © DataMelt by jWork.ORG