Package jmt.gui.jaba.label

Examples of jmt.gui.jaba.label.YAxisPlacer


    if (points.size() == 0)
      return;
    int i;
    ArrayList<String> labels;
    ArrayList<DPoint> truePoints;
    YAxisPlacer placer;

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


    plane.drawValuesOnYAxis(valuesOnLeftY);

    {// we draw the last points in another axis
      ArrayList<String> labels;
      ArrayList<DPoint> truePoints;
      YAxisPlacer placer;
      DecimalFormat formatter = new DecimalFormat("0.000");
      labels = new ArrayList<String>();
      truePoints = new ArrayList<DPoint>();
      for (int i = 0; i < valuesOnRightY.size(); i++) {
        labels.add(formatter.format(valuesOnRightY.get(i).getY()));
        truePoints.add(plane.getTruePoint(valuesOnRightY.get(i)));
      }
      placer = new YAxisPlacer(labels, truePoints);
      placer.place((Graphics2D) g, plane.getTrueX(1) + 10);
      plane.drawSegment(new DPoint(1, 0), new DPoint(1, 1));
    }

    plane.draw("% " + data.getClassNames()[0], "Utilization");
View Full Code Here

TOP

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

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.