Package com.inductiveautomation.rm.shape
Class LabelFormat
java.lang.Object
com.inductiveautomation.rm.shape.LabelFormat
- All Implemented Interfaces:
- Comparable<LabelFormat>
Filename: LabelFormat
 Author: Perry Arellano-Jones
 Created on: 7/27/15
 Project: ignition_dev_7_8B
 A shared class that holds the size information about the format of a RMLabel.
- 
Field SummaryFieldsModifier and TypeFieldDescriptiondoubleintstatic final Map<String,LabelFormat> doubledoubledoubledoubledoubledoubleintdoubledoubledouble
- 
Constructor SummaryConstructorsConstructorDescriptionLabelFormat(RMLabels label) LabelFormat(String name, double labelWidth, double labelHeight, double spacingWidth, double spacingHeight, int rows, int cols, double width, double height) LabelFormat(String name, double width, double height, double spacingWidth, double spacingHeight, int rows, int cols, double pageWidth, double pageHeight, double topMargin, double leftMargin, double bottomMargin, double rightMargin) Creates a new label format.
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(LabelFormat format) static Map<String,LabelFormat> static LabelFormatgetLabelFormat(String formatName) toString()Returns string representation of label format (the format name).
- 
Field Details- 
formatMap
- 
labelWidthpublic double labelWidth
- 
labelHeightpublic double labelHeight
- 
spacingXpublic double spacingX
- 
spacingYpublic double spacingY
- 
pageWidthpublic double pageWidth
- 
pageHeightpublic double pageHeight
- 
topMarginpublic double topMargin
- 
leftMarginpublic double leftMargin
- 
bottomMarginpublic double bottomMargin
- 
rightMarginpublic double rightMargin
- 
rowCountpublic int rowCount
- 
colCountpublic int colCount
- 
formatName
 
- 
- 
Constructor Details- 
LabelFormatpublic LabelFormat(String name, double width, double height, double spacingWidth, double spacingHeight, int rows, int cols, double pageWidth, double pageHeight, double topMargin, double leftMargin, double bottomMargin, double rightMargin) Creates a new label format.
- 
LabelFormatpublic LabelFormat()
- 
LabelFormat
- 
LabelFormatpublic LabelFormat(String name, double labelWidth, double labelHeight, double spacingWidth, double spacingHeight, int rows, int cols, double width, double height) 
 
- 
- 
Method Details- 
toStringReturns string representation of label format (the format name).
- 
getFormatMap
- 
getLabelFormat
- 
compareTo- Specified by:
- compareToin interface- Comparable<LabelFormat>
 
 
-