Esempio n. 1
0
 /**
  * Constructs the XYAxes inside the drawing panel.
  *
  * <p>Drawing panel gutters are set to 30, 30, 30, 30.
  *
  * @param panel the drawing panel that will use the axes
  */
 public CartesianType3(PlottingPanel panel) {
   super(panel);
   defaultLeftGutter = 30;
   defaultTopGutter = 30;
   defaultRightGutter = 30;
   defaultBottomGutter = 30;
   titleLine.setJustification(TextLine.CENTER);
   titleLine.setFont(titleFont);
   xaxis = new XAxis();
   yaxis = new YAxis();
   xaxis.setEnabled(true); // enable dragging
   xaxis.setLocationType(XYAxis.DRAW_AT_LOCATION);
   yaxis.setEnabled(true);
   yaxis.setLocationType(XYAxis.DRAW_AT_LOCATION);
   if (panel == null) {
     return;
   }
   panel.setCoordinateStringBuilder(CoordinateStringBuilder.createCartesian());
   panel.setPreferredGutters(
       defaultLeftGutter, defaultTopGutter, defaultRightGutter, defaultBottomGutter);
   panel.setAxes(this);
 }