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 Summary
FieldsModifier and TypeFieldDescriptiondouble
int
static final Map<String,
LabelFormat> double
double
double
double
double
double
int
double
double
double
-
Constructor Summary
ConstructorsConstructorDescriptionLabelFormat
(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 Summary
Modifier and TypeMethodDescriptionint
compareTo
(LabelFormat format) static Map<String,
LabelFormat> static LabelFormat
getLabelFormat
(String formatName) toString()
Returns string representation of label format (the format name).
-
Field Details
-
formatMap
-
labelWidth
public double labelWidth -
labelHeight
public double labelHeight -
spacingX
public double spacingX -
spacingY
public double spacingY -
pageWidth
public double pageWidth -
pageHeight
public double pageHeight -
topMargin
public double topMargin -
leftMargin
public double leftMargin -
bottomMargin
public double bottomMargin -
rightMargin
public double rightMargin -
rowCount
public int rowCount -
colCount
public int colCount -
formatName
-
-
Constructor Details
-
LabelFormat
public 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. -
LabelFormat
public LabelFormat() -
LabelFormat
-
LabelFormat
public LabelFormat(String name, double labelWidth, double labelHeight, double spacingWidth, double spacingHeight, int rows, int cols, double width, double height)
-
-
Method Details
-
toString
Returns string representation of label format (the format name). -
getFormatMap
-
getLabelFormat
-
compareTo
- Specified by:
compareTo
in interfaceComparable<LabelFormat>
-