uk.ac.starlink.ttools.plot
Class EmptyIcon

java.lang.Object
  extended by uk.ac.starlink.ttools.plot.EmptyIcon
All Implemented Interfaces:
Icon

public class EmptyIcon
extends Object
implements Icon

Icon implementation which doesn't draw anything.

Since:
26 Feb 2007
Author:
Mark Taylor

Constructor Summary
EmptyIcon(int width, int height)
          Constructor.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyIcon

public EmptyIcon(int width,
                 int height)
Constructor.

Parameters:
width - icon width
height - icon height
Method Detail

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon


Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.