org.chorem.pollen.ui.actions.io
Class GenerateChart

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by org.chorem.pollen.ui.actions.PollenActionSupport
              extended by org.chorem.pollen.ui.actions.io.GenerateChart
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.nuiton.topia.framework.TopiaTransactionAware

public class GenerateChart
extends PollenActionSupport

Action to generate a chart given the values (and optional subtitles).

Since:
1.3
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  org.jfree.chart.JFreeChart chart
           
protected  int height
           
static int PIE
          diagramme de type PIE.
static int PIE3D
          diagramme de type PIE3D.
static int RING
          diagramme de type RING.
protected  List<String> subtitles
           
protected  String title
           
protected  int type
           
protected  List<String> values
           
protected  int width
           
 
Fields inherited from class org.chorem.pollen.ui.actions.PollenActionSupport
SAFE_LANGUAGES, serviceContext, serviceFactory, transaction
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
GenerateChart()
           
 
Method Summary
 String execute()
           
 org.jfree.chart.JFreeChart getChart()
           
 int getHeight()
           
 int getWidth()
           
 void setHeight(int height)
           
 void setSubtitles(List<String> subtitles)
           
 void setTitle(String title)
           
 void setType(int type)
           
 void setValues(List<String> values)
           
 void setWidth(int width)
           
 
Methods inherited from class org.chorem.pollen.ui.actions.PollenActionSupport
addFlashError, addFlashMessage, addFlashWarning, clearFlashErrors, clearFlashMessages, getActionContext, getApplicationUrl, getApplicationVersion, getConfiguration, getCurrentDateTime, getCurrentUrl, getFlashErrors, getFlashMessages, getFlashWarnings, getJqueryTheme, getPageLogo, getPollenApplicationContext, getPollenSession, getPollenUserAccount, getSafeLanguage, getServiceContext, getServiceFactory, getSkin, getTransaction, getVoteCountingTypeHelp, hasAnyErrors, hasFlashErrors, hasFlashMessages, hasFlashWarnings, isUserAdmin, isUserLoggued, newService, setTransaction
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIE

public static final int PIE
diagramme de type PIE.

See Also:
Constant Field Values

PIE3D

public static final int PIE3D
diagramme de type PIE3D.

See Also:
Constant Field Values

RING

public static final int RING
diagramme de type RING.

See Also:
Constant Field Values

type

protected int type

values

protected List<String> values

subtitles

protected List<String> subtitles

width

protected int width

height

protected int height

title

protected String title

chart

protected org.jfree.chart.JFreeChart chart
Constructor Detail

GenerateChart

public GenerateChart()
Method Detail

setType

public void setType(int type)

setValues

public void setValues(List<String> values)

setSubtitles

public void setSubtitles(List<String> subtitles)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

setTitle

public void setTitle(String title)

getChart

public org.jfree.chart.JFreeChart getChart()

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception


Copyright © 2009-2012 CodeLutin. All Rights Reserved.