Class CategoryMover

java.lang.Object
org.openjump.core.ui.plugin.mousemenu.category.CategoryMover

public class CategoryMover extends Object
Provides methods to move a category including the layers in it within the LayerNamePanel.
Author:
Ole Rahn, FH Osnabrück - University of Applied Sciences Osnabrück, Project: PIROL (2005), Subproject: Daten- und Wissensmanagement
  • Field Details

  • Constructor Details

  • Method Details

    • getCategory

      protected Category getCategory(String name)
      Gets category with specified name, if exists.
      Parameters:
      name - the name of the Category to return
      Returns:
      category or null
    • moveCategoryToPosition

      public void moveCategoryToPosition(String name, int pos)
      Moves the category with the given name to the given position in the LayerNamePanel
      Parameters:
      name - name of the category
      pos - desired position
    • moveCategoryToPosition

      public void moveCategoryToPosition(Category cat, int pos)
      Moves the given category to the given position in the LayerNamePanel
      Parameters:
      cat - category to move
      pos - desired position
    • moveCategoryToTop

      public void moveCategoryToTop(Category cat)
      Moves the given category to the top position in the LayerNamePanel
      Parameters:
      cat - category to move
    • moveCategoryToBottom

      public void moveCategoryToBottom(Category cat)
      Moves the given category to the bottom position in the LayerNamePanel
      Parameters:
      cat - category to move
    • moveCategoryOneUp

      public void moveCategoryOneUp(Category cat)
      Moves the given category to the next higher position in the LayerNamePanel
      Parameters:
      cat - category to move
    • moveCategoryOneDown

      public void moveCategoryOneDown(Category cat)
      Moves the given category to the next lower position in the LayerNamePanel
      Parameters:
      cat - category to move