org.argouml.uml.cognitive.critics
Class ClClassName
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ClClassName
public ClClassName()
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 pointy
- 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.