org.kaboum.geom
Class KaboumGeometryGlobalDescriptor

java.lang.Object
  extended by org.kaboum.geom.KaboumGeometryGlobalDescriptor

public class KaboumGeometryGlobalDescriptor
extends java.lang.Object

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

Author:
Jérôme Gasperi aka jrom

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

id

public int id
Unique identifier


geometry

public KaboumGeometry geometry
Geometry


dd

public KaboumGeometryDisplayDescriptor dd
Display descriptor


pd

public KaboumGeometryPropertiesDescriptor pd
Properties descriptor


color

public java.awt.Color color
Overload the color defined by the display descriptor


isTranslucent

public boolean isTranslucent
Overload isFilled() method from properties descriptor

Constructor Detail

KaboumGeometryGlobalDescriptor

public KaboumGeometryGlobalDescriptor(int id,
                                      KaboumGeometry geometry,
                                      KaboumGeometryDisplayDescriptor dd,
                                      KaboumGeometryPropertiesDescriptor pd,
                                      java.awt.Color color)
Default Constructor

Parameters:
id - unique identifier
geometry - geometry
dd - diplay descriptor
pd - properties descriptor
color - own color for extra representation
Method Detail

isHilite

public boolean isHilite()
Get the hilite status


setHilite

public void setHilite(boolean b)
Set the hilite status


isSelected

public boolean isSelected()
Set the selected status


setSelected

public void setSelected(boolean b)
Switch the selected status. This also switch the hilite status...


isModified

public boolean isModified()
Set the modified status


setModified

public void setModified(boolean b)
Switch the modified status


isEdited

public boolean isEdited()
Set the edited status A list is set as "edited" until it's validated by the KaboumPolygonOpMode. Default is set to true.


setEdited

public void setEdited(boolean b)
Switch the edited status


getCurrentColor

public java.awt.Color getCurrentColor()
Get current color (i.e. active color which is one of normal, hilite or modified color)


setTitleMenu

public void setTitleMenu(java.lang.String str)
Set the menu title text

Parameters:
str - Title menu text

getTitleMenuString

public java.lang.String getTitleMenuString()
Get the menu title text


setTooltip

public void setTooltip(java.lang.String str)
Set the tooltip text

Parameters:
str - Tooltip text

getTooltip

public java.lang.String getTooltip()
Get the tooltip text



Copyright © 2005 Kaboum team. All Rights Reserved.