Package jmt.gui.jaba.label

Examples of jmt.gui.jaba.label.XAxisPlacer


   */
  public void drawValuesOnXAxis(ArrayList<DPoint> points) {
    int i;
    ArrayList<String> labels;
    ArrayList<DPoint> truePoints;
    XAxisPlacer placer;

    labels = new ArrayList<String>();
    truePoints = new ArrayList<DPoint>();
    for (i = 0; i < points.size(); i++) {
      labels.add(FORMATTER.format(points.get(i).getX()));
      truePoints.add(new DPoint(getTrueX(points.get(i).getX()),
          getTrueY(points.get(i).getY())));
    }
    placer = new XAxisPlacer(labels, truePoints);
    placer.place(g, getTrueY(0) + SPACE_BETWEEN_X_AXIS_AND_LABEL,
        getTrueY(0));
  }
View Full Code Here

TOP

Related Classes of jmt.gui.jaba.label.XAxisPlacer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.