Package processing.awt
Class PSurfaceAWT
java.lang.Object
processing.core.PSurfaceNone
processing.awt.PSurfaceAWT
- All Implemented Interfaces:
PSurface
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionGet the native window object associated with this drawing surface.void
void
void
initOffscreen
(PApplet sketch) boolean
void
placePresent
(int stopColor) void
placeWindow
(int[] location, int[] editorLocation) void
selectFolder
(String prompt, String callback, File file, Object callbackObject) void
selectInput
(String prompt, String callback, File file, Object callbackObject) void
selectOutput
(String prompt, String callback, File file, Object callbackObject) void
setAlwaysOnTop
(boolean always) Dumb name, but inherited from Frame and no better ideas.void
setCursor
(int kind) void
void
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
Set the window (and dock, or whatever necessary) title.void
setVisible
(boolean visible) Show or hide the window.void
Methods inherited from class processing.core.PSurfaceNone
displayDensity, displayDensity, isStopped, loadImage, pauseThread, resumeThread, setFrameRate, startThread, stopThread
-
Constructor Details
-
PSurfaceAWT
-
-
Method Details
-
selectInput
- Specified by:
selectInput
in interfacePSurface
- Overrides:
selectInput
in classPSurfaceNone
-
selectOutput
- Specified by:
selectOutput
in interfacePSurface
- Overrides:
selectOutput
in classPSurfaceNone
-
selectFolder
- Specified by:
selectFolder
in interfacePSurface
- Overrides:
selectFolder
in classPSurfaceNone
-
initOffscreen
- Specified by:
initOffscreen
in interfacePSurface
- Overrides:
initOffscreen
in classPSurfaceNone
-
initFrame
- Specified by:
initFrame
in interfacePSurface
- Overrides:
initFrame
in classPSurfaceNone
-
getNative
Description copied from interface:PSurface
Get 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:
getNative
in interfacePSurface
- Overrides:
getNative
in classPSurfaceNone
-
setTitle
Set the window (and dock, or whatever necessary) title.- Specified by:
setTitle
in interfacePSurface
- Overrides:
setTitle
in classPSurfaceNone
-
setResizable
public void setResizable(boolean resizable) Set true if we want to resize things (default is not resizable)- Specified by:
setResizable
in interfacePSurface
- Overrides:
setResizable
in classPSurfaceNone
-
setIcon
- Specified by:
setIcon
in interfacePSurface
- Overrides:
setIcon
in classPSurfaceNone
-
setAlwaysOnTop
public void setAlwaysOnTop(boolean always) Description copied from interface:PSurface
Dumb name, but inherited from Frame and no better ideas.- Specified by:
setAlwaysOnTop
in interfacePSurface
- Overrides:
setAlwaysOnTop
in classPSurfaceNone
-
setLocation
public void setLocation(int x, int y) - Specified by:
setLocation
in interfacePSurface
- Overrides:
setLocation
in classPSurfaceNone
-
setVisible
public void setVisible(boolean visible) Description copied from class:PSurfaceNone
Show or hide the window.- Specified by:
setVisible
in interfacePSurface
- Overrides:
setVisible
in classPSurfaceNone
-
placePresent
public void placePresent(int stopColor) - Specified by:
placePresent
in interfacePSurface
- Overrides:
placePresent
in classPSurfaceNone
-
placeWindow
public void placeWindow(int[] location, int[] editorLocation) - Specified by:
placeWindow
in interfacePSurface
- Overrides:
placeWindow
in classPSurfaceNone
-
setSize
public void setSize(int wide, int high) - Specified by:
setSize
in interfacePSurface
- Overrides:
setSize
in classPSurfaceNone
-
setCursor
public void setCursor(int kind) - Specified by:
setCursor
in interfacePSurface
- Overrides:
setCursor
in classPSurfaceNone
-
setCursor
- Specified by:
setCursor
in interfacePSurface
- Overrides:
setCursor
in classPSurfaceNone
-
showCursor
public void showCursor()- Specified by:
showCursor
in interfacePSurface
- Overrides:
showCursor
in classPSurfaceNone
-
hideCursor
public void hideCursor()- Specified by:
hideCursor
in interfacePSurface
- Overrides:
hideCursor
in classPSurfaceNone
-
openLink
- Specified by:
openLink
in interfacePSurface
- Overrides:
openLink
in classPSurfaceNone
- Parameters:
url
- the link to open- Returns:
- false if unable to find a viable way to open
-
createThread
- Overrides:
createThread
in classPSurfaceNone
-