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 RotationMenuinstancestatic java.lang.StringROTATE_0_DEGREESstatic java.lang.StringROTATE_180_DEGREESstatic java.lang.StringROTATE_270_DEGREESstatic java.lang.StringROTATE_90_DEGREESprivate javax.swing.JRadioButtonMenuItemrotate0Itemprivate javax.swing.JRadioButtonMenuItemrotate180Itemprivate javax.swing.JRadioButtonMenuItemrotate270Itemprivate javax.swing.JRadioButtonMenuItemrotate90Item
-
Constructor Summary
Constructors Modifier Constructor Description privateRotationMenu()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.swing.JMenucreateRotationMenu()static RotationMenugetInstance()Provides the RotationMenu instance.static intgetRotationDegrees()static intgetRotationDegrees(java.lang.String actionCommand)static booleanisRotationMenu(java.lang.String actionCommand)voidsetRotationSelection(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()
-
-