org.argouml.uml.cognitive.critics
Class ClAttributeCompartment

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

public class ClAttributeCompartment
extends Object
implements Clarifier

Class that represents the clarifier (red wavy line) for a attribute compartment.


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

LOG

private static final Logger LOG

theInstance

private static ClAttributeCompartment 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

ClAttributeCompartment

public ClAttributeCompartment()
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 ClAttributeCompartment getTheInstance()
Returns:
Returns the theInstance.


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