|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.AspectMgr.Aspect | +--ConForM.CoopnTools.CoKer.AspectMgr.ArcAspect
Arc Aspect. This class implements concrete aspects, for arc in the graphical visual. Arc aspects are simple aspects with an optionnal set of intermediary points, and with a flag indicating if the arc is smooth.
Field Summary | |
static int |
ANGULAR
|
static int |
CONCAVE
|
static int |
CONVEX
|
static int |
SMOOTH
|
Constructor Summary | |
ArcAspect(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,
java.awt.Point[] intermediaryPoints,
int type)
Simple constructor. |
Method Summary | |
void |
addIntermediaryPoint(java.awt.Point point,
int index)
Add an intermediary points. |
java.lang.Object |
clone()
Cloning method. |
boolean |
equals(java.lang.Object obj)
Equality method. |
java.awt.Point[] |
getIntermediaryPoints()
Get the intermediary points. |
int |
getType()
Get the type. |
boolean |
isControlPoint(int index)
Get the control-point status of a point. |
void |
moveIntermediaryPoint(int index,
int deltax,
int deltay)
Moves an intermediary points. |
void |
removeIntermediaryPoint(int index)
Removes an intermediary points. |
void |
setAspect(Aspect aspect)
Copy an aspect. |
void |
setIntermediaryPoints(java.awt.Point[] intermediaryPoints)
Set the intermediary points. |
void |
setType(int type)
Specify the type. |
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 |
Field Detail |
public static final int ANGULAR
public static final int SMOOTH
public static final int CONVEX
public static final int CONCAVE
Constructor Detail |
public ArcAspect(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, java.awt.Point[] intermediaryPoints, int type)
Method Detail |
public java.awt.Point[] getIntermediaryPoints()
public void setIntermediaryPoints(java.awt.Point[] intermediaryPoints)
intermediaryPoints
- The intermediary points, as an array of points; a null
value means no intermediary points.public void addIntermediaryPoint(java.awt.Point point, int index)
point
- The point to add.index
- The index of the point to add.public void removeIntermediaryPoint(int index)
index
- The index of the point to remove.public void moveIntermediaryPoint(int index, int deltax, int deltay)
index
- The index of the point to remove.public boolean isControlPoint(int index)
index
- the index of the intermediary point ot checkpublic int getType()
public void setType(int type)
type
- the typepublic java.lang.String toString(CoopnEnv env, int indent)
toString
in class Aspect
env
- the environment deciding the form of the displayindent
- the identation factorpublic boolean equals(java.lang.Object obj)
equals
in class Aspect
obj
- the object to comparepublic void setAspect(Aspect aspect)
setAspect
in class Aspect
aspect
- the aspect to copy.public java.lang.Object clone()
clone
in class Aspect
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |