Class cern.lhcias.csgui.TagsView.ChartView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----cern.lhcias.csgui.TagsView.ChartView

public class ChartView
extends Panel
implements TagsView


public class ChartView extends Panel implements TagsView,JCPickListener

TagsView type implemented: ChartView

This class which is a "TagsView" draws the trend curves of the values of rtdb tags.
It is possible to add tags to trend by calling the addTag method or by setting
the configuration.
When a new tag is added, the chart fetches the tag's history in the local buffer.
When the user clicks on a trend curve, the closest value and the tag's name is
displayed.

Events:
As any TagsView, it fires TagcCliked events. This event is sent when the user clicks
on a trend curve.

Configuration:
The configuration is a string containing a list of tag names separated by
commas (ex: level1,PT215,TT141).

See Also:
TagsView

Constructor Index

 o ChartView()
 

Method Index

 o addAlarmListener(AlarmListener)
 
 o addMouseListener(MouseListener)
 
 o addOpenViewListener(OpenViewListener)
 
 o addTag(String)
 
 o addTag(TagsView)
 
 o addTag(Vector)
 
 o addTagClickedListener(TagClickedListener)
 
 o doYouImplement(String)
 
 o getComponentNb()
 
 o getComponentsList()
 
 o getLocalTagNames()
 
 o getPossibleTypes()
 
 o getPreferredSize()
 
 o getTagNames()
 
 o getType()
 
 o instantiate(TagArrays, String, TagChangeAdapter, TagClickedAdapter, OpenViewAdapter, configurationMgr, AlarmAdapter)
 
 o pick(JCPickEvent)
 
 o receiveTagChange(TagChangeEvent)
 
 o removeAlarmListener(AlarmListener)
 
 o removeOpenViewListener(OpenViewListener)
 
 o removeTag(String)
 
 o removeTag(TagsView)
 
 o removeTag(Vector)
 
 o removeTagClickedListener(TagClickedListener)
 
 o setBounds(int, int, int, int)
 
 o setConfig(String)
 
 o setProperty(String, String, String)
 
 o toString()
 

Constructors

 o ChartView

 public ChartView()

Methods

 o pick

 public void pick(JCPickEvent e)

 o setBounds

 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
Overrides:
setBounds in class Component

 o getPreferredSize

 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container

 o addTagClickedListener

 public synchronized void addTagClickedListener(TagClickedListener listener)

 o removeTagClickedListener

 public synchronized void removeTagClickedListener(TagClickedListener listener)

 o removeOpenViewListener

 public void removeOpenViewListener(OpenViewListener listener)

 o addOpenViewListener

 public void addOpenViewListener(OpenViewListener listener)

 o addMouseListener

 public void addMouseListener(MouseListener cMouse)
Overrides:
addMouseListener in class Component

 o addAlarmListener

 public void addAlarmListener(AlarmListener listener)

 o removeAlarmListener

 public void removeAlarmListener(AlarmListener listener)

 o setProperty

 public void setProperty(String tagName,
                         String tagProperty,
                         String propertyValue)

 o getComponentNb

 public int getComponentNb()

 o getComponentsList

 public Vector getComponentsList()

 o doYouImplement

 public boolean doYouImplement(String type)

 o getPossibleTypes

 public Vector getPossibleTypes()

 o getType

 public String getType()

 o removeTag

 public void removeTag(String tagName)

 o removeTag

 public void removeTag(Vector tagNames)

 o removeTag

 public void removeTag(TagsView TVcomponent)

 o addTag

 public void addTag(String tagName)

 o addTag

 public void addTag(Vector tagNames)

 o addTag

 public void addTag(TagsView TVcomponent)

 o setConfig

 public void setConfig(String config)

 o toString

 public String toString()
Overrides:
toString in class Component

 o getTagNames

 public Vector getTagNames()

 o getLocalTagNames

 public Vector getLocalTagNames()

 o instantiate

 public void instantiate(TagArrays TA,
                         String configname,
                         TagChangeAdapter adapter,
                         TagClickedAdapter cadapter,
                         OpenViewAdapter opadapter,
                         configurationMgr cm,
                         AlarmAdapter aA)

 o receiveTagChange

 public void receiveTagChange(TagChangeEvent tagevent)