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

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


    }
 
    @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

    }
 
    @Override
    public String getSubTitle()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("circularGauge".equals(chart.getType()) ||
         "semiCircularGauge".equals(chart.getType()) || _largerDataSet)
        return null;
      else
        return "SubTitle";
    }
View Full Code Here

    }
 
    @Override
    public String getFootNote()
    {
      CoreChart chart = (CoreChart)_editorBean.getComponent();
      if("circularGauge".equals(chart.getType()) ||
         "semiCircularGauge".equals(chart.getType()) || _largerDataSet)
        return null;
      else
        return "FootNote";
    }
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

  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

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.