net.aerith.misao.gui
Class PlotMarkIcon

java.lang.Object
  |
  +--net.aerith.misao.gui.PlotMarkIcon

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

The PlotMarkIcon represents an icon to show the mark to plot a star of the specified property.


Field Summary
protected  int height
          The height.
protected  PlotProperty property
          The property.
protected  int width
          The width.
 
Constructor Summary
PlotMarkIcon(PlotProperty property)
          Constructs a PlotMarkIcon.
 
Method Summary
 int getIconHeight()
          Gets the height.
 int getIconWidth()
          Gets the width.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draws the icon.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

property

protected PlotProperty property
The property.

width

protected int width
The width.

height

protected int height
The height.
Constructor Detail

PlotMarkIcon

public PlotMarkIcon(PlotProperty property)
Constructs a PlotMarkIcon.
Parameters:
property - the property.
Method Detail

getIconWidth

public int getIconWidth()
Gets the width.
Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
the width.

getIconHeight

public int getIconHeight()
Gets the height.
Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
the height.

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Draws the icon.
Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - the component.
g - the Graphics to draw.
x - the x location.
y - the y location.