view
Class EditToolbar.FishIcon

java.lang.Object
  extended by view.EditToolbar.FishIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
EditToolbar

static class EditToolbar.FishIcon
extends java.lang.Object
implements javax.swing.Icon

Nested class used to drawFish the fish icon used for fish entries in the fish combo box. We construct a AFish and then hand it off to its display object to drawFish.


Field Summary
private  java.awt.Color _color
           
(package private)  IDisplayAdapter _da
           
private  AFish _fish
           
private  java.lang.String _fishClassName
           
private  int _height
           
(package private)  ISecurityAdapter _sa
           
private  int _width
           
 
Constructor Summary
EditToolbar.FishIcon(java.lang.String fishClassName, java.awt.Color c, int w, int h, IDisplayAdapter da, ISecurityAdapter sa)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component comp, java.awt.Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fish

private AFish _fish

_fishClassName

private java.lang.String _fishClassName

_color

private java.awt.Color _color

_width

private int _width

_height

private int _height

_da

IDisplayAdapter _da

_sa

ISecurityAdapter _sa
Constructor Detail

EditToolbar.FishIcon

public EditToolbar.FishIcon(java.lang.String fishClassName,
                            java.awt.Color c,
                            int w,
                            int h,
                            IDisplayAdapter da,
                            ISecurityAdapter sa)
                     throws java.lang.ClassNotFoundException,
                            java.lang.NoSuchMethodException,
                            java.lang.InstantiationException,
                            java.lang.IllegalAccessException,
                            java.lang.reflect.InvocationTargetException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Method Detail

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 comp,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon