Class Category


  • public class Category
    extends Object
    A folder containing Layers.
    • Constructor Detail

      • Category

        public Category()
    • Method Detail

      • setName

        public void setName​(String name)
      • setLayerManager

        public void setLayerManager​(LayerManager layerManager)
      • 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()