Nodenet Problem Set Javadocs

nodenet
Class NodeNetIcon

java.lang.Object
  extended bynodenet.NodeNetIcon
All Implemented Interfaces:
javax.swing.Icon

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

An icon to draw nodes reflecting their selection status. This was formerly an inner class of ControlPanel.

Version:
$Id: NodeNetIcon.java,v 1.3 2004/01/14 21:43:17 gus Exp $
Author:
Todd C. Parnell, tparnell@ai.mit.edu, Patrick G. Heck, gus.heck@olin.edu

Constructor Summary
NodeNetIcon()
          Creates a new instance of NodeNetIcon
NodeNetIcon(java.awt.Color c, boolean s)
          Creates a new instance of NodeNetIcon with the specified color and state.
 
Method Summary
 java.awt.Color getColor()
          Getter for property color.
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setColor(java.awt.Color color)
          Setter for property color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeNetIcon

public NodeNetIcon()
Creates a new instance of NodeNetIcon


NodeNetIcon

public NodeNetIcon(java.awt.Color c,
                   boolean s)
Creates a new instance of NodeNetIcon with the specified color and state.

Method Detail

paintIcon

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

getIconWidth

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

getIconHeight

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

getColor

public java.awt.Color getColor()
Getter for property color.

Returns:
Value of property color.

setColor

public void setColor(java.awt.Color color)
Setter for property color.

Parameters:
color - New value of property color.

Nodenet Problem Set Javadocs