- getAlpha(int) - Static method in class DrawingPanel
-
Returns the alpha (opacity) component of the given RGB pixel from 0-255.
- getBlue(int) - Static method in class DrawingPanel
-
Returns the blue component of the given RGB pixel from 0-255.
- getCounts() - Method in class DrawingPanel
-
Returns a map of counts of occurrences of calls of various drawing methods.
- getDebuggingGraphics() - Method in class DrawingPanel
-
A variation of getGraphics that returns an object that records
a count for various drawing methods.
- getGraphics() - Method in class DrawingPanel
-
Obtain the Graphics object to draw on the panel.
- getGreen(int) - Static method in class DrawingPanel
-
Returns the green component of the given RGB pixel from 0-255.
- getHeight() - Method in class DrawingPanel
-
Returns the drawing panel's height in pixels.
- getPixel(int, int) - Method in class DrawingPanel
-
Returns the color of the pixel at the given x/y coordinate as a Color object.
- getPixelRGB(int, int) - Method in class DrawingPanel
-
Returns the color of the pixel at the given x/y coordinate as an RGB integer.
- getPixels() - Method in class DrawingPanel
-
Returns the colors of all pixels in this DrawingPanel as a 2-D array
of Color objects.
- getPixelsRGB() - Method in class DrawingPanel
-
Returns the colors of all pixels in this DrawingPanel as a 2-D array
of RGB integers.
- getRed(int) - Static method in class DrawingPanel
-
Returns the red component of the given RGB pixel from 0-255.
- getSize() - Method in class DrawingPanel
-
Returns the drawing panel's pixel size (width, height) as a Dimension object.
- getWidth() - Method in class DrawingPanel
-
Returns the drawing panel's width in pixels.
- getZoom() - Method in class DrawingPanel
-
Returns the drawing panel's current zoom factor.
- save(String) - Method in class DrawingPanel
-
Takes the current contents of the drawing panel and writes them to
the given file.
- SAVE_PROPERTY - Static variable in class DrawingPanel
-
An internal constant for setting system properties; clients should not use this.
- saveAnimated(String) - Method in class DrawingPanel
-
Takes the current contents of the drawing panel and writes them to
the given file.
- setAlwaysOnTop(boolean) - Method in class DrawingPanel
-
Sets whether the panel will always cover other windows (default false).
- setAntiAlias(boolean) - Method in class DrawingPanel
-
Sets whether the panel should use anti-aliased / smoothed graphics (default true).
- setBackground(Color) - Method in class DrawingPanel
-
Sets the background color of the drawing panel to be the given color.
- setBackground(int) - Method in class DrawingPanel
-
Sets the background color of the drawing panel to be the color
represented by the given RGB integer.
- setGridLines(boolean) - Method in class DrawingPanel
-
Enables or disables the drawing of grid lines on top of the image to help
with debugging sizes and coordinates.
- setGridLines(boolean, int) - Method in class DrawingPanel
-
Enables or disables the drawing of grid lines on top of the image to help
with debugging sizes and coordinates.
- setHeight(int) - Method in class DrawingPanel
-
Sets the drawing panel's height in pixels to the given value.
- setPixel(int, int, Color) - Method in class DrawingPanel
-
Sets the color of the pixel at the given x/y coordinate to be the given color.
- setPixel(int, int, int) - Method in class DrawingPanel
-
Sets the color of the pixel at the given x/y coordinate to be the color
represented by the given RGB integer.
- setPixelRGB(int, int, int) - Method in class DrawingPanel
-
Sets the color of the pixel at the given x/y coordinate to be the color
represented by the given RGB integer.
- setPixels(Color[][]) - Method in class DrawingPanel
-
Sets the colors of all pixels in this DrawingPanel to the colors
in the given 2-D array of Color objects.
- setPixels(int[][]) - Method in class DrawingPanel
-
Sets the colors of all pixels in this DrawingPanel to the colors
represented by the given 2-D array of RGB integers.
- setPixelsRGB(int[][]) - Method in class DrawingPanel
-
Sets the colors of all pixels in this DrawingPanel to the colors
represented by the given 2-D array of RGB integers.
- setSize(int, int) - Method in class DrawingPanel
-
Sets the drawing panel's pixel size (width, height) to the given values.
- setVisible(boolean) - Method in class DrawingPanel
-
Show or hide the drawing panel on the screen.
- setWidth(int) - Method in class DrawingPanel
-
Sets the drawing panel's width in pixels to the given value.
- sleep(int) - Method in class DrawingPanel
-
Causes the program to pause for the given amount of time in milliseconds.