fr.esrf.tangoatk.widget.attribute
Class AttributeMultiChart

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by fr.esrf.tangoatk.widget.util.chart.JLChart
                  extended by fr.esrf.tangoatk.widget.attribute.AttributeMultiChart
All Implemented Interfaces:
IAttributeStateListener, IErrorListener, INumberScalarListener, java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener

public class AttributeMultiChart
extends JLChart
implements INumberScalarListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  JLDataView alarm
           
protected  boolean alarmEnable
           
protected  double alarmLevel
           
protected  javax.swing.JMenuItem aliasItem
           
protected  int axisDisplayMode
           
protected  javax.swing.JMenuItem axisInfoAliasItem
           
protected  javax.swing.JMenuItem axisInfoDeviceNameItem
           
protected  javax.swing.JMenuItem axisInfoFullNameItem
           
protected  javax.swing.JMenuItem axisInfoIndexItem
           
protected  javax.swing.JMenuItem axisInfoLabelItem
           
protected  javax.swing.JMenu axisInfoMenu
           
protected  javax.swing.JMenuItem axisInfoNoDeviceNameItem
           
static int barChart
          int value representing the kind of chart "BarChart"
protected  javax.swing.JMenuItem barChartItem
           
protected  javax.swing.JMenuItem boxItem
           
protected  javax.swing.JMenuItem boxItem2
           
protected  java.awt.Color chartColor
           
protected  boolean chartOnXAxis
           
protected  int chartStyle
           
protected  javax.swing.JMenuItem circleItem
           
protected  javax.swing.JMenuItem circleItem2
           
protected  javax.swing.JMenuItem crossItem
           
protected  javax.swing.JMenuItem crossItem2
           
protected  java.util.Map<INumberScalar,java.util.List<java.lang.Object>> dataViewHash
           
protected  javax.swing.JMenuItem deviceNameItem
           
protected  javax.swing.JMenuItem diamondItem
           
protected  javax.swing.JMenuItem diamondItem2
           
static int DISPLAY_ALIAS
          int value representing the fact that you want to see the attribute's alias in tooltip/X Axis
static int DISPLAY_DEVICE_NAME
          int value representing the fact that you want to see the name of the device to which the attribute belongs in tooltip/X Axis
static int DISPLAY_FULL_NAME
          int value representing the fact that you want to see the attribute's complete name in tooltip (default option)/X Axis
static int DISPLAY_INDEX
          int value representing the fact that you want to see the index of the attribute in X Axis (default option)
static int DISPLAY_LABEL
          int value representing the fact that you want to see the attribute's label in tooltip/X Axis
static int DISPLAY_NAME_NO_DEVICE
          int value representing the fact that you want to see the attribute's name without its device name in tooltip/X Axis
protected  int displayMode
           
static int dotChart
          int value representing the kind of chart "DotChart"
protected  javax.swing.JMenu dotChartMenu
           
protected  javax.swing.JMenuItem dotItem
           
protected  javax.swing.JMenuItem dotItem2
           
protected  JLDataView fault
           
protected  double faultLevel
           
protected  javax.swing.JMenuItem fullNameItem
           
protected  java.lang.String header
           
protected  boolean highAlarm
           
protected  boolean highFault
           
protected  javax.swing.JMenuItem horizLineItem
           
protected  javax.swing.JMenuItem horizLineItem2
           
protected  javax.swing.JMenuItem labelItem
           
protected  java.lang.String lastConfig
           
protected  javax.swing.JMenuItem linear
           
static int lineChart
          int value representing the kind of chart "LineChart"
protected  javax.swing.JMenu lineChartMenu
           
protected  JLDataView lineView
           
protected  javax.swing.JMenuItem logarithmic
           
protected  int markerStyle
           
protected  AttributeList model
           
protected  javax.swing.JMenu multiChartMenu
           
protected  javax.swing.JMenuItem noDeviceNameItem
           
protected  int refreshingPeriod
           
protected  javax.swing.JMenuItem squareItem
           
protected  javax.swing.JMenuItem squareItem2
           
protected  javax.swing.JMenuItem starItem
           
protected  javax.swing.JMenuItem starItem2
           
protected  javax.swing.JMenu tooltipMenu
           
protected  javax.swing.JMenuItem triangleItem
           
protected  javax.swing.JMenuItem triangleItem2
           
protected  java.lang.String unit
           
protected  javax.swing.JMenuItem vertLineItem
           
protected  javax.swing.JMenuItem vertLineItem2
           
protected  java.lang.String xaxisName
           
protected  javax.swing.JMenu YScale
           
 
Fields inherited from class fr.esrf.tangoatk.widget.util.chart.JLChart
chartMenu, dialogParent, FR_DATE_FORMAT, LABEL_DOWN, LABEL_LEFT, LABEL_RIGHT, LABEL_ROW, LABEL_UP, labelRect, lastDataFileLocation, lastFileFilter, lastSnapshotLocation, maxDisplayDuration, MENU_CHARTPROP, MENU_DATASAVE, MENU_DVPROP, MENU_PRINT, MENU_STAT, MENU_TABLE, modalDialog, noValueString, preferDialog, tableDialog, US_DATE_FORMAT
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AttributeMultiChart()
          Default Constructor
AttributeMultiChart(int chartStyle)
          Constructor
AttributeMultiChart(int chartStyle, int displayMode)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
protected  java.lang.String applySettings(CfFileReader cffilereader)
           
protected  java.lang.String[] buildPanelString(SearchInfo si)
           
 void clearModel()
          Clears the chart
 void errorChange(ErrorEvent arg0)
           
 double getAlarmLevel()
           
 int getAxisDisplayMode()
          Returns an int representing what kind of information about your attribute you can see in X axis.
 java.awt.Color getChartColor()
           
 java.lang.String getChartHeader()
           
 int getChartStyle()
           
 int getDisplayMode()
          Returns an int representing what kind of information about your attribute you can see in tooltip.
 java.lang.String getExtension(java.io.File f)
          getExtension returns the extension of a given file, that is the part after the last `.' in the filename.
 double getFaultLevel()
           
 int getMarkerStyle()
          Returns the marker style style for line chart and dot chart
 int getRefreshingPeriod()
           
 java.lang.String getSettings()
           
 java.lang.String getUnit()
           
 java.lang.String getXaxisName()
           
protected  void initComponents()
           
protected  void initLevels()
           
 boolean isAlarmEnable()
           
 boolean isChartOnXAxis()
           
 boolean isHighAlarm()
           
 boolean isHighFault()
           
protected  void loadPerformed()
           
 java.lang.String loadSetting(java.lang.String s)
          Loads configuration from a file
static void main(java.lang.String[] args)
          Main class, so you can have an example.
protected  void manageLabels()
           
 void numberScalarChange(NumberScalarEvent numberScalarEvent)
           
protected  void prepareName(JLDataView view, INumberScalar scalar)
           
protected  void savePerformed()
           
 void saveSetting(java.lang.String s)
          Saves the configuration of the chart in a file
 void setAlarmEnable(boolean alarmEnable)
           
 void setAlarmLevel(double alarm_level)
           
protected  void setAttributeListAsString(java.lang.String attributeListAsString)
           
 void setAxisDisplayMode(int axisDisplayMode)
          Set what kind of information about your attribute you can see in X axis.
 void setChartColor(java.awt.Color chartColor)
           
 void setChartHeader(java.lang.String header)
           
 void setChartOnXAxis(boolean chartOnXAxis)
           
 void setChartStyle(int style)
          Allows you to choose which kind of chart you want to use
 void setDisplayMode(int displayMode)
          Set what kind of information about your attribute you can see in tooltip.
 void setFaultLevel(double fault_level)
           
 void setHighAlarm(boolean highAlarm)
           
 void setHighFault(boolean highFault)
           
 void setMarkerStyle(int style)
          Sets the marker style for line chart and dot chart
 void setModel(AttributeList attl)
          Sets the attributes this chart will display.
 void setRefreshingPeriod(int refreshingPeriod)
          sets the refreshing period of the associated AttributeList
 void setUnit(java.lang.String unit)
           
 void setWidth(int bar_width)
          Sets the width of the bars of the bar chart
 void setXaxisName(java.lang.String xaxis_name)
           
protected  void showTableAll()
           
 void stateChange(AttributeStateEvent arg0)
           
protected  void updateToolTips()
           
 
Methods inherited from class fr.esrf.tangoatk.widget.util.chart.JLChart
addData, addJLChartActionListener, addMenuItem, addSeparator, addUserAction, applyConfiguration, enterZoom, exitZoom, garbageData, getChartBackground, getConfiguration, getDisplayDuration, getHeader, getHeaderFont, getHelpString, getLabelFont, getLabelPlacement, getMargin, getMaxDisplayDuration, getNoValueString, getTimePrecision, getXAxis, getY1Axis, getY2Axis, isLabelVisible, isPaintAxisFirst, isXAxisOnBottom, isZoomed, loadDataFile, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, printGraph, refreshTableSingle, removeDataView, removeJLChartActionListener, removeMenuItem, removeUserAction, reset, reset, setBackground, setChartBackground, setDisplayDuration, setHeader, setHeaderColor, setHeaderFont, setHeaderVisible, setJLChartListener, setLabelFont, setLabelPlacement, setLabelVisible, setMargin, setMaxDisplayDuration, setNoValueString, setPaintAxisFirst, setParentForTableDialog, setParentForTableDialog, setPreferDialogForTable, setTimePrecision, setXAxisOnBottom, showDataOptionDialog, showOptionDialog, showPanel, unselectAll
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

header

protected java.lang.String header

xaxisName

protected java.lang.String xaxisName

unit

protected java.lang.String unit

alarmLevel

protected double alarmLevel

faultLevel

protected double faultLevel

alarm

protected JLDataView alarm

fault

protected JLDataView fault

lineView

protected JLDataView lineView

lastConfig

protected java.lang.String lastConfig

refreshingPeriod

protected int refreshingPeriod

dataViewHash

protected java.util.Map<INumberScalar,java.util.List<java.lang.Object>> dataViewHash

model

protected AttributeList model

chartStyle

protected int chartStyle

markerStyle

protected int markerStyle

chartColor

protected java.awt.Color chartColor

alarmEnable

protected boolean alarmEnable

chartOnXAxis

protected boolean chartOnXAxis

highAlarm

protected boolean highAlarm

highFault

protected boolean highFault

multiChartMenu

protected javax.swing.JMenu multiChartMenu

barChartItem

protected javax.swing.JMenuItem barChartItem

dotChartMenu

protected javax.swing.JMenu dotChartMenu

dotItem

protected javax.swing.JMenuItem dotItem

boxItem

protected javax.swing.JMenuItem boxItem

triangleItem

protected javax.swing.JMenuItem triangleItem

diamondItem

protected javax.swing.JMenuItem diamondItem

starItem

protected javax.swing.JMenuItem starItem

vertLineItem

protected javax.swing.JMenuItem vertLineItem

horizLineItem

protected javax.swing.JMenuItem horizLineItem

crossItem

protected javax.swing.JMenuItem crossItem

circleItem

protected javax.swing.JMenuItem circleItem

squareItem

protected javax.swing.JMenuItem squareItem

lineChartMenu

protected javax.swing.JMenu lineChartMenu

dotItem2

protected javax.swing.JMenuItem dotItem2

boxItem2

protected javax.swing.JMenuItem boxItem2

triangleItem2

protected javax.swing.JMenuItem triangleItem2

diamondItem2

protected javax.swing.JMenuItem diamondItem2

starItem2

protected javax.swing.JMenuItem starItem2

vertLineItem2

protected javax.swing.JMenuItem vertLineItem2

horizLineItem2

protected javax.swing.JMenuItem horizLineItem2

crossItem2

protected javax.swing.JMenuItem crossItem2

circleItem2

protected javax.swing.JMenuItem circleItem2

squareItem2

protected javax.swing.JMenuItem squareItem2

tooltipMenu

protected javax.swing.JMenu tooltipMenu

fullNameItem

protected javax.swing.JMenuItem fullNameItem

noDeviceNameItem

protected javax.swing.JMenuItem noDeviceNameItem

labelItem

protected javax.swing.JMenuItem labelItem

aliasItem

protected javax.swing.JMenuItem aliasItem

deviceNameItem

protected javax.swing.JMenuItem deviceNameItem

axisInfoMenu

protected javax.swing.JMenu axisInfoMenu

axisInfoFullNameItem

protected javax.swing.JMenuItem axisInfoFullNameItem

axisInfoNoDeviceNameItem

protected javax.swing.JMenuItem axisInfoNoDeviceNameItem

axisInfoLabelItem

protected javax.swing.JMenuItem axisInfoLabelItem

axisInfoAliasItem

protected javax.swing.JMenuItem axisInfoAliasItem

axisInfoDeviceNameItem

protected javax.swing.JMenuItem axisInfoDeviceNameItem

axisInfoIndexItem

protected javax.swing.JMenuItem axisInfoIndexItem

YScale

protected javax.swing.JMenu YScale

logarithmic

protected javax.swing.JMenuItem logarithmic

linear

protected javax.swing.JMenuItem linear

displayMode

protected int displayMode

axisDisplayMode

protected int axisDisplayMode

barChart

public static final int barChart
int value representing the kind of chart "BarChart"

See Also:
Constant Field Values

dotChart

public static final int dotChart
int value representing the kind of chart "DotChart"

See Also:
Constant Field Values

lineChart

public static final int lineChart
int value representing the kind of chart "LineChart"

See Also:
Constant Field Values

DISPLAY_FULL_NAME

public static final int DISPLAY_FULL_NAME
int value representing the fact that you want to see the attribute's complete name in tooltip (default option)/X Axis

See Also:
Constant Field Values

DISPLAY_NAME_NO_DEVICE

public static final int DISPLAY_NAME_NO_DEVICE
int value representing the fact that you want to see the attribute's name without its device name in tooltip/X Axis

See Also:
Constant Field Values

DISPLAY_LABEL

public static final int DISPLAY_LABEL
int value representing the fact that you want to see the attribute's label in tooltip/X Axis

See Also:
Constant Field Values

DISPLAY_ALIAS

public static final int DISPLAY_ALIAS
int value representing the fact that you want to see the attribute's alias in tooltip/X Axis

See Also:
Constant Field Values

DISPLAY_DEVICE_NAME

public static final int DISPLAY_DEVICE_NAME
int value representing the fact that you want to see the name of the device to which the attribute belongs in tooltip/X Axis

See Also:
Constant Field Values

DISPLAY_INDEX

public static final int DISPLAY_INDEX
int value representing the fact that you want to see the index of the attribute in X Axis (default option)

See Also:
Constant Field Values
Constructor Detail

AttributeMultiChart

public AttributeMultiChart()
Default Constructor


AttributeMultiChart

public AttributeMultiChart(int chartStyle)
Constructor

Parameters:
chartStyle - the kind of chart chosen
See Also:
barChart, dotChart, lineChart

AttributeMultiChart

public AttributeMultiChart(int chartStyle,
                           int displayMode)
Constructor

Parameters:
chartStyle - the kind of chart chosen
displayMode - the kind of information you want to display in tooltip
See Also:
barChart, dotChart, lineChart, DISPLAY_FULL_NAME, DISPLAY_NAME_NO_DEVICE, DISPLAY_LABEL, DISPLAY_ALIAS, DISPLAY_DEVICE_NAME
Method Detail

getMarkerStyle

public int getMarkerStyle()
Returns the marker style style for line chart and dot chart

Returns:
int representing the marker style

setMarkerStyle

public void setMarkerStyle(int style)
Sets the marker style for line chart and dot chart

See Also:
MARKER_DOT, MARKER_BOX, MARKER_TRIANGLE, MARKER_DIAMOND, MARKER_STAR, MARKER_VERT_LINE, MARKER_HORIZ_LINE, MARKER_CROSS, MARKER_CIRCLE, MARKER_SQUARE

initComponents

protected void initComponents()

buildPanelString

protected java.lang.String[] buildPanelString(SearchInfo si)
Overrides:
buildPanelString in class JLChart

initLevels

protected void initLevels()

isChartOnXAxis

public boolean isChartOnXAxis()

setChartOnXAxis

public void setChartOnXAxis(boolean chartOnXAxis)

setModel

public void setModel(AttributeList attl)
Sets the attributes this chart will display. It calls to clearmodel() first

Parameters:
attl - the list of Attribute as an AttributeList

clearModel

public void clearModel()
Clears the chart


setWidth

public void setWidth(int bar_width)
Sets the width of the bars of the bar chart

Parameters:
bar_width - the width

isHighAlarm

public boolean isHighAlarm()

setHighAlarm

public void setHighAlarm(boolean highAlarm)

isHighFault

public boolean isHighFault()

setHighFault

public void setHighFault(boolean highFault)

numberScalarChange

public void numberScalarChange(NumberScalarEvent numberScalarEvent)
Specified by:
numberScalarChange in interface INumberScalarListener

getChartStyle

public int getChartStyle()
Returns:
an int representing the kind of chart used.
See Also:
barChart, dotChart, lineChart

setChartStyle

public void setChartStyle(int style)
Allows you to choose which kind of chart you want to use

Parameters:
style - the kind of chart you want to use
See Also:
barChart, dotChart, lineChart

stateChange

public void stateChange(AttributeStateEvent arg0)
Specified by:
stateChange in interface IAttributeStateListener

errorChange

public void errorChange(ErrorEvent arg0)
Specified by:
errorChange in interface IErrorListener

getAlarmLevel

public double getAlarmLevel()
Returns:
Returns the alarm_level.

setAlarmLevel

public void setAlarmLevel(double alarm_level)
Parameters:
alarm_level - The alarm_level to set. Set Double.MAX_VALUE to remove it.

getFaultLevel

public double getFaultLevel()
Returns:
Returns the fault_level.

setFaultLevel

public void setFaultLevel(double fault_level)
Parameters:
fault_level - The fault_level to set. Set Double.MAX_VALUE to remove it.

getChartHeader

public java.lang.String getChartHeader()
Returns:
Returns the header.

setChartHeader

public void setChartHeader(java.lang.String header)
Parameters:
header - The header to set.

getUnit

public java.lang.String getUnit()
Returns:
Returns the unit.

setUnit

public void setUnit(java.lang.String unit)
Parameters:
unit - The unit to set.

getXaxisName

public java.lang.String getXaxisName()
Returns:
Returns the xaxis_name.

setXaxisName

public void setXaxisName(java.lang.String xaxis_name)
Parameters:
xaxis_name - The xaxis_name to set.

getSettings

public java.lang.String getSettings()
Returns:
The String that will be written in a configuration file

saveSetting

public void saveSetting(java.lang.String s)
Saves the configuration of the chart in a file

Parameters:
s - the file path

loadSetting

public java.lang.String loadSetting(java.lang.String s)
Loads configuration from a file

Parameters:
s - the file path
Returns:
a String that is empty if the loading is all right, or contains an error message otherwise

getRefreshingPeriod

public int getRefreshingPeriod()
Returns:
the refreshing period of the associated AttributeList

setRefreshingPeriod

public void setRefreshingPeriod(int refreshingPeriod)
sets the refreshing period of the associated AttributeList

Parameters:
refreshingPeriod - the refreshing period

applySettings

protected java.lang.String applySettings(CfFileReader cffilereader)

setAttributeListAsString

protected void setAttributeListAsString(java.lang.String attributeListAsString)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class JLChart
See Also:
fr.esrf.tangoatk.widge.util.chart.JLChart#actionPerformed(ActionEvent)

showTableAll

protected void showTableAll()
Overrides:
showTableAll in class JLChart

loadPerformed

protected void loadPerformed()

savePerformed

protected void savePerformed()

getExtension

public java.lang.String getExtension(java.io.File f)
getExtension returns the extension of a given file, that is the part after the last `.' in the filename.

Overrides:
getExtension in class JLChart
Parameters:
f - a File value
Returns:
a String value

getDisplayMode

public int getDisplayMode()
Returns an int representing what kind of information about your attribute you can see in tooltip.

Returns:
An int representing what kind of information about your attribute you can see in tooltip.
See Also:
DISPLAY_FULL_NAME, DISPLAY_NAME_NO_DEVICE, DISPLAY_LABEL, DISPLAY_ALIAS, DISPLAY_DEVICE_NAME

setDisplayMode

public void setDisplayMode(int displayMode)
Set what kind of information about your attribute you can see in tooltip.

Parameters:
displayMode - an int representing the kind of information about your attribute you can see in tooltip.
See Also:
DISPLAY_FULL_NAME, DISPLAY_NAME_NO_DEVICE, DISPLAY_LABEL, DISPLAY_ALIAS, DISPLAY_DEVICE_NAME

getAxisDisplayMode

public int getAxisDisplayMode()
Returns an int representing what kind of information about your attribute you can see in X axis.

Returns:
An int representing what kind of information about your attribute you can see in X axis.
See Also:
DISPLAY_FULL_NAME, DISPLAY_NAME_NO_DEVICE, DISPLAY_LABEL, DISPLAY_ALIAS, DISPLAY_DEVICE_NAME, DISPLAY_INDEX

setAxisDisplayMode

public void setAxisDisplayMode(int axisDisplayMode)
Set what kind of information about your attribute you can see in X axis.

Parameters:
axisDisplayMode - an int representing the kind of information about your attribute you can see in X axis.
See Also:
DISPLAY_FULL_NAME, DISPLAY_NAME_NO_DEVICE, DISPLAY_LABEL, DISPLAY_ALIAS, DISPLAY_DEVICE_NAME, DISPLAY_INDEX

updateToolTips

protected void updateToolTips()

prepareName

protected void prepareName(JLDataView view,
                           INumberScalar scalar)

manageLabels

protected void manageLabels()

getChartColor

public java.awt.Color getChartColor()
Returns:
Returns the chartColor.

setChartColor

public void setChartColor(java.awt.Color chartColor)
Parameters:
chartColor - The chartColor to set.

isAlarmEnable

public boolean isAlarmEnable()
Returns:
Returns the alarmEnable.

setAlarmEnable

public void setAlarmEnable(boolean alarmEnable)
Parameters:
alarmEnable - The alarmEnable to set.

main

public static void main(java.lang.String[] args)
Main class, so you can have an example. You can put your own attribute names in parameter