Class CategoryMover
java.lang.Object
org.openjump.core.ui.plugin.mousemenu.category.CategoryMover
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CategorygetCategory(String name) Gets category with specified name, if exists.voidMoves the given category to the next lower position in the LayerNamePanelvoidMoves the given category to the next higher position in the LayerNamePanelvoidMoves the given category to the bottom position in the LayerNamePanelvoidmoveCategoryToPosition(Category cat, int pos) Moves the given category to the given position in the LayerNamePanelvoidmoveCategoryToPosition(String name, int pos) Moves the category with the given name to the given position in the LayerNamePanelvoidMoves the given category to the top position in the LayerNamePanel
-
Field Details
-
context
-
-
Constructor Details
-
CategoryMover
-
-
Method Details
-
getCategory
-
moveCategoryToPosition
Moves the category with the given name to the given position in the LayerNamePanel- Parameters:
name- name of the categorypos- desired position
-
moveCategoryToPosition
Moves the given category to the given position in the LayerNamePanel- Parameters:
cat- category to movepos- desired position
-
moveCategoryToTop
Moves the given category to the top position in the LayerNamePanel- Parameters:
cat- category to move
-
moveCategoryToBottom
Moves the given category to the bottom position in the LayerNamePanel- Parameters:
cat- category to move
-
moveCategoryOneUp
Moves the given category to the next higher position in the LayerNamePanel- Parameters:
cat- category to move
-
moveCategoryOneDown
Moves the given category to the next lower position in the LayerNamePanel- Parameters:
cat- category to move
-