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 Summary
Fields Modifier and Type Field Description protected PlugInContext
context
-
Constructor Summary
Constructors Constructor Description CategoryMover(PlugInContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Category
getCategory(String name)
Gets category with specified name, if exists.void
moveCategoryOneDown(Category cat)
Moves the given category to the next lower position in the LayerNamePanelvoid
moveCategoryOneUp(Category cat)
Moves the given category to the next higher position in the LayerNamePanelvoid
moveCategoryToBottom(Category cat)
Moves the given category to the bottom position in the LayerNamePanelvoid
moveCategoryToPosition(Category cat, int pos)
Moves the given category to the given position in the LayerNamePanelvoid
moveCategoryToPosition(String name, int pos)
Moves the category with the given name to the given position in the LayerNamePanelvoid
moveCategoryToTop(Category cat)
Moves the given category to the top position in the LayerNamePanel
-
-
-
Field Detail
-
context
protected PlugInContext context
-
-
Constructor Detail
-
CategoryMover
public CategoryMover(PlugInContext context)
-
-
Method Detail
-
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 categorypos
- 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 movepos
- 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
-
-