Class BarStyle.Placement

  • Enclosing class:
    BarStyle

    public abstract static class BarStyle.Placement
    extends java.lang.Object
    Describes bar placement, that is how multiple bars covering the same data range are to be arranged.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Placement​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract int[] getXRange​(int lo, int hi, int iseq, int nseq)
      Returns the range of X coordinates to be used for plotting a bar.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Placement

        protected Placement​(java.lang.String name)
    • Method Detail

      • getXRange

        public abstract int[] getXRange​(int lo,
                                        int hi,
                                        int iseq,
                                        int nseq)
        Returns the range of X coordinates to be used for plotting a bar.
        Parameters:
        lo - lower bound of total range for data region
        hi - upper bound of total range for data region + 1
        iseq - index of the bar to be plotted in the returned range
        nseq - total number of bars which will be plotted in the data region
        Returns:
        2-element arrage giving (lower bound, upper bound+1) of the region the plotted bar should occupy
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object