Class RMGraphLegend

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class RMGraphLegend extends RMFlowShape
An inner class for Legend.
  • Constructor Details

    • RMGraphLegend

      public RMGraphLegend()
  • Method Details

    • getGraph

      public RMGraph getGraph()
      Returns the graph that owns this legend.
    • getLegendText

      public String getLegendText()
      Returns the legend text.
    • setLegendText

      public void setLegendText(String aString)
      Sets the legend text.
    • getColumnCount

      public int getColumnCount()
      Returns the number of columns in legend.
    • setColumnCount

      public void setColumnCount(int aValue)
      Sets the number of columns in legend.
    • getFont

      public RMFont getFont()
      Override to forward to TextShape.
      Overrides:
      getFont in class RMShape
    • setFont

      public void setFont(RMFont aFont)
      Override to forward to TextShape.
      Overrides:
      setFont in class RMShape
    • layoutChildren

      protected void layoutChildren()
      Override to layout legend.
      Overrides:
      layoutChildren in class RMFlowShape
    • toXMLShape

      public RXElement toXMLShape(RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXMLShape in class RMFlowShape
    • fromXMLShape

      public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXMLShape in class RMFlowShape