Class Category
- java.lang.Object
-
- org.locationtech.jts.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)
void
fireCategoryChanged(CategoryEventType type)
List
getLayerables()
LayerManager
getLayerManager()
String
getName()
List
getPersistentLayerables()
Called by Java2XMLint
indexOf(Layerable layerable)
boolean
isEmpty()
void
remove(Layerable layerable)
void
setLayerManager(LayerManager layerManager)
void
setName(String name)
String
toString()
-
-
-
Method Detail
-
setName
public void setName(String name)
-
setLayerManager
public void setLayerManager(LayerManager layerManager)
-
fireCategoryChanged
public void fireCategoryChanged(CategoryEventType type)
-
getLayerManager
public LayerManager getLayerManager()
-
getPersistentLayerables
public List getPersistentLayerables()
Called by Java2XML- Returns:
- Layerables with enough information to be saved to a project file
-
getLayerables
public 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 String getName()
-
-