Package com.reportmill.panels
Class FormatPanel
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.FormatPanel
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
This class provides GUI for showing the formatter from the currently selected shape and editing or changing it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RMDateFormat
getDateFormat
(int anIndex) Returns the preset date format at the given index.static int
Returns the number of preset date formats available to the format panel.static int
getDateFormatIndex
(String aPattern) Returns the index of the preset date format for a given date format pattern.static String
Returns the Format panel's current date format strings as a single newline separated string.static String
Returns ReportMill's default date format strings as a single newline delimited String.static String
Returns ReportMill's default number format strings as a single newline delimited string.static RMNumberFormat
getNumberFormat
(int anIndex) Returns the preset number format at the given index.static int
Returns the number of preset number formats available to the format panel.static String
Returns the Format panel's current number format strings as a single newline separated string.getUI()
Returns the Swing GUI panel containing format inspector controls.Returns the name for the attributes panel window.void
resetUI()
Refreshes the format panel from the current editor selection.void
Responds to changes from format panel GUI controls.static void
setDateFormatsString
(String aString) Sets the FormatPanel's current date formats from a single newline separated string.static void
setNumberFormatsString
(String aString) Sets the FormatPanel's current number formats from a single newline separated string.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
FormatPanel
public FormatPanel()Creates a FormatPanel instance.
-
-
Method Details
-
getWindowTitle
Returns the name for the attributes panel window. -
getUI
Returns the Swing GUI panel containing format inspector controls. -
resetUI
public void resetUI()Refreshes the format panel from the current editor selection. -
respondUI
Responds to changes from format panel GUI controls. -
getNumberFormatCount
public static int getNumberFormatCount()Returns the number of preset number formats available to the format panel. -
getNumberFormat
Returns the preset number format at the given index. -
getNumberFormatsString
Returns the Format panel's current number format strings as a single newline separated string. -
setNumberFormatsString
Sets the FormatPanel's current number formats from a single newline separated string. -
getDateFormatCount
public static int getDateFormatCount()Returns the number of preset date formats available to the format panel. -
getDateFormat
Returns the preset date format at the given index. -
getDateFormatIndex
Returns the index of the preset date format for a given date format pattern. -
getDateFormatsString
Returns the Format panel's current date format strings as a single newline separated string. -
setDateFormatsString
Sets the FormatPanel's current date formats from a single newline separated string. -
getDefaultNumberFormatsString
Returns ReportMill's default number format strings as a single newline delimited string. -
getDefaultDateFormatsString
Returns ReportMill's default date format strings as a single newline delimited String.
-