|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kaboum.geom.KaboumGeometryGlobalDescriptor
public class KaboumGeometryGlobalDescriptor
This class describe a geometrical object within the applet, i.e. a display and a properties descriptor. Each geometrical object is defined by a unique identifiant
Field Summary | |
---|---|
java.awt.Color |
color
Overload the color defined by the display descriptor |
KaboumGeometryDisplayDescriptor |
dd
Display descriptor |
KaboumGeometry |
geometry
Geometry |
int |
id
Unique identifier |
boolean |
isTranslucent
Overload isFilled() method from properties descriptor |
KaboumGeometryPropertiesDescriptor |
pd
Properties descriptor |
Constructor Summary | |
---|---|
KaboumGeometryGlobalDescriptor(int id,
KaboumGeometry geometry,
KaboumGeometryDisplayDescriptor dd,
KaboumGeometryPropertiesDescriptor pd,
java.awt.Color color)
Default Constructor |
Method Summary | |
---|---|
java.awt.Color |
getCurrentColor()
Get current color (i.e. active color which is one of normal, hilite or modified color) |
java.lang.String |
getTitleMenuString()
Get the menu title text |
java.lang.String |
getTooltip()
Get the tooltip text |
boolean |
isEdited()
Set the edited status A list is set as "edited" until it's validated by the KaboumPolygonOpMode. |
boolean |
isHilite()
Get the hilite status |
boolean |
isModified()
Set the modified status |
boolean |
isSelected()
Set the selected status |
void |
setEdited(boolean b)
Switch the edited status |
void |
setHilite(boolean b)
Set the hilite status |
void |
setModified(boolean b)
Switch the modified status |
void |
setSelected(boolean b)
Switch the selected status. |
void |
setTitleMenu(java.lang.String str)
Set the menu title text |
void |
setTooltip(java.lang.String str)
Set the tooltip text |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int id
public KaboumGeometry geometry
public KaboumGeometryDisplayDescriptor dd
public KaboumGeometryPropertiesDescriptor pd
public java.awt.Color color
public boolean isTranslucent
Constructor Detail |
---|
public KaboumGeometryGlobalDescriptor(int id, KaboumGeometry geometry, KaboumGeometryDisplayDescriptor dd, KaboumGeometryPropertiesDescriptor pd, java.awt.Color color)
id
- unique identifiergeometry
- geometrydd
- diplay descriptorpd
- properties descriptorcolor
- own color for extra representationMethod Detail |
---|
public boolean isHilite()
public void setHilite(boolean b)
public boolean isSelected()
public void setSelected(boolean b)
public boolean isModified()
public void setModified(boolean b)
public boolean isEdited()
public void setEdited(boolean b)
public java.awt.Color getCurrentColor()
public void setTitleMenu(java.lang.String str)
str
- Title menu textpublic java.lang.String getTitleMenuString()
public void setTooltip(java.lang.String str)
str
- Tooltip textpublic java.lang.String getTooltip()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |