Package uk.ac.starlink.ttools.plottask
Class SwingPainter
- java.lang.Object
-
- uk.ac.starlink.ttools.plottask.SwingPainter
-
- All Implemented Interfaces:
Painter
public class SwingPainter extends java.lang.Object implements Painter
Painter subclass which can paint to the screen. It has apostComponent(java.awt.Component)method additional to the Painter interface which allows a component to be submitted directly, if one is available.- Since:
- 20 Jan 2012
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description SwingPainter(java.lang.String winTitle)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaintPicture(Picture picture)Export the graphics contained in a Picture.voidpostComponent(java.awt.Component comp)Displays a screen component directly.
-
-
-
Method Detail
-
paintPicture
public void paintPicture(Picture picture)
Description copied from interface:PainterExport the graphics contained in a Picture.- Specified by:
paintPicturein interfacePainter- Parameters:
picture- graphics to export
-
postComponent
public void postComponent(java.awt.Component comp)
Displays a screen component directly.- Parameters:
comp- screen component
-
-