public class ButtonIcon
extends java.lang.Object
| Constructor | Description |
|---|---|
ButtonIcon() |
Constructs a ButtonIcon of standard size.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.awt.Graphics2D |
createGraphics() |
Returns a graphics context for drawing on this image.
|
static ButtonIcon |
createRadial() |
Icon for radial coordinate display.
|
static void |
main(java.lang.String[] args) |
Main method.
|
void |
writePng(java.lang.String fname) |
Writes the image as currently painted to a PNG file with a given name.
|
public java.awt.Graphics2D createGraphics()
public void writePng(java.lang.String fname)
throws java.io.IOException
fname - filenamejava.io.IOExceptionpublic static ButtonIcon createRadial()
public static void main(java.lang.String[] args)
throws java.io.IOException
args - ignoredjava.io.IOExceptionCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.