org.argouml.uml.cognitive.critics
Class ClClassName

java.lang.Object
  extended byorg.argouml.uml.cognitive.critics.ClClassName
All Implemented Interfaces:
Clarifier, Icon

public class ClClassName
extends Object
implements Clarifier

The clarifier (the red wavy line) for the classname. It actually works for any modelelement with a name.


Field Summary
private  org.tigris.gef.presentation.Fig fig
           
private static ClClassName theInstance
           
private static int WAVE_HEIGHT
           
private static int WAVE_LENGTH
           
 
Constructor Summary
ClClassName()
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
static ClClassName getTheInstance()
           
 boolean hit(int x, int y)
          Reply true if the given point is inside the given Fig.
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setFig(org.tigris.gef.presentation.Fig f)
           
 void setToDoItem(ToDoItem i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theInstance

private static ClClassName theInstance

WAVE_LENGTH

private static final int WAVE_LENGTH
See Also:
Constant Field Values

WAVE_HEIGHT

private static final int WAVE_HEIGHT
See Also:
Constant Field Values

fig

private org.tigris.gef.presentation.Fig fig
Constructor Detail

ClClassName

public ClClassName()
Method Detail

setFig

public void setFig(org.tigris.gef.presentation.Fig f)
Specified by:
setFig in interface Clarifier
Parameters:
f - the Fig on which the clarifier is to be painted
See Also:
Clarifier.setFig(org.tigris.gef.presentation.Fig)

setToDoItem

public void setToDoItem(ToDoItem i)
Specified by:
setToDoItem in interface Clarifier
Parameters:
i - the todo item that is visualised by this clarifier
See Also:
Clarifier.setToDoItem(org.argouml.cognitive.ToDoItem)

paintIcon

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

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon
See Also:
Icon.getIconWidth()

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon
See Also:
Icon.getIconHeight()

hit

public boolean hit(int x,
                   int y)
Description copied from interface: Clarifier
Reply true if the given point is inside the given Fig.

Specified by:
hit in interface Clarifier
Parameters:
x - the x of the given point
y - the y of the given point
Returns:
true if hit
See Also:
Clarifier.hit(int, int)

getTheInstance

public static ClClassName getTheInstance()
Returns:
Returns the theInstance.


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook