Package org.apache.myfaces.trinidad.component.core.data

Examples of org.apache.myfaces.trinidad.component.core.data.CoreChart


  protected void _outputJSChartModel(
    StringWriter sw,
    UIComponent         component) throws IOException
  {
    CoreChart chart = (CoreChart)component;
    ChartModel model = (ChartModel)chart.getValue();
    if(model==null)
    {
      _LOG.severe("Model not specified for the chart component.");
      return;
    }
View Full Code Here


  protected void _outputJSChartModel(
    StringWriter sw,
    UIComponent         component) throws IOException
  {
    CoreChart chart = (CoreChart)component;
    ChartModel model = (ChartModel)chart.getValue();
    if(model==null)
    {
      _LOG.severe("MODEL_NOT_SPECIFIED_FOR_CHART_COMPONENT");
      return;
    }
View Full Code Here

  public String nextChartType()
  {
    _currentTypeIndex++;
    if(_currentTypeIndex >= _chartTypes.length)
      _currentTypeIndex = 0;
    CoreChart chart = (CoreChart)_editorBean.getComponent();
    chart.setType(_chartTypes[_currentTypeIndex]);
    return null;
  }
View Full Code Here

  }

  public void setLargerDataSet(boolean b)
  {
    _largerDataSet = b;
    CoreChart chart = (CoreChart)_editorBean.getComponent();
    if(_largerDataSet)
      chart.setXMajorGridLineCount(1);
    else
      chart.setXMajorGridLineCount(-1);
  }
View Full Code Here

    }

    @Override
    public List<String> getGroupLabels()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("circularGauge".equals(chart.getType()) ||
         "semiCircularGauge".equals(chart.getType()) ||
         !_largerDataSet)
        return _groupLabels;
      else
        return _largeGroupLabels;
    }
View Full Code Here

    }
       
    @Override
    public List<List<Double>> getXValues()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("XYLine".equals(chart.getType()) || "scatterPlot".equals(chart.getType()))
      {
        if(_largerDataSet)
        {
          if(_largerXValues == null)
          {
View Full Code Here

    }
 
    @Override
    public List<List<Double>> getYValues()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("circularGauge".equals(chart.getType()) ||
         "semiCircularGauge".equals(chart.getType()))
        return _dialchartYValues;
      else
      {
        if(_largerDataSet)
        {
View Full Code Here

    }

    @Override
    public Double getMaxYValue()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("circularGauge".equals(chart.getType()) ||
         "semiCircularGauge".equals(chart.getType()))
        return 200.0;
      else if("stackedVerticalBar".equals(chart.getType()) ||
         "stackedHorizontalBar".equals(chart.getType()) ||
         "stackedArea".equals(chart.getType()))
      {
        if(_largerDataSet)
          return 7500.0;
        else
          return 500000.0;
View Full Code Here

    }
 
    @Override
    public Double getMinYValue()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if(!"circularGauge".equals(chart.getType()) &&
         !"semiCircularGauge".equals(chart.getType()) &&
         !"stackedVerticalBar".equals(chart.getType()) &&
         !"stackedHorizontalBar".equals(chart.getType()) &&
         !"stackedArea".equals(chart.getType()) &&
         _largerDataSet)
      {
          return 2000.0;
      }
      return 0.0;
View Full Code Here

    }
 
    @Override
    public String getTitle()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("circularGauge".equals(chart.getType()) ||
         "semiCircularGauge".equals(chart.getType()))
        return "Values in 1000s";
      else
      {
        if(_largerDataSet)
          return "NASDAQ Q4 2005 - Q3 2006";
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.component.core.data.CoreChart

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.