org.annotation.gui
Class GraphIcon

java.lang.Object
  extended byorg.annotation.gui.GraphIcon
All Implemented Interfaces:
javax.swing.Icon

public class GraphIcon
extends java.lang.Object
implements javax.swing.Icon


Field Summary
static java.awt.Color bgcolor
           
static java.awt.Color fgcolor
           
 
Constructor Summary
GraphIcon(int w, int h)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setPercent(double p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fgcolor

public static final java.awt.Color fgcolor

bgcolor

public static final java.awt.Color bgcolor
Constructor Detail

GraphIcon

public GraphIcon(int w,
                 int h)
Method Detail

setPercent

public void setPercent(double p)

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.