com.vividsolutions.jump.workbench.model
Class Category

java.lang.Object
  extended by com.vividsolutions.jump.workbench.model.Category

public class Category
extends java.lang.Object

A folder containing Layers.


Constructor Summary
Category()
           
 
Method Summary
 void add(int index, Layerable layerable)
           
 void addPersistentLayerable(Layerable layerable)
          Called by Java2XML
 boolean contains(Layerable layerable)
           
 void fireCategoryChanged(CategoryEventType type)
           
 java.util.List getLayerables()
           
 LayerManager getLayerManager()
           
 java.lang.String getName()
           
 java.util.List getPersistentLayerables()
          Called by Java2XML
 int indexOf(Layerable layerable)
           
 boolean isEmpty()
           
 void remove(Layerable layerable)
           
 void setLayerManager(LayerManager layerManager)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category

public Category()
Method Detail

setName

public void setName(java.lang.String name)

setLayerManager

public void setLayerManager(LayerManager layerManager)

fireCategoryChanged

public void fireCategoryChanged(CategoryEventType type)

getLayerManager

public LayerManager getLayerManager()

getPersistentLayerables

public java.util.List getPersistentLayerables()
Called by Java2XML

Returns:
Layerables with enough information to be saved to a project file

getLayerables

public java.util.List getLayerables()

remove

public void remove(Layerable layerable)

indexOf

public int indexOf(Layerable layerable)
Returns:
-1 if the category does not contain the layerable

contains

public boolean contains(Layerable layerable)

add

public void add(int index,
                Layerable layerable)
Parameters:
index - 0 to add to the top

addPersistentLayerable

public void addPersistentLayerable(Layerable layerable)
Called by Java2XML


isEmpty

public boolean isEmpty()

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object