Package org.apache.pdfbox.debugger.ui
Class RotationMenu
- java.lang.Object
-
- org.apache.pdfbox.debugger.ui.MenuBase
-
- org.apache.pdfbox.debugger.ui.RotationMenu
-
public final class RotationMenu extends MenuBase
-
-
Field Summary
Fields Modifier and Type Field Description private static RotationMenu
instance
static java.lang.String
ROTATE_0_DEGREES
static java.lang.String
ROTATE_180_DEGREES
static java.lang.String
ROTATE_270_DEGREES
static java.lang.String
ROTATE_90_DEGREES
private javax.swing.JRadioButtonMenuItem
rotate0Item
private javax.swing.JRadioButtonMenuItem
rotate180Item
private javax.swing.JRadioButtonMenuItem
rotate270Item
private javax.swing.JRadioButtonMenuItem
rotate90Item
-
Constructor Summary
Constructors Modifier Constructor Description private
RotationMenu()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.swing.JMenu
createRotationMenu()
static RotationMenu
getInstance()
Provides the RotationMenu instance.static int
getRotationDegrees()
static int
getRotationDegrees(java.lang.String actionCommand)
static boolean
isRotationMenu(java.lang.String actionCommand)
void
setRotationSelection(java.lang.String selection)
Set the rotation selection.-
Methods inherited from class org.apache.pdfbox.debugger.ui.MenuBase
addMenuListeners, getMenu, setEnableMenu, setMenu
-
-
-
-
Field Detail
-
ROTATE_0_DEGREES
public static final java.lang.String ROTATE_0_DEGREES
- See Also:
- Constant Field Values
-
ROTATE_90_DEGREES
public static final java.lang.String ROTATE_90_DEGREES
- See Also:
- Constant Field Values
-
ROTATE_180_DEGREES
public static final java.lang.String ROTATE_180_DEGREES
- See Also:
- Constant Field Values
-
ROTATE_270_DEGREES
public static final java.lang.String ROTATE_270_DEGREES
- See Also:
- Constant Field Values
-
instance
private static RotationMenu instance
-
rotate0Item
private javax.swing.JRadioButtonMenuItem rotate0Item
-
rotate90Item
private javax.swing.JRadioButtonMenuItem rotate90Item
-
rotate180Item
private javax.swing.JRadioButtonMenuItem rotate180Item
-
rotate270Item
private javax.swing.JRadioButtonMenuItem rotate270Item
-
-
Method Detail
-
getInstance
public static RotationMenu getInstance()
Provides the RotationMenu instance.- Returns:
- RotationMenu instance.
-
setRotationSelection
public void setRotationSelection(java.lang.String selection)
Set the rotation selection.- Parameters:
selection
- String instance.
-
isRotationMenu
public static boolean isRotationMenu(java.lang.String actionCommand)
-
getRotationDegrees
public static int getRotationDegrees()
-
getRotationDegrees
public static int getRotationDegrees(java.lang.String actionCommand)
-
createRotationMenu
private javax.swing.JMenu createRotationMenu()
-
-