Class AAxis.YDataAccessor

    • Constructor Summary

      Constructors 
      Constructor Description
      YDataAccessor​(Chart2D chart)
      Creates an instance that accesses the y axis of the given chart.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDimension()
      Returns the constant for the dimension that is accessed on the chart.
      int getHeight​(java.awt.Graphics g2d)
      Returns the height in pixel the corresponding axis needs to paint itself.
      protected double getMaximumPixelForLabel​(java.awt.Graphics g2d)
      Returns the maximum pixels that will be needed to paint a label.
      protected double getMaxValue​(ITrace2D trace)
      Returns the max value of the given trace according to the dimension the outer axis belongs to.
      double getMinimumValueDistanceForLabels​(java.awt.Graphics g2d)
      Returns the minimum amount of increase in the value that will be needed to display all labels without overwriting each others.
      protected double getMinValue​(ITrace2D trace)
      Returns the min value of the given trace according to the dimension the outer axis belongs to.
      protected int getPixelRange()
      Returns the amount of pixel available for displaying the values on the chart in the dimension this accessor stands for.
      protected double getValue​(ITracePoint2D point)
      Returns the value of the given point according to the dimension the outer axis belongs to.
      protected double getValueDistanceForPixel​(int pixel)
      Returns the value distance on the current chart that exists for the given amount of pixel distance in the given direction of this AAxis.
      int getWidth​(java.awt.Graphics g2d)
      Returns the width in pixel the corresponding axis needs to paint itself.
      protected void scaleTrace​(ITrace2D trace, Range range)
      Scales the given trace in the dimension represented by this axis.
      java.lang.String toString()
      Returns "Y".
      double translateMousePosition​(java.awt.event.MouseEvent mouseEvent)
      Returns the translation of the mouse event coordinates of the given mouse event to the value within the chart for the dimension (x,y) covered by this axis.
      double translatePxToValue​(int pixel)
      Transforms the given pixel value (which has to be a awt value like MouseEvent.getX() into the chart value.
      int translateValueToPx​(double value)
      Transforms the given chart data value into the corresponding awt pixel value for the chart.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait