public class IconSettings extends Object
PDFViewerBean
.
It includes size settings for the toolbars for both standard and touch modes for
PDFViewerBean
, as well as control for enabling navigation buttons that
show up on the pages when in touch mode.
Modifier and Type | Field and Description |
---|---|
static String |
LARGE |
static String |
MEDIUM |
static String |
SMALL |
static String |
XLARGE |
static String |
XMLKEY_ICON_SETTINGS |
Constructor and Description |
---|
IconSettings() |
Modifier and Type | Method and Description |
---|---|
static void |
enableTouchPageIcons(boolean enable)
Enable/disable the navigation buttons on the page that are used in Touch Mode.
|
static String |
getCommentsPanelStandardIconSize()
Returns a String representing the icon size for the comments panel in
PDFViewerBean when in standard mode. |
static String |
getCommentsPanelTouchIconSize()
Returns a String representing the icon size for the comments panel in
PDFViewerBean when in Touch Mode. |
static String |
getStandardIconSize()
Returns a String representing the icon size for the toolbars
PDFViewerBean when in standard mode. |
static String |
getTouchIconSize()
Returns a String representing the icon size for the toolbars
PDFViewerBean when in Touch Mode. |
static void |
setCommentsPanelStandardIconSize(String size)
Sets the default icon size to use in the comments panel in
PDFViewerBean when in standard mode.The size should be of format "32x32", or for convenience, you can use one of the following constants IconSettings.SMALL: 16x16 icons IconSettings.MEDIUM: 24x24 icons IconSettings.LARGE: 32x32 icons IconSettings.XLARGE: 48x48 icons |
static void |
setCommentsPanelTouchIconSize(String size)
Sets the default icon size to use in the comments panel in
PDFViewerBean when in Touch Mode.The size should be of format "32x32", or for convenience, you can use one of the following constants IconSettings.SMALL: 16x16 icons IconSettings.MEDIUM: 24x24 icons IconSettings.LARGE: 32x32 icons IconSettings.XLARGE: 48x48 icons |
static void |
setFromXML(String xmlString)
This method sets the default IconSettings properties with a
properly formatted
String xml element. |
static void |
setStandardIconSize(String size)
Sets the default icon size to use on toolbars in
PDFViewerBean when in standard mode.The size should be of format "32x32", or for convenience, you can use one of the following constants IconSettings.SMALL: 16x16 icons IconSettings.MEDIUM: 24x24 icons IconSettings.LARGE: 32x32 icons IconSettings.XLARGE: 48x48 icons |
static void |
setTouchIconSize(String size)
Sets the default icon size to use on toolbars in
PDFViewerBean when in Touch Mode.The size should be of format "32x32", or for convenience, you can use one of the following constants: IconSettings.SMALL: 16x16 icons IconSettings.MEDIUM: 24x24 icons IconSettings.LARGE: 32x32 icons IconSettings.XLARGE: 48x48 icons |
static void |
setUseIconsOnTabButtons(boolean useIcons)
Toggle whether tab buttons should be representing by icons or text
|
static String |
toXMLString()
This method creates a
String that contains an xml element of
the default IconSettings properties. |
static boolean |
useIconsOnTabButtons()
Returns true if the tab buttons are represented by icons, text otherwise.
|
static boolean |
useTouchPageIcons()
Returns true if the navigation buttons on the page that are used in Touch Mode are enabled.
|
public static final String XMLKEY_ICON_SETTINGS
public static final String SMALL
public static final String MEDIUM
public static final String LARGE
public static final String XLARGE
public static void setStandardIconSize(String size)
PDFViewerBean
when in standard mode.size
- icon size of the format "32x32" (use multiples of 16 for best results)public static String getStandardIconSize()
PDFViewerBean
when in standard mode.public static void setTouchIconSize(String size)
PDFViewerBean
when in Touch Mode.size
- icon size of the format "32x32" (use multiples of 16 for best results)public static String getTouchIconSize()
PDFViewerBean
when in Touch Mode.public static void setCommentsPanelStandardIconSize(String size)
PDFViewerBean
when in standard mode.size
- icon size of the format "32x32" (use multiples of 16 for best results)public static String getCommentsPanelStandardIconSize()
PDFViewerBean
when in standard mode.public static void setCommentsPanelTouchIconSize(String size)
PDFViewerBean
when in Touch Mode.size
- icon size of the format "32x32" (use multiples of 16 for best results)public static String getCommentsPanelTouchIconSize()
PDFViewerBean
when in Touch Mode.public static void enableTouchPageIcons(boolean enable)
enable
- public static boolean useTouchPageIcons()
public static void setUseIconsOnTabButtons(boolean useIcons)
useIcons
- public static boolean useIconsOnTabButtons()
public static String toXMLString()
String
that contains an xml element of
the default IconSettings properties. This String
can
be stored and used to set the default IconSettings.String
containing an xml element of the
IconSettings properties.setFromXML(String)
public static void setFromXML(String xmlString)
String
xml element.toXMLString()