Package ofc4j.model.axis

Examples of ofc4j.model.axis.XAxis


      }

      chart.setYAxis( yaxis );
      return yaxis;
    } else {
      XAxis xaxis = new XAxis();
      if ( labels != null ) {
        xaxis.addLabels( labels );
      }
      xaxis.setStroke( domainStroke );
      xaxis.setColour( domainColor );
      xaxis.setGridColour( domainGridColor );
      if ( domainMin != null && domainMax != null ) {
        xaxis.setRange( domainMin.intValue(), domainMax.intValue(), stepforchart );
      }

      if ( domainRotation != null ) {

        Rotation rot = null;
        if ( domainRotation.equals( "vertical" ) ) {
          rot = Rotation.VERTICAL;
        } else if ( domainRotation.equals( "diagonal" ) ) {
          rot = Rotation.DIAGONAL;
        } else {
          rot = Rotation.HORIZONTAL;
        }

        xaxis.getLabels().setRotation( rot );
      }

      chart.setXAxis( xaxis );
      return xaxis;
    }
View Full Code Here


        rangeMax = rangeMin + ( chunksize * ( steps + 2 ) );
      }
    }

    if ( HORIZONTAL_ORIENTATION.equals( orientation ) ) {
      XAxis xaxis = new XAxis();
      xaxis.setRange( rangeMin, rangeMax, stepforchart );
      xaxis.setStroke( rangeStroke );
      xaxis.setColour( rangeColor );
      xaxis.setGridColour( rangeGridColor );
      chart.setXAxis( xaxis );
      return xaxis;
    } else {
      YAxis yaxis = new YAxis();
      yaxis.setRange( rangeMin, rangeMax, stepforchart );
View Full Code Here

TOP

Related Classes of ofc4j.model.axis.XAxis

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.