Class Category
- java.lang.Object
-
- com.vividsolutions.jump.workbench.model.Category
-
public class Category extends Object
A folder containing Layers.
-
-
Constructor Summary
Constructors Constructor Description Category()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Layerable layerable)
void
addPersistentLayerable(Layerable layerable)
Called by Java2XMLboolean
contains(Layerable layerable)
List<Layerable>
getLayerables()
LayerManager
getLayerManager()
String
getName()
List<Layerable>
getPersistentLayerables()
Called by Java2XMLTask
getTask()
int
indexOf(Layerable layerable)
boolean
isEmpty()
Iterator<Layerable>
iterator()
void
remove(Layerable layerable)
void
setLayerManager(LayerManager layerManager)
void
setName(String name)
String
toString()
-
-
-
Method Detail
-
setName
public void setName(String name)
-
getTask
public Task getTask()
-
setLayerManager
public void setLayerManager(LayerManager layerManager)
-
getLayerManager
public LayerManager getLayerManager()
-
getPersistentLayerables
public List<Layerable> getPersistentLayerables()
Called by Java2XML- Returns:
- Layerables with enough information to be saved to a project file
-
remove
public void remove(Layerable layerable)
-
indexOf
public int indexOf(Layerable layerable)
- Parameters:
layerable
- the layerable whose index we want to know- 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 toplayerable
- the layerable to add
-
addPersistentLayerable
public void addPersistentLayerable(Layerable layerable)
Called by Java2XML- Parameters:
layerable
- the Layerable to add
-
isEmpty
public boolean isEmpty()
-
getName
public String getName()
-
-