Examples of TickUnitsImpl


Examples of railo.runtime.chart.TickUnitsImpl

    Plot plot = chart.getPlot();
    if(plot instanceof CategoryPlot) {
      CategoryPlot cp=(CategoryPlot) plot;
      ValueAxis rangeAxis = cp.getRangeAxis();
      rangeAxis.setAutoTickUnitSelection(true);
      rangeAxis.setStandardTickUnits(new TickUnitsImpl(rangeAxis.getStandardTickUnits(),labelFormat));
      CategoryItemRenderer r = cp.getRenderer();
      r.setBaseItemLabelsVisible(false);
     
      CategoryAxis da = cp.getDomainAxis();
      if(!showXLabel)da.setTickLabelsVisible(false);
      //da.setVisible(false);
    }
    if(plot instanceof XYPlot) {
      XYPlot cp=(XYPlot) plot;
      ValueAxis rangeAxis = cp.getRangeAxis();
      rangeAxis.setAutoTickUnitSelection(true);
      rangeAxis.setStandardTickUnits(new TickUnitsImpl(rangeAxis.getStandardTickUnits(),labelFormat));
      XYItemRenderer r = cp.getRenderer();
      r.setBaseItemLabelsVisible(false);
     
      ValueAxis da = cp.getDomainAxis();
      if(!showXLabel)da.setTickLabelsVisible(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.