public class ButtonIcon
extends java.lang.Object
Constructor and Description |
---|
ButtonIcon()
Constructs a ButtonIcon of standard size.
|
Modifier and Type | Method and 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.IOException
public static ButtonIcon createRadial()
public static void main(java.lang.String[] args) throws java.io.IOException
args
- ignoredjava.io.IOException
Copyright © 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.