ConForM.CoopnTools.CoKer.AspectMgr
Class ContainerAspect

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.AspectMgr.Aspect
        |
        +--ConForM.CoopnTools.CoKer.AspectMgr.ContainerAspect
All Implemented Interfaces:
java.lang.Cloneable

public class ContainerAspect
extends Aspect

Container Aspect. This class implements concrete aspects, for containers of nodes in the graphical visual. Container aspects are simple aspects with a size (mandatory), and with a flag indicating if the internal part is shown or not.


Constructor Summary
ContainerAspect(java.awt.Point location, java.lang.String info, java.awt.Point labelLocation, java.awt.Point infoLocation, boolean sssss, boolean labelShown, boolean infoShown, java.awt.Color color, java.awt.Rectangle size, boolean internalShown)
          Simple constructor.
 
Method Summary
 java.lang.Object clone()
          Cloning method.
 boolean equals(java.lang.Object obj)
          Equality method.
 java.awt.Rectangle getSize()
          Get the size.
 boolean isInternalShown()
          Look if the internal part of the associated element is shown.
 void setAspect(Aspect aspect)
          Copy an aspect.
 void setInternalShown(boolean shown)
          Specifiy if the internal part of the associated element is shown.
 void setSize(java.awt.Rectangle size)
          Set the size.
 java.lang.String toString(CoopnEnv env, int indent)
          String conversion method.
 
Methods inherited from class ConForM.CoopnTools.CoKer.AspectMgr.Aspect
getColor, getInfo, getInfoLocation, getLabelLocation, getLocation, hashCode, internalClone, internalEquals, internalToString, isInfoShown, isLabelShown, isShown, setColor, setInfo, setInfoLocation, setInfoShown, setLabelLocation, setLabelShown, setLocation, setShown, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerAspect

public ContainerAspect(java.awt.Point location,
                       java.lang.String info,
                       java.awt.Point labelLocation,
                       java.awt.Point infoLocation,
                       boolean sssss,
                       boolean labelShown,
                       boolean infoShown,
                       java.awt.Color color,
                       java.awt.Rectangle size,
                       boolean internalShown)
Simple constructor.
Method Detail

getSize

public java.awt.Rectangle getSize()
Get the size.
Returns:
The size as a Rectangle. The origin of the rectangle is a kind of offset from the location of the container, while the size of the rectangle is the size itself of the container.

setSize

public void setSize(java.awt.Rectangle size)
Set the size.
Parameters:
size - the size as a Dimension. Cannot be null.

isInternalShown

public boolean isInternalShown()
Look if the internal part of the associated element is shown. If it is not shown, only the external part is shown, including the label (provided that this one is not explicitely stated as not shown).
Returns:
true iff the element is shown.

setInternalShown

public void setInternalShown(boolean shown)
Specifiy if the internal part of the associated element is shown.
Parameters:
shown - true iff the element must be shown

toString

public java.lang.String toString(CoopnEnv env,
                                 int indent)
String conversion method. This routine converts an element into a string representing it.
Overrides:
toString in class Aspect
Parameters:
env - the environment deciding the form of the display
indent - the identation factor
Returns:
a String image of the element.

equals

public boolean equals(java.lang.Object obj)
Equality method. Must be defined in the inherited classes.
Overrides:
equals in class Aspect
Parameters:
obj - the object to compare
Returns:
true iff this object and the parameter are equals.

setAspect

public void setAspect(Aspect aspect)
Copy an aspect.
Overrides:
setAspect in class Aspect
Parameters:
aspect - the aspect to copy.

clone

public java.lang.Object clone()
Cloning method. Must be defined in the inherited classes.
Overrides:
clone in class Aspect
Returns:
a clone object.