Package com.inductiveautomation.rm.shape
Class LabelFormat
- java.lang.Object
- 
- com.inductiveautomation.rm.shape.LabelFormat
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<LabelFormat>
 
 public class LabelFormat extends java.lang.Object implements java.lang.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 SummaryFields Modifier and Type Field Description doublebottomMarginintcolCountstatic java.util.Map<java.lang.String,LabelFormat>formatMapjava.lang.StringformatNamedoublelabelHeightdoublelabelWidthdoubleleftMargindoublepageHeightdoublepageWidthdoublerightMarginintrowCountdoublespacingXdoublespacingYdoubletopMargin
 - 
Constructor SummaryConstructors Constructor Description LabelFormat()LabelFormat(RMLabels label)LabelFormat(java.lang.String name, double labelWidth, double labelHeight, double spacingWidth, double spacingHeight, int rows, int cols, double width, double height)LabelFormat(java.lang.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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LabelFormat format)static java.util.Map<java.lang.String,LabelFormat>getFormatMap()static LabelFormatgetLabelFormat(java.lang.String formatName)java.lang.StringtoString()Returns string representation of label format (the format name).
 
- 
- 
- 
Field Detail- 
formatMappublic static final java.util.Map<java.lang.String,LabelFormat> 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 
 - 
formatNamepublic java.lang.String formatName 
 
- 
 - 
Constructor Detail- 
LabelFormatpublic LabelFormat(java.lang.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() 
 - 
LabelFormatpublic LabelFormat(RMLabels label) 
 - 
LabelFormatpublic LabelFormat(java.lang.String name, double labelWidth, double labelHeight, double spacingWidth, double spacingHeight, int rows, int cols, double width, double height)
 
- 
 - 
Method Detail- 
toStringpublic java.lang.String toString() Returns string representation of label format (the format name).- Overrides:
- toStringin class- java.lang.Object
 
 - 
getFormatMappublic static java.util.Map<java.lang.String,LabelFormat> getFormatMap() 
 - 
getLabelFormatpublic static LabelFormat getLabelFormat(java.lang.String formatName) 
 - 
compareTopublic int compareTo(LabelFormat format) - Specified by:
- compareToin interface- java.lang.Comparable<LabelFormat>
 
 
- 
 
-