Package uk.ac.starlink.topcat.doc
Class ButtonIcon
java.lang.Object
uk.ac.starlink.topcat.doc.ButtonIcon
Generates some icons for the TOPCAT desktop.
Currently not used at TOPCAT run or build time.
- Since:
- 28 Aug 2007
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a graphics context for drawing on this image.static ButtonIcon
Icon for radial coordinate display.static void
Main method.void
Writes the image as currently painted to a PNG file with a given name.
-
Constructor Details
-
ButtonIcon
public ButtonIcon()Constructs a ButtonIcon of standard size.
-
-
Method Details
-
createGraphics
Returns a graphics context for drawing on this image.- Returns:
- new graphics context suitable for drawing
-
writePng
Writes the image as currently painted to a PNG file with a given name.- Parameters:
fname
- filename- Throws:
IOException
-
createRadial
Icon for radial coordinate display.- Returns:
- radial button icon
-
main
Main method. Writes images to the current directory.- Parameters:
args
- ignored- Throws:
IOException
-