|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.AspectMgr.Aspect
Aspect. This abstract class defines general aspects in CoopnTools. An aspect is defined by a location (mandatory), by an information text (optionnal), by locations for the label and the information text, and by three flags deciding if the element, if the label, and if the information text are shown. All distances measures are expressed in (inches/81.92)
Constructor Summary | |
Aspect(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)
Simple constructor. |
Method Summary | |
abstract java.lang.Object |
clone()
Cloning method. |
abstract boolean |
equals(java.lang.Object obj)
Equality method. |
java.awt.Color |
getColor()
Get the color. |
java.lang.String |
getInfo()
Get the information field. |
java.awt.Point |
getInfoLocation()
Get the location of the information field. |
java.awt.Point |
getLabelLocation()
Get the location of the label. |
java.awt.Point |
getLocation()
Get the location. |
int |
hashCode()
Hashcode method. |
protected Aspect |
internalClone()
|
protected boolean |
internalEquals(java.lang.Object obj)
|
protected java.lang.String |
internalToString(CoopnEnv env,
int indent)
|
boolean |
isInfoShown()
Look if the information field is shown. |
boolean |
isLabelShown()
Look if the label is shown. |
boolean |
isShown()
Look if the associated element is shown. |
void |
setAspect(Aspect aspect)
Copy an aspect. |
void |
setColor(java.awt.Color color)
Set the color. |
void |
setInfo(java.lang.String info)
Set the information field. |
void |
setInfoLocation(java.awt.Point infoLocation)
Set the location of the information field. |
void |
setInfoShown(boolean shown)
Specifiy is the information field is shown. |
void |
setLabelLocation(java.awt.Point labelLocation)
Set the location of the label. |
void |
setLabelShown(boolean shown)
Specifiy is the label is shown. |
void |
setLocation(java.awt.Point location)
Set the location. |
void |
setShown(boolean shown)
Specifiy if the associated element is shown. |
java.lang.String |
toString()
String conversion method. |
java.lang.String |
toString(CoopnEnv env)
String conversion method. |
abstract java.lang.String |
toString(CoopnEnv env,
int indent)
String conversion method. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Aspect(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)
Method Detail |
public java.awt.Point getLocation()
public void setLocation(java.awt.Point location)
location
- the location as a Point; cannot be nullpublic java.lang.String getInfo()
public void setInfo(java.lang.String info)
info
- the information field as a String; if this parameter is
null, an empty string is used as information fieldpublic java.awt.Point getLabelLocation()
public void setLabelLocation(java.awt.Point labelLocation)
labelLocation
- the location as a Pointpublic java.awt.Point getInfoLocation()
public void setInfoLocation(java.awt.Point infoLocation)
infoLocation
- the location as a Pointpublic boolean isShown()
public void setShown(boolean shown)
shown
- true iff the element must be shownpublic boolean isLabelShown()
public void setLabelShown(boolean shown)
shown
- true iff the label must be shownpublic boolean isInfoShown()
public void setInfoShown(boolean shown)
shown
- true iff the information field must be shownpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the colorpublic abstract java.lang.String toString(CoopnEnv env, int indent)
env
- the environment deciding the form of the displayindent
- the identation factorprotected java.lang.String internalToString(CoopnEnv env, int indent)
public java.lang.String toString(CoopnEnv env)
env
- the environment deciding the form of the displaypublic java.lang.String toString()
toString
in class java.lang.Object
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compareprotected boolean internalEquals(java.lang.Object obj)
public int hashCode()
hashCode
in class java.lang.Object
public void setAspect(Aspect aspect)
aspect
- the aspect to copy.public abstract java.lang.Object clone()
clone
in class java.lang.Object
protected Aspect internalClone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |