Class 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 Detail

      • formatMap

        public static final java.util.Map<java.lang.String,​LabelFormat> 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

        public java.lang.String formatName
    • Constructor Detail

      • LabelFormat

        public 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.
      • LabelFormat

        public LabelFormat()
      • LabelFormat

        public LabelFormat​(RMLabels label)
      • LabelFormat

        public LabelFormat​(java.lang.String name,
                           double labelWidth,
                           double labelHeight,
                           double spacingWidth,
                           double spacingHeight,
                           int rows,
                           int cols,
                           double width,
                           double height)
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns string representation of label format (the format name).
        Overrides:
        toString in class java.lang.Object
      • getFormatMap

        public static java.util.Map<java.lang.String,​LabelFormat> getFormatMap()
      • getLabelFormat

        public static LabelFormat getLabelFormat​(java.lang.String formatName)
      • compareTo

        public int compareTo​(LabelFormat format)
        Specified by:
        compareTo in interface java.lang.Comparable<LabelFormat>