Package processing.core
Class PSurfaceNone
java.lang.Object
processing.core.PSurfaceNone
- All Implemented Interfaces:
PSurface
- Direct Known Subclasses:
PSurfaceAWT
Surface that's not really visible. Used for PDF and friends, or as a base
class for other drawing surfaces. It includes the standard rendering loop.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface processing.core.PSurface
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdisplayDensity(int display) Get the native window object associated with this drawing surface.voidvoidvoidinitOffscreen(PApplet sketch) booleanbooleanvoidOn the next trip through the animation thread, things should go sleepy-bye.voidplacePresent(int stopColor) voidplaceWindow(int[] location, int[] editorLocation) voidvoidselectFolder(String prompt, String callback, File file, Object callbackObject) voidselectInput(String prompt, String callback, File file, Object callbackObject) voidselectOutput(String prompt, String callback, File file, Object callbackObject) voidsetAlwaysOnTop(boolean always) Dumb name, but inherited from Frame and no better ideas.voidsetCursor(int kind) voidvoidsetFrameRate(float fps) voidvoidsetLocation(int x, int y) voidsetResizable(boolean resizable) Set true if we want to resize things (default is not resizable)voidsetSize(int wide, int high) voidSet the window (and dock, or whatever necessary) title.voidsetVisible(boolean visible) Show or hide the window.voidvoidStart the animation threadbooleanStop the animation thread (set it null)
-
Constructor Details
-
PSurfaceNone
-
-
Method Details
-
displayDensity
public int displayDensity() -
displayDensity
public int displayDensity(int display) -
loadImage
-
selectInput
- Specified by:
selectInputin interfacePSurface
-
selectOutput
- Specified by:
selectOutputin interfacePSurface
-
selectFolder
- Specified by:
selectFolderin interfacePSurface
-
initOffscreen
- Specified by:
initOffscreenin interfacePSurface
-
initFrame
-
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. -
setTitle
Set the window (and dock, or whatever necessary) title. -
setIcon
-
setVisible
public void setVisible(boolean visible) Show or hide the window.- Specified by:
setVisiblein interfacePSurface
-
setResizable
public void setResizable(boolean resizable) Set true if we want to resize things (default is not resizable)- Specified by:
setResizablein interfacePSurface
-
placeWindow
public void placeWindow(int[] location, int[] editorLocation) - Specified by:
placeWindowin interfacePSurface
-
placePresent
public void placePresent(int stopColor) - Specified by:
placePresentin interfacePSurface
-
setAlwaysOnTop
public void setAlwaysOnTop(boolean always) Description copied from interface:PSurfaceDumb name, but inherited from Frame and no better ideas.- Specified by:
setAlwaysOnTopin interfacePSurface
-
setLocation
public void setLocation(int x, int y) - Specified by:
setLocationin interfacePSurface
-
setSize
public void setSize(int wide, int high) -
setCursor
public void setCursor(int kind) -
setCursor
-
showCursor
public void showCursor()- Specified by:
showCursorin interfacePSurface
-
hideCursor
public void hideCursor()- Specified by:
hideCursorin interfacePSurface
-
openLink
-
createThread
-
startThread
public void startThread()Description copied from interface:PSurfaceStart the animation thread- Specified by:
startThreadin interfacePSurface
-
stopThread
public boolean stopThread()Description copied from interface:PSurfaceStop the animation thread (set it null)- Specified by:
stopThreadin interfacePSurface- Returns:
- false if already stopped
-
isStopped
public boolean isStopped() -
pauseThread
public void pauseThread()Description copied from interface:PSurfaceOn the next trip through the animation thread, things should go sleepy-bye. Does not pause the thread immediately because that needs to happen on the animation thread itself, so fires on the next trip through draw().- Specified by:
pauseThreadin interfacePSurface
-
resumeThread
public void resumeThread()- Specified by:
resumeThreadin interfacePSurface
-
setFrameRate
public void setFrameRate(float fps) - Specified by:
setFrameRatein interfacePSurface
-