org.kaboum.geom
Class KaboumGeometryPropertiesDescriptor

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

public class KaboumGeometryPropertiesDescriptor
extends java.lang.Object

This class define geoObject "computational" properties: - Do the objects from this class participate in topological computation - Do the other objects must lie into this object - Are the objects from this class visible - ...

Author:
Jérôme Gasperi aka jrom

Constructor Summary
KaboumGeometryPropertiesDescriptor(java.lang.String name)
          Default constructor
KaboumGeometryPropertiesDescriptor(java.lang.String name, boolean visibility, boolean topoComputation, boolean surrounding, boolean locking)
          Constructor
 
Method Summary
 void addItemToMenu(java.lang.String key, java.lang.String value)
          Add a new key/value menu to the contextual menu hash
 void clearMenu()
          Clear the contextual menu
 java.util.Hashtable getMenuHash()
          Get the menus hashtable
 java.lang.String getName()
          Get name
 boolean isComputed()
          Get Topological status
 boolean isLocked()
          Get locking status
 boolean isSurrounding()
          Get surrounding status
 boolean isVisible()
          Get visibility
 void setComputation(boolean b)
           
 void setLocking(boolean b)
           
 void setSurrounding(boolean b)
           
 void setVisibility(boolean b)
           
 void write()
          Really usefull for debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KaboumGeometryPropertiesDescriptor

public KaboumGeometryPropertiesDescriptor(java.lang.String name)
Default constructor


KaboumGeometryPropertiesDescriptor

public KaboumGeometryPropertiesDescriptor(java.lang.String name,
                                          boolean visibility,
                                          boolean topoComputation,
                                          boolean surrounding,
                                          boolean locking)
Constructor

Parameters:
name - Name of this class
visibility - Set the visibility (paint) of the geometry class
topoComputation - True: object is used in topological computation
surrounding - True: with topo computation, other objects must be drawn inside this object
locking - True: objects from this geometry cannot be selected
Method Detail

getName

public java.lang.String getName()
Get name


isVisible

public boolean isVisible()
Get visibility


isComputed

public boolean isComputed()
Get Topological status


isSurrounding

public boolean isSurrounding()
Get surrounding status


isLocked

public boolean isLocked()
Get locking status


setLocking

public void setLocking(boolean b)

setSurrounding

public void setSurrounding(boolean b)

setVisibility

public void setVisibility(boolean b)

setComputation

public void setComputation(boolean b)

getMenuHash

public java.util.Hashtable getMenuHash()
Get the menus hashtable


addItemToMenu

public void addItemToMenu(java.lang.String key,
                          java.lang.String value)
Add a new key/value menu to the contextual menu hash

Parameters:
key - Menu key
value - Menu value

clearMenu

public void clearMenu()
Clear the contextual menu


write

public void write()
Really usefull for debugging



Copyright © 2005 Kaboum team. All Rights Reserved.