Class RMLabels

    • Constructor Detail

      • RMLabels

        public RMLabels()
        Creates a new labels template.
    • Method Detail

      • setLabelFormat

        public void setLabelFormat​(LabelFormat labelFormat)
      • getLabel

        public RMLabel getLabel()
        Returns the default label shape.
      • getDatasetKey

        public java.lang.String getDatasetKey()
        Returns the dataset key associated with labels.
        Overrides:
        getDatasetKey in class RMShape
      • setDatasetKey

        public void setDatasetKey​(java.lang.String aKeyPath)
        Sets the dataset key associated with labels.
      • getGrouping

        public RMGrouping getGrouping()
        Returns the grouping for this labels shape.
      • getSorts

        public java.util.List getSorts()
        Returns the list of sorts associated with labels.
      • getSortCount

        public int getSortCount()
        Returns the number of sorts associated with labels.
      • getSort

        public RMSort getSort​(int anIndex)
        Returns the specific sort at the given index.
      • getNumberOfRows

        public int getNumberOfRows()
        Returns the number of rows in the labels block.
      • setNumberOfRows

        public void setNumberOfRows​(int aValue)
        Sets the number of rows in the labels block.
      • getNumberOfColumns

        public int getNumberOfColumns()
        Returns the number of columns in the labels block.
      • setNumberOfColumns

        public void setNumberOfColumns​(int aValue)
        Sets the number of columns in the labels block.
      • getSpacingWidth

        public double getSpacingWidth()
        Returns the spacing between labels horizontally.
      • setSpacingWidth

        public void setSpacingWidth​(double aValue)
        Sets the spacing between labels horizontally.
      • getSpacingHeight

        public double getSpacingHeight()
        Returns the spacing between labels vertically.
      • setSpacingHeight

        public void setSpacingHeight​(double aValue)
        Sets the spacing between labels vertically.
      • getLabelWidth

        public double getLabelWidth()
        Returns the width of an individual label.
      • setLabelWidth

        public void setLabelWidth​(double width)
      • getLabelHeight

        public double getLabelHeight()
        Returns the height of an individual label.
      • setLabelHeight

        public void setLabelHeight​(double height)
      • setWidth

        public void setWidth​(double aWidth)
        Overrides shape method to recalc spacing width.
        Overrides:
        setWidth in class RMParentShape
      • setHeight

        public void setHeight​(double value)
        Overrides shape method to recalc spacing height.
        Overrides:
        setHeight in class RMParentShape
      • fixSize

        public void fixSize()
        Resets labels block width and height if any of labels other attributes have changed.
      • updateLabelSizes

        public void updateLabelSizes()
      • childrenSuperSelectImmediately

        public boolean childrenSuperSelectImmediately()
        Editor method - indicates that labels child should super-select immediately.
        Overrides:
        childrenSuperSelectImmediately in class RMShape
      • setSize

        public void setSize​(RMSize aSize)
        Overridden because we want the size of the RMLabels to be the computed size determined by the size and numbers of the individual labels
        Overrides:
        setSize in class RMShape