Examples of XAxis


Examples of com.tensegrity.palo.gwt.core.client.models.cubeviews.XAxis

    adjustAxis(view.getColumnAxis(), editorPanel.getColumnHierarchies());
  }

  private final void setWidthOfRepositoryAxis(int width) {
    if(view != null) {
      XAxis repositoryAxis = view.getRepositoryAxis();
      String _width = Integer.toString(width);
      repositoryAxis.addProperty(XAxis.PREFERRED_WIDTH, _width);
    }   
  }
View Full Code Here

Examples of jofc2.model.axis.XAxis

   *
   * @return
   */
  @SuppressWarnings("unchecked")
  private XAxis createXAxis() {
    XAxis xaxis = new XAxis();
    List<Label> labels = new ArrayList<Label>();
    for (Iterator it = model.getCategories().iterator(); it.hasNext();) {
      Label l = new Label((String) it.next());
      labels.add(l);
    }
    xaxis.addLabels(labels);
    return xaxis;
  }
View Full Code Here

Examples of jofc2.model.axis.XAxis

   *
   * @return
   */
  @SuppressWarnings("unchecked")
  private XAxis createXAxis() {
    XAxis xaxis = new XAxis();
    List<Label> labels = new ArrayList<Label>();
    for (Iterator it = model.getCategories().iterator(); it.hasNext();) {
      Label l = new Label((String) it.next());
      labels.add(l);
    }
    xaxis.addLabels(labels);
    return xaxis;
  }
View Full Code Here

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

Examples of ofc4j.model.axis.XAxis

        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

Examples of org.krysalis.jcharts.axisChart.axis.XAxis

    if( this.axisProperties.isPlotHorizontal() )
    {
      //---X AXIS---------------------------------------------------------------------------
      DataAxisProperties dataAxisProperties = (DataAxisProperties) this.getAxisProperties().getXAxisProperties();
      this.xAxis = new XAxis( this, dataAxisProperties.getNumItems() );

      NumericTagGroup numericTagGroup= setupDataAxisProperties( this.xAxis, dataAxisProperties, axisChartDataProcessor, fontRenderContext );
      this.xAxis.setAxisLabelsGroup( numericTagGroup );


      //---Y AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getYAxisProperties();
      this.yAxis = new YAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
        for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.yAxis.setAxisLabelsGroup( textTagGroup );
      }
    }
    else
    {
      //---X AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getXAxisProperties();
      this.xAxis = new XAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.axis.XAxis

    if( this.axisProperties.isPlotHorizontal() )
    {
      //---X AXIS---------------------------------------------------------------------------
      DataAxisProperties dataAxisProperties = (DataAxisProperties) this.getAxisProperties().getXAxisProperties();
      this.xAxis = new XAxis( this, dataAxisProperties.getNumItems() );

      NumericTagGroup numericTagGroup= setupDataAxisProperties( this.xAxis, dataAxisProperties, axisChartDataProcessor, fontRenderContext );
      this.xAxis.setAxisLabelsGroup( numericTagGroup );


      //---Y AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getYAxisProperties();
      this.yAxis = new YAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
        for( int i = 0; i < iDataSeries.getNumberOfAxisLabels(); i++ )
        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.yAxis.setAxisLabelsGroup( textTagGroup );
      }
    }
    else
    {
      //---X AXIS---------------------------------------------------------------------------
      AxisTypeProperties axisTypeProperties = this.getAxisProperties().getXAxisProperties();
      this.xAxis = new XAxis( this, axisChartDataProcessor.getNumberOfElementsInADataSet() );
      if( axisTypeProperties.showAxisLabels() )
      {
        TextTagGroup textTagGroup = new TextTagGroup( axisTypeProperties.getScaleChartFont(), fontRenderContext );

        //LOOP
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.