systeminformationmonitor.swing
Class RectangleIcon

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.Rectangle
              extended by systeminformationmonitor.swing.RectangleIcon
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable

public class RectangleIcon
extends java.awt.Rectangle

Class which creates rectangle icons used for drawing basic rectangles.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
RectangleIcon(int width, int height, java.awt.Color color)
          Creates the rectangle object.
 
Method Summary
 java.awt.Color getColor()
          Returns the icon color.
 void setColor(java.awt.Color color)
          Sets the icon color.
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

RectangleIcon

public RectangleIcon(int width,
                     int height,
                     java.awt.Color color)
Creates the rectangle object.

Parameters:
width - Width of the icon.
height - Height of the icon.
color - Color of the icon.
Method Detail

setColor

public void setColor(java.awt.Color color)
Sets the icon color.

Parameters:
color - Color to set the icon.

getColor

public java.awt.Color getColor()
Returns the icon color.

Returns:
Color of the icon.