fr.esrf.tangoatk.widget.attribute
Class Trend

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by fr.esrf.tangoatk.widget.attribute.Trend
All Implemented Interfaces:
IRefresherListener, IJLChartActionListener, IControlee, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class Trend
extends javax.swing.JPanel
implements IControlee, java.awt.event.ActionListener, IJLChartActionListener, IRefresherListener

A class to monitor multiple scalar attributes.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
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  javax.swing.JMenuItem addXMenuItem
           
protected  javax.swing.JMenuItem addY1MenuItem
           
protected  javax.swing.JMenuItem addY2MenuItem
           
protected  AttributePolledList attList
           
protected  javax.swing.JMenuItem attOptionMenuItem
           
protected  java.util.Map buttonMap
           
protected  javax.swing.JButton cfgButton
           
protected  javax.swing.JMenuItem cfgMenuI
           
static java.lang.String config
          Corresponds to the button "Add new attribute"
protected  javax.swing.JLabel dateLabel
           
protected static java.awt.Color[] defaultColor
           
static int DEVICE_LABEL_ALWAYS
          Device name are always displayed whithin chart label
static int DEVICE_LABEL_AUTO
          Device name are displayed whithin chart label when needed
static int DEVICE_LABEL_NEVER
          Device name are never displayed whithin chart label
protected  javax.swing.JPanel innerPanel
           
static java.lang.String load
          Corresponds to the button "Load configuration"
protected  javax.swing.JButton loadButton
           
protected  javax.swing.JMenuItem loadMenuI
           
protected  javax.swing.JTree mainTree
           
protected  javax.swing.tree.DefaultTreeModel mainTreeModel
           
protected  int minRefreshInterval
           
protected  int minRefreshTrendInterval
           
static java.lang.String option
          Corresponds to the button "Global settings"
protected  javax.swing.JButton optionButton
           
protected  javax.swing.JMenuItem optionMenuI
           
protected  javax.swing.JMenuItem optionMenuItem
           
protected  javax.swing.JToolBar panelToolBar
           
protected  javax.swing.JToolBar panelToolBarTrend
           
protected  javax.swing.JFrame parent
           
protected  javax.swing.JButton refreshButton
           
protected  javax.swing.JMenuItem refreshMenuI
           
protected  javax.swing.JMenuItem removeMenuItem
           
static java.lang.String reset
          Corresponds to the button "Reset trend"
protected  javax.swing.JButton resetButton
           
protected  javax.swing.JMenuItem resetMenuI
           
protected  fr.esrf.tangoatk.widget.attribute.TrendSelectionNode rootNode
           
static java.lang.String save
          Corresponds to the button "Save configuration"
protected  javax.swing.JButton saveButton
           
protected  javax.swing.JMenuItem saveMenuI
           
static int SEL_NONE
          Not selected
static int SEL_X
          Selected on X
static int SEL_Y1
          Selected on Y1
static int SEL_Y2
          Selected on Y2
protected  javax.swing.JMenuItem showtoolMenuI
           
static java.lang.String start
          Corresponds to the button "start monitoring"
protected  javax.swing.JButton startButton
           
protected  javax.swing.JMenuItem startMenuI
           
static java.lang.String stop
          Corresponds to the button "stop monitoring"
protected  javax.swing.JButton stopButton
           
protected  javax.swing.JMenuItem stopMenuI
           
protected  JLChart theGraph
           
protected  javax.swing.JToolBar theToolBar
           
static java.lang.String time
          Corresponds to the button "Set rfresh interval"
protected  javax.swing.JButton timeButton
           
protected  javax.swing.JButton timeButtonTrend
           
protected  javax.swing.JMenuItem timeMenuI
           
protected  javax.swing.JMenuItem timeMenuTrendI
           
protected  javax.swing.JPopupMenu toolMenu
           
protected  javax.swing.JPopupMenu treeMenu
           
protected  javax.swing.JScrollPane treeView
           
static java.lang.String zoom
          Corresponds to the button "Zoom"
protected  javax.swing.JButton zoomButton
           
protected  javax.swing.JMenuItem zoomMenuI
           
 
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
Trend()
          Default constructor.
Trend(javax.swing.JFrame parent)
          Trend constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void actionPerformed(JLChartActionEvent evt)
          Called when the user select a user action (available from contextual chart menu)
 void addAttribute(INumberScalar scalar)
           
 void addAttribute(java.lang.String name)
          addAttribute will add the INumberScalar to the Trend.
 void addToAxis(INumberScalar attribute, int axisSelection, boolean addToModel)
          Adds an attribute to an axis of this trend (or removes the attribute from axis).
 void addToAxis(java.lang.String attributeName, int axisSelection, boolean addToModel)
          Adds an attribute to an axis of this trend (or removes the attribute from axis).
 void clearModel()
          Free any allocated resource and stop refreshing.
 void disableButton(java.lang.String buttonName)
          Disables the button corresponding to the string
 void enableButton(java.lang.String buttonName)
          Enables the button corresponding to the string
 boolean getActionState(JLChartActionEvent evt)
          Called when the the action name starting with 'chk' (displayed as check box menu item) and each time the chart menu is shown.
 int getAxisForAttribute(java.lang.String attributeName)
          Returns the axis associated with an attribute
 JLChart getChart()
          Returns a handle to the chart
 JLDataView getDataViewForAttribute(java.lang.String attributeName)
          Returns the dataview associated with an attribute (null if no dataview is associated with the attribute)
 double getMaxDisplayDuration()
           
protected  int getMinRefreshInterval()
           
protected  int getMinRefreshTrendInterval()
           
 AttributePolledList getModel()
           
 int getRefreshIntervalTrend()
           
 double getSamplingRate()
          Deprecated. no longer used (has no FX)
 java.lang.String getSettings()
          returns the configuration as string.
 int getTimePrecision()
           
 java.lang.String getTitle()
          Returns the frame_title field read in the config file.
 int getXAxisLength()
          Deprecated. no longer used (has no FX)
 boolean isButtonBarVisible()
          Returns true only if toolbar is visible
 boolean isDateVisible()
          Returns true only if datelabel is visible
 boolean isLegendVisible()
          Deprecated. use getChart()
 boolean isListVisible()
          Deprecated. no longer used (has no FX)
 boolean isLogarithmicScale()
          Deprecated. use getChart()
 boolean isManageIntervalTrend()
           
 boolean isSelectionTreeVisible()
          Returns true only if the selection tree is visible
 int isShowingDeviceNames()
          Determines whether or not device names (within chart labels) are visible.
 boolean isShowingNames()
          Deprecated. no longer used (has no FX)
 java.lang.String loadSetting(java.lang.String filename)
          Load graph settings.
static void main(java.lang.String[] args)
           
 void ok()
          ok will be called when the component is visible and the user presses the OK button on the ButtonBar Expected behaviour is to set all the values on the model the widget is representing followed by a getRootPane().getParent().setVisible(false);
 void refreshStep()
          Called by an entityList refresher afer models update.
 void refreshTrend()
           
 void removeAttribute(INumberScalar scalar)
           
 void resetTrend()
           
 void saveSetting(java.lang.String filename)
          Save settings.
 void setButtonBarVisible(boolean b)
          Displays or hides the toolbar
 void setDateVisible(boolean b)
          Displays or hides the date label
 void setLegendVisible(boolean b)
          Deprecated. use getChart()
 void setListVisible(boolean b)
          Deprecated. no longer used (has no FX)
 void setLogarithmicScale(boolean logarithmic)
          Deprecated. use getChart()
 void setManageIntervalTrend()
           
 void setMaxDisplayDuration(double maxDisplay)
           
protected  void setMinRefreshInterval(int minRefreshInterval)
           
protected  void setMinRefreshTrendInterval(int minRefreshTrendInterval)
           
 void setModel(AttributePolledList list)
          This setModel which takes an AttributePolledList as a parameter, will just add the attributes in the list to the list viewer in the Trend.
 void setModel(INumberScalar scalar)
          Deprecated. use addAttribute instead.
 void setRefreshIntervalTrend(int refreshIntervalTrend)
           
 void setSamplingRate(double rate)
          Deprecated. no longer used (has no FX)
 void setSelectionTreeVisible(boolean b)
          Displays or hides the selection tree
 java.lang.String setSetting(java.lang.String txt)
          Apply a configuration.
 void setShowingDeviceNames(int mode)
          Determines whether or not device names (within chart labels) are visible.
 void setShowingNames(boolean b)
          Deprecated. no longer used (has no FX)
 void setTimePrecision(int timePrecision)
           
 void setXAxisLength(int length)
          Deprecated. no longer used (has no FX)
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, setBackground, 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
 
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

SEL_NONE

public static final int SEL_NONE
Not selected

See Also:
Constant Field Values

SEL_X

public static final int SEL_X
Selected on X

See Also:
Constant Field Values

SEL_Y1

public static final int SEL_Y1
Selected on Y1

See Also:
Constant Field Values

SEL_Y2

public static final int SEL_Y2
Selected on Y2

See Also:
Constant Field Values

DEVICE_LABEL_AUTO

public static final int DEVICE_LABEL_AUTO
Device name are displayed whithin chart label when needed

See Also:
Constant Field Values

DEVICE_LABEL_NEVER

public static final int DEVICE_LABEL_NEVER
Device name are never displayed whithin chart label

See Also:
Constant Field Values

DEVICE_LABEL_ALWAYS

public static final int DEVICE_LABEL_ALWAYS
Device name are always displayed whithin chart label

See Also:
Constant Field Values

defaultColor

protected static java.awt.Color[] defaultColor

parent

protected javax.swing.JFrame parent

theToolBar

protected javax.swing.JToolBar theToolBar

toolMenu

protected javax.swing.JPopupMenu toolMenu

optionButton

protected javax.swing.JButton optionButton

optionMenuI

protected javax.swing.JMenuItem optionMenuI

stopButton

protected javax.swing.JButton stopButton

stopMenuI

protected javax.swing.JMenuItem stopMenuI

startButton

protected javax.swing.JButton startButton

startMenuI

protected javax.swing.JMenuItem startMenuI

loadButton

protected javax.swing.JButton loadButton

loadMenuI

protected javax.swing.JMenuItem loadMenuI

saveButton

protected javax.swing.JButton saveButton

saveMenuI

protected javax.swing.JMenuItem saveMenuI

zoomButton

protected javax.swing.JButton zoomButton

zoomMenuI

protected javax.swing.JMenuItem zoomMenuI

timeButton

protected javax.swing.JButton timeButton

timeMenuI

protected javax.swing.JMenuItem timeMenuI

cfgButton

protected javax.swing.JButton cfgButton

cfgMenuI

protected javax.swing.JMenuItem cfgMenuI

resetButton

protected javax.swing.JButton resetButton

resetMenuI

protected javax.swing.JMenuItem resetMenuI

showtoolMenuI

protected javax.swing.JMenuItem showtoolMenuI

innerPanel

protected javax.swing.JPanel innerPanel

dateLabel

protected javax.swing.JLabel dateLabel

treeView

protected javax.swing.JScrollPane treeView

mainTree

protected javax.swing.JTree mainTree

mainTreeModel

protected javax.swing.tree.DefaultTreeModel mainTreeModel

rootNode

protected fr.esrf.tangoatk.widget.attribute.TrendSelectionNode rootNode

treeMenu

protected javax.swing.JPopupMenu treeMenu

addXMenuItem

protected javax.swing.JMenuItem addXMenuItem

addY1MenuItem

protected javax.swing.JMenuItem addY1MenuItem

addY2MenuItem

protected javax.swing.JMenuItem addY2MenuItem

removeMenuItem

protected javax.swing.JMenuItem removeMenuItem

optionMenuItem

protected javax.swing.JMenuItem optionMenuItem

attOptionMenuItem

protected javax.swing.JMenuItem attOptionMenuItem

theGraph

protected JLChart theGraph

attList

protected AttributePolledList attList

buttonMap

protected java.util.Map buttonMap

start

public static final java.lang.String start
Corresponds to the button "start monitoring"

See Also:
Constant Field Values

stop

public static final java.lang.String stop
Corresponds to the button "stop monitoring"

See Also:
Constant Field Values

save

public static final java.lang.String save
Corresponds to the button "Save configuration"

See Also:
Constant Field Values

load

public static final java.lang.String load
Corresponds to the button "Load configuration"

See Also:
Constant Field Values

zoom

public static final java.lang.String zoom
Corresponds to the button "Zoom"

See Also:
Constant Field Values

time

public static final java.lang.String time
Corresponds to the button "Set rfresh interval"

See Also:
Constant Field Values

option

public static final java.lang.String option
Corresponds to the button "Global settings"

See Also:
Constant Field Values

config

public static final java.lang.String config
Corresponds to the button "Add new attribute"

See Also:
Constant Field Values

reset

public static final java.lang.String reset
Corresponds to the button "Reset trend"

See Also:
Constant Field Values

minRefreshInterval

protected int minRefreshInterval

panelToolBarTrend

protected javax.swing.JToolBar panelToolBarTrend

panelToolBar

protected javax.swing.JToolBar panelToolBar

timeButtonTrend

protected javax.swing.JButton timeButtonTrend

refreshButton

protected javax.swing.JButton refreshButton

timeMenuTrendI

protected javax.swing.JMenuItem timeMenuTrendI

refreshMenuI

protected javax.swing.JMenuItem refreshMenuI

minRefreshTrendInterval

protected int minRefreshTrendInterval
Constructor Detail

Trend

public Trend(javax.swing.JFrame parent)
Trend constructor.

Parameters:
parent - Parent frame

Trend

public Trend()
Default constructor.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

actionPerformed

public void actionPerformed(JLChartActionEvent evt)
Description copied from interface: IJLChartActionListener
Called when the user select a user action (available from contextual chart menu)

Specified by:
actionPerformed in interface IJLChartActionListener
Parameters:
evt - Event object (containing acion name and state)
See Also:
JLChart.addUserAction(java.lang.String)

getActionState

public boolean getActionState(JLChartActionEvent evt)
Description copied from interface: IJLChartActionListener
Called when the the action name starting with 'chk' (displayed as check box menu item) and each time the chart menu is shown. if several listener handle the same action, the result will be a logical and of all results.

Specified by:
getActionState in interface IJLChartActionListener
Parameters:
evt - Event object (containing acion name)
See Also:
JLChart.addUserAction(java.lang.String)

getTimePrecision

public int getTimePrecision()

setTimePrecision

public void setTimePrecision(int timePrecision)

refreshStep

public void refreshStep()
Description copied from interface: IRefresherListener
Called by an entityList refresher afer models update.

Specified by:
refreshStep in interface IRefresherListener

clearModel

public void clearModel()
Free any allocated resource and stop refreshing. The internal attribute list is released if it has been created using addAttribute() or setSettings().


setModel

public void setModel(AttributePolledList list)
This setModel which takes an AttributePolledList as a parameter, will just add the attributes in the list to the list viewer in the Trend. It will not add any of the attributes to the Trend

Parameters:
list - a AttributePolledList value

addAttribute

public void addAttribute(java.lang.String name)
addAttribute will add the INumberScalar to the Trend. Additional calls to addAttribute will add more INumberScalars to the trend.

Parameters:
name - Attribute name

addAttribute

public void addAttribute(INumberScalar scalar)

removeAttribute

public void removeAttribute(INumberScalar scalar)

setModel

public void setModel(INumberScalar scalar)
Deprecated. use addAttribute instead.

setModel

Parameters:
scalar - a fr.esrf.tangoatk.core.INumberScalar value

getModel

public AttributePolledList getModel()

getSettings

public java.lang.String getSettings()
returns the configuration as string.

See Also:
setSetting(java.lang.String)

setSetting

public java.lang.String setSetting(java.lang.String txt)
Apply a configuration.

Parameters:
txt - Configuration text.
Returns:
An error string or An empty string when succes
See Also:
getSettings()

saveSetting

public void saveSetting(java.lang.String filename)
Save settings.

Parameters:
filename - file to be saved.

loadSetting

public java.lang.String loadSetting(java.lang.String filename)
Load graph settings.

Parameters:
filename - file to be read
Returns:
An error string or An empty string when succes

getTitle

public java.lang.String getTitle()
Returns the frame_title field read in the config file.


setLegendVisible

public void setLegendVisible(boolean b)
Deprecated. use getChart()


isLegendVisible

public boolean isLegendVisible()
Deprecated. use getChart()


setSamplingRate

public void setSamplingRate(double rate)
Deprecated. no longer used (has no FX)


getSamplingRate

public double getSamplingRate()
Deprecated. no longer used (has no FX)


setXAxisLength

public void setXAxisLength(int length)
Deprecated. no longer used (has no FX)


getXAxisLength

public int getXAxisLength()
Deprecated. no longer used (has no FX)


setLogarithmicScale

public void setLogarithmicScale(boolean logarithmic)
Deprecated. use getChart()


isLogarithmicScale

public boolean isLogarithmicScale()
Deprecated. use getChart()


setListVisible

public void setListVisible(boolean b)
Deprecated. no longer used (has no FX)


isListVisible

public boolean isListVisible()
Deprecated. no longer used (has no FX)


setShowingNames

public void setShowingNames(boolean b)
Deprecated. no longer used (has no FX)


isShowingNames

public boolean isShowingNames()
Deprecated. no longer used (has no FX)


setShowingDeviceNames

public void setShowingDeviceNames(int mode)
Determines whether or not device names (within chart labels) are visible.

Parameters:
mode - Device name display mode
See Also:
DEVICE_LABEL_AUTO, DEVICE_LABEL_NEVER, DEVICE_LABEL_ALWAYS, isShowingDeviceNames()

isShowingDeviceNames

public int isShowingDeviceNames()
Determines whether or not device names (within chart labels) are visible.

See Also:
setShowingDeviceNames(int)

setButtonBarVisible

public void setButtonBarVisible(boolean b)
Displays or hides the toolbar

Parameters:
b - Visible flag

isButtonBarVisible

public boolean isButtonBarVisible()
Returns true only if toolbar is visible

Returns:
Visible flag

setDateVisible

public void setDateVisible(boolean b)
Displays or hides the date label

Parameters:
b - Visible flag

isDateVisible

public boolean isDateVisible()
Returns true only if datelabel is visible

Returns:
Visible flag

setSelectionTreeVisible

public void setSelectionTreeVisible(boolean b)
Displays or hides the selection tree

Parameters:
b - Visible flag

isSelectionTreeVisible

public boolean isSelectionTreeVisible()
Returns true only if the selection tree is visible


getChart

public JLChart getChart()
Returns a handle to the chart

Returns:
Chart handle

ok

public void ok()
Description copied from interface: IControlee
ok will be called when the component is visible and the user presses the OK button on the ButtonBar Expected behaviour is to set all the values on the model the widget is representing followed by a getRootPane().getParent().setVisible(false);

Specified by:
ok in interface IControlee
See Also:
ButtonBar

disableButton

public void disableButton(java.lang.String buttonName)
Disables the button corresponding to the string


enableButton

public void enableButton(java.lang.String buttonName)
Enables the button corresponding to the string


addToAxis

public void addToAxis(java.lang.String attributeName,
                      int axisSelection,
                      boolean addToModel)
Adds an attribute to an axis of this trend (or removes the attribute from axis).

Parameters:
attributeName - The name of the attribute
axisSelection - The axis. Can be SEL_X (x axis), SEL_Y1 (y1 axis), SEL_Y2 (y2 axis) or SEL_NONE (removes attribute from axis)
addToModel - A boolean to say wheather the attribute has to be added in model or not. If true and the attribute is not in model, the attribute is added in the trend model.
See Also:
SEL_X, SEL_Y1, SEL_Y2, SEL_NONE

addToAxis

public void addToAxis(INumberScalar attribute,
                      int axisSelection,
                      boolean addToModel)
Adds an attribute to an axis of this trend (or removes the attribute from axis).

Parameters:
attribute - The attribute
axisSelection - The axis. Can be SEL_X (x axis), SEL_Y1 (y1 axis), SEL_Y2 (y2 axis) or SEL_NONE (removes attribute from axis)
addToModel - A boolean to say wheather the attribute has to be added in model or not. If true and the attribute is not in model, the attribute is added in the trend model.
See Also:
SEL_X, SEL_Y1, SEL_Y2, SEL_NONE

getAxisForAttribute

public int getAxisForAttribute(java.lang.String attributeName)
Returns the axis associated with an attribute

Parameters:
attributeName - The name of the attribute
Returns:
The axis associated with the attribute the value can be:
  • SEL_X (x axis)
  • SEL_Y1 (y1 axis)
  • SEL_Y2 (y2 axis)
  • SEL_NONE (no axis, default value)
See Also:
SEL_X, SEL_Y1, SEL_Y2, SEL_NONE

getDataViewForAttribute

public JLDataView getDataViewForAttribute(java.lang.String attributeName)
Returns the dataview associated with an attribute (null if no dataview is associated with the attribute)

Parameters:
attributeName - The name of the attribute
Returns:
The dataview associated with the attribute (null if no dataview is associated with the attribute)

setMaxDisplayDuration

public void setMaxDisplayDuration(double maxDisplay)

getMaxDisplayDuration

public double getMaxDisplayDuration()

getMinRefreshInterval

protected int getMinRefreshInterval()

setMinRefreshInterval

protected void setMinRefreshInterval(int minRefreshInterval)

resetTrend

public void resetTrend()

getMinRefreshTrendInterval

protected int getMinRefreshTrendInterval()

setMinRefreshTrendInterval

protected void setMinRefreshTrendInterval(int minRefreshTrendInterval)

getRefreshIntervalTrend

public int getRefreshIntervalTrend()

setRefreshIntervalTrend

public void setRefreshIntervalTrend(int refreshIntervalTrend)

isManageIntervalTrend

public boolean isManageIntervalTrend()

setManageIntervalTrend

public void setManageIntervalTrend()

refreshTrend

public void refreshTrend()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception