Ontimize 5.2072EN

com.ontimize.gui.field
Interface IChartComponent

All Known Implementing Classes:
Chart, Chart_0_9, Chart_1_0

public interface IChartComponent

Interface to implement by all chart components independent of version of JFreeChart that it is being used. At this moment, Ontimize provides two different implementations for component Chart:

Author:
Imatia Innovation

Method Summary
 boolean checkXYDataset(java.lang.String colX, java.lang.String[] colY)
          Checks data for each column of horizontal axis.
 java.lang.Object createChart()
          Creates and returns the chart created.
 void deleteData()
           
 java.lang.Object getAttribute()
           
 java.awt.Paint getBackgroundPaint()
          Gets the paint of background of charts.
 java.awt.Paint getBackgroundPlotPaint()
          Gets the paint of background in plot of charts.
 java.lang.Object getCategoryDataset(java.lang.String colX, java.lang.String[] colsY, java.lang.String[] seriesNames)
          Returns the CategoryDataset.
 java.lang.Object getCategoryDataset(java.lang.String colX, java.lang.String[] colsY, java.lang.String[] seriesNames, int[] operations)
          Returns the CategoryDataset.
 java.lang.Object getCategoryDataset(java.lang.String colX, java.lang.String colY, int operation)
          Returns the CategoryDataset.
 javax.swing.JPanel getChartComponentPanel()
          Gets the component with chart panel is placed.
 java.lang.Object getChartPanel()
          Defines method that returns where chart panel is drawed
 java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
           
 java.lang.String getLabelComponentText()
          Gets the label component text.
 java.lang.Object getPieDataset(java.lang.String colX, java.lang.String colY)
          Returns the PieDataset.
 java.lang.Object getPieDataset(java.lang.String colX, java.lang.String colY, int operation)
          Returns the PieDataset.
 javax.swing.JScrollPane getScrollPane()
          Gets the scroll pane where is placed.
 int getSQLDataType()
           
 java.util.Vector getTextsToTranslate()
           
 java.lang.Object getValue()
          Gets value.
 java.lang.Object getXYDataset(java.lang.String colX, java.lang.String[] colY, java.lang.String[] series)
          Returns the XYDataset.
 void initPermissions()
           
 boolean isEmpty()
           
 boolean isHidden()
           
 boolean isModifiable()
           
 boolean isModified()
           
 boolean isRequired()
           
 boolean isRestricted()
           
 void setBackgroundPaint(java.awt.Paint backgroundPaint)
          Sets the paint of background of charts.
 void setBackgroundPlotPaint(java.awt.Paint backgroundPlotPaint)
          Sets the paint of background in plot of charts.
 void setChartPreferredSize(int w, int h)
          Sets the preferred size for chart.
 void setComponentLocale(java.util.Locale l)
           
 void setModifiable(boolean modifiable)
           
 void setRequired(boolean required)
           
 void setResourceBundle(java.util.ResourceBundle resources)
           
 void setSerieVisible(java.lang.String s, boolean visible)
          Sets the serie visible
 void setType(int type)
          Sets the type of chart.
 void setValue(java.lang.Object value)
          Sets value.
 void setYAxis(java.lang.String[] yAxis)
          Set YAxis.
 void updateChart()
          Method called to update data of chart.
 

Method Detail

getChartPanel

public java.lang.Object getChartPanel()
Defines method that returns where chart panel is drawed

Returns:
the chart panel

createChart

public java.lang.Object createChart()
Creates and returns the chart created.

Returns:
the chart created

updateChart

public void updateChart()
Method called to update data of chart.


getCategoryDataset

public java.lang.Object getCategoryDataset(java.lang.String colX,
                                           java.lang.String[] colsY,
                                           java.lang.String[] seriesNames)
Returns the CategoryDataset.


getCategoryDataset

public java.lang.Object getCategoryDataset(java.lang.String colX,
                                           java.lang.String[] colsY,
                                           java.lang.String[] seriesNames,
                                           int[] operations)
Returns the CategoryDataset.


getCategoryDataset

public java.lang.Object getCategoryDataset(java.lang.String colX,
                                           java.lang.String colY,
                                           int operation)
Returns the CategoryDataset.


getPieDataset

public java.lang.Object getPieDataset(java.lang.String colX,
                                      java.lang.String colY)
Returns the PieDataset.


getPieDataset

public java.lang.Object getPieDataset(java.lang.String colX,
                                      java.lang.String colY,
                                      int operation)
Returns the PieDataset.


getXYDataset

public java.lang.Object getXYDataset(java.lang.String colX,
                                     java.lang.String[] colY,
                                     java.lang.String[] series)
Returns the XYDataset.


checkXYDataset

public boolean checkXYDataset(java.lang.String colX,
                              java.lang.String[] colY)
Checks data for each column of horizontal axis.

Parameters:
colX - the X col
colY - Array with names of Y cols
Returns:
true when data are correct

getBackgroundPaint

public java.awt.Paint getBackgroundPaint()
Gets the paint of background of charts.

Returns:
the background paint

setBackgroundPaint

public void setBackgroundPaint(java.awt.Paint backgroundPaint)
Sets the paint of background of charts.

Parameters:
backgroundPaint - the background paint to set

getBackgroundPlotPaint

public java.awt.Paint getBackgroundPlotPaint()
Gets the paint of background in plot of charts.

Returns:
the background paint for plots

setBackgroundPlotPaint

public void setBackgroundPlotPaint(java.awt.Paint backgroundPlotPaint)
Sets the paint of background in plot of charts.


setChartPreferredSize

public void setChartPreferredSize(int w,
                                  int h)
Sets the preferred size for chart.

Parameters:
w - width
h - height

setSerieVisible

public void setSerieVisible(java.lang.String s,
                            boolean visible)
Sets the serie visible

Parameters:
s - the serie to set visible
visible - condition of visibility

setYAxis

public void setYAxis(java.lang.String[] yAxis)
Set YAxis.

Parameters:
yAxis - Array with YAxis

getValue

public java.lang.Object getValue()
Gets value.

Returns:
the value

getChartComponentPanel

public javax.swing.JPanel getChartComponentPanel()
Gets the component with chart panel is placed.

Returns:
the chart component

getScrollPane

public javax.swing.JScrollPane getScrollPane()
Gets the scroll pane where is placed.

Returns:
the chart component

setValue

public void setValue(java.lang.Object value)
Sets value.

Parameters:
value - the value to set

getLabelComponentText

public java.lang.String getLabelComponentText()
Gets the label component text.

Returns:
the label component text.

setType

public void setType(int type)
Sets the type of chart.

Parameters:
type - the type of chart

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resources)

getAttribute

public java.lang.Object getAttribute()

getConstraints

public java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)

isModified

public boolean isModified()

isRequired

public boolean isRequired()

isEmpty

public boolean isEmpty()

deleteData

public void deleteData()

setRequired

public void setRequired(boolean required)

getSQLDataType

public int getSQLDataType()

isHidden

public boolean isHidden()

setModifiable

public void setModifiable(boolean modifiable)

isModifiable

public boolean isModifiable()

isRestricted

public boolean isRestricted()

initPermissions

public void initPermissions()

getTextsToTranslate

public java.util.Vector getTextsToTranslate()

setComponentLocale

public void setComponentLocale(java.util.Locale l)

Ontimize