public final class RotationMenu extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ROTATE_0_DEGREES |
static String |
ROTATE_180_DEGREES |
static String |
ROTATE_270_DEGREES |
static String |
ROTATE_90_DEGREES |
Modifier and Type | Method and Description |
---|---|
void |
addMenuListeners(ActionListener listener)
Add the ActionListener for the menuitems.
|
static RotationMenu |
getInstance()
Provides the RotationMenu instance.
|
JMenu |
getMenu()
Provide the JMenu instance of the ZoomMenu.
|
static int |
getRotationDegrees() |
static int |
getRotationDegrees(String actionCommand) |
static boolean |
isRotationMenu(String actionCommand) |
void |
setEnableMenu(boolean isEnable)
Set if the menu should be enabled or disabled.
|
protected void |
setMenu(JMenu menu) |
void |
setRotationSelection(String selection)
Set the rotation selection.
|
public static final String ROTATE_0_DEGREES
public static final String ROTATE_90_DEGREES
public static final String ROTATE_180_DEGREES
public static final String ROTATE_270_DEGREES
public static RotationMenu getInstance()
public void setRotationSelection(String selection)
selection
- String instance.public static boolean isRotationMenu(String actionCommand)
public static int getRotationDegrees()
public static int getRotationDegrees(String actionCommand)
protected void setMenu(JMenu menu)
public JMenu getMenu()
public void setEnableMenu(boolean isEnable)
isEnable
- boolean instance.public void addMenuListeners(ActionListener listener)
listener
- ActionListener.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.