Class ChartTitle<ST extends Styler,​S extends Series>

  • All Implemented Interfaces:
    ChartPart

    public class ChartTitle<ST extends Styler,​S extends Series>
    extends java.lang.Object
    implements ChartPart
    Chart Title
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.geom.Rectangle2D bounds  
      private Chart<ST,​S> chart  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChartTitle​(Chart<ST,​S> chart)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Rectangle2D getBounds()  
      private java.awt.geom.Rectangle2D getBoundsHint()
      get the height of the chart title including the chart title padding
      void paint​(java.awt.Graphics2D g)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bounds

        private java.awt.geom.Rectangle2D bounds
    • Constructor Detail

      • ChartTitle

        public ChartTitle​(Chart<ST,​S> chart)
        Constructor
        Parameters:
        chart -
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics2D g)
        Specified by:
        paint in interface ChartPart
      • getBoundsHint

        private java.awt.geom.Rectangle2D getBoundsHint()
        get the height of the chart title including the chart title padding
        Returns:
        a Rectangle2D defining the height of the chart title including the chart title padding
      • getBounds

        public java.awt.geom.Rectangle2D getBounds()
        Specified by:
        getBounds in interface ChartPart