org.argouml.uml.cognitive.critics
Class ClOperationCompartment

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

public class ClOperationCompartment
extends Object
implements Clarifier

The clarifier (red wavy line) for the operation compartiment.


Field Summary
private  org.tigris.gef.presentation.Fig fig
           
private static ClOperationCompartment theInstance
           
private static int WAVE_HEIGHT
           
private static int WAVE_LENGTH
           
 
Constructor Summary
ClOperationCompartment()
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
static ClOperationCompartment 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 ClOperationCompartment 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

ClOperationCompartment

public ClOperationCompartment()
Method Detail

getTheInstance

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

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)


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