com.approximatrix.charting
Class CoordSystem

java.lang.Object
  extended by com.approximatrix.charting.render.AbstractRenderer
      extended by com.approximatrix.charting.coordsystem.AbstractCoordSystem
          extended by com.approximatrix.charting.coordsystem.ClassicCoordSystem
              extended by com.approximatrix.charting.CoordSystem
All Implemented Interfaces:
CoordSystem, ChartDataModelListener, Renderer, java.util.EventListener

Deprecated. As of version 1.4, specific rendering coordinate systems should be used. This will be removed in version 1.5

public class CoordSystem
extends ClassicCoordSystem

This class defines a coordinate system. The ClassicCoordSystem class computes an AffineTransform for each y-axis, which translates the user space coordinates (ie. the data value coordinates) into pixel space coordinates. These AffineTransform classes make the PixelToPointTranslator obsolete, since it provides more flexibility. getDefaultTransform always computes the default transformation, whereas you can set another transformation via setTransform. This will be used to implement zooming and panning in the Swing classes.

All classes incl. this one, which render data will use the transformations to translate the coordinates. The transformations are not set up on instantiation of a ClassicCoordSystem, instead they're computed when setBounds is called, because they need this information of course. Afterwards you can set your own transformation or even better you can manipulate the existing ones by pre- or postconcatenating another AffineTransform.


Field Summary
 
Fields inherited from class com.approximatrix.charting.coordsystem.ClassicCoordSystem
ARROWLENGTH, c, constraints, constraints2, frc, MINIMALMARGIN, model, shouldDrawArrows, shouldPaintAltTick
 
Fields inherited from class com.approximatrix.charting.coordsystem.AbstractCoordSystem
bottommargin, centerObjectLabelsBetweenTicks, dfX, dfY, leftmargin, listener, rightmargin, shouldPaintAxes, shouldPaintGrid, shouldPaintLabels, shouldPaintOnlyTick, tickFont, topmargin, unitFont, xaxis, xaxis_unit, y1transform, y2transform, yaxis, yaxis_unit, yaxis2
 
Fields inherited from interface com.approximatrix.charting.coordsystem.CoordSystem
FIRST_YAXIS, SECOND_YAXIS
 
Constructor Summary
CoordSystem(ChartDataModel cdm)
          Deprecated.  
CoordSystem(ChartDataModel c, java.text.DecimalFormat yAxisFormat, boolean drawArrows, boolean paintAltYTick, boolean paintOnlyYTick)
          Deprecated.  
CoordSystem(ChartDataModel c, java.lang.String xunit, java.lang.String yunit)
          Deprecated.  
 
Method Summary
 
Methods inherited from class com.approximatrix.charting.coordsystem.ClassicCoordSystem
chartDataChanged, computeBottomMargin, computeLeftMargin, computeRightMargin, computeTopMargin, getChartDataModelConstraints, getFontRenderContext, getMaximumXTicks, getMaximumYTicks, getXDecimalFormat, getYDecimalFormat, isDrawArrows, isPaintAltTick, paintDefault, resetMaximumXTicks, resetMaximumYTicks, setCenterLabelsBetweenTicks, setMaximumXTicks, setMaximumYTicks
 
Methods inherited from class com.approximatrix.charting.coordsystem.AbstractCoordSystem
addRenderChangeListener, clearRenderChangeListeners, fireRenderChangeEvent, getBottomMargin, getBounds, getDefaultTransform, getFirstYAxis, getFont, getInnerBounds, getLeftMargin, getPaintGrid, getPreferredSize, getRightMargin, getSecondYAxis, getTickFont, getTopMargin, getTransform, getUnitFont, getXAxis, getXAxisUnit, getYAxisUnit, isCenterLabelsBetweenTicks, isPaintAxes, isPaintGrid, isPaintLabels, isPaintOnlyTick, removeRenderChangeListener, render, setBottomMargin, setBounds, setFirstYAxis, setFont, setLeftMargin, setPaintAxes, setPaintGrid, setPaintLabels, setRightMargin, setSecondYAxis, setTickFont, setTopMargin, setTransform, setTransforms, setUnitFont, setXAxis, setXAxisUnit, setXDecimalFormat, setYAxisUnit, setYDecimalFormat
 
Methods inherited from class com.approximatrix.charting.render.AbstractRenderer
getDirectRender, isDifferentBounds, setDirectRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordSystem

public CoordSystem(ChartDataModel c,
                   java.text.DecimalFormat yAxisFormat,
                   boolean drawArrows,
                   boolean paintAltYTick,
                   boolean paintOnlyYTick)
Deprecated. 

CoordSystem

public CoordSystem(ChartDataModel c,
                   java.lang.String xunit,
                   java.lang.String yunit)
Deprecated. 

CoordSystem

public CoordSystem(ChartDataModel cdm)
Deprecated.