ConForM.CoopnTools.CoKer.AspectMgr
Class RotatableNodeAspect

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

public class RotatableNodeAspect
extends NodeAspect

Rotatable Node Aspect. This class implements concrete aspects, for nodes in the graphical visual. Rotatable node aspects are simple aspects with an angle.


Constructor Summary
RotatableNodeAspect(java.awt.Point location, java.lang.String info, java.awt.Point labelLocation, java.awt.Point infoLocation, boolean shown, boolean labelShown, boolean infoShown, java.awt.Color color, int angle)
          Simple constructor.
 
Method Summary
 java.lang.Object clone()
          Cloning method.
 boolean equals(java.lang.Object obj)
          Equality method.
 int getAngle()
          Get the angle.
 void setAngle(int angle)
          Set the angle.
 void setAspect(Aspect aspect)
          Copy an aspect.
 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

RotatableNodeAspect

public RotatableNodeAspect(java.awt.Point location,
                           java.lang.String info,
                           java.awt.Point labelLocation,
                           java.awt.Point infoLocation,
                           boolean shown,
                           boolean labelShown,
                           boolean infoShown,
                           java.awt.Color color,
                           int angle)
Simple constructor.
Method Detail

getAngle

public int getAngle()
Get the angle.
Returns:
The angle, ans an integer between 0 and 360. The angle is express in degree, with 0 degree representing an horizontal left to right line, and increasing following the trigonometric sense.

setAngle

public void setAngle(int angle)
Set the angle.
Parameters:
angle - the angle as a integer; this parameter is evaluated module 360.

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 NodeAspect
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 NodeAspect
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 NodeAspect
Parameters:
aspect - the aspect to copy.

clone

public java.lang.Object clone()
Cloning method.
Overrides:
clone in class NodeAspect
Returns:
a clone object.