Class cern.lhcias.csgui.TagsView.CanvasMTagsView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----cern.lhcias.csgui.TagsView.CanvasMTagsView

public class CanvasMTagsView
extends Canvas
implements TagsView


TagsView type implemented: CanvasMTagsView

This class which is a "TagsView" is a simple base class for a TagsView which display
multiple tags. This class is intended to be extended (see example class BarGraphView)

Events:
As any TagsView, it may fires TagcCliked and Alarm events.

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

See Also:
TagsView

Variable Index

 o alarmAdapter
 
 o cM
 
 o ovadapter
 
 o tadapter
 
 o tagArrays
 
 o TagstoView
 
 o tcadapter
 
 o TYPE
 

Constructor Index

 o CanvasMTagsView()
 

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 drawVerticalTicks(Graphics, int, int, int, int, int, double, double, int, boolean, Color, Color)
draws the ticks on the vertical axis in the current color.
 o fireTagClickedEvent(String)
 
 o getComponentNb()
 
 o getComponentsList()
 
 o getDoubles()
creates an array of Double containing the values of the Tags.
 o getLimits()
get the min and max from all tags in TagstoView.
 o getLocalTagNames()
 
 o getPossibleTypes()
 
 o getTagNames()
 
 o getTags()
creates a Vector containing the Tags themselves.
 o getType()
 
 o instantiate(TagArrays, String, TagChangeAdapter, TagClickedAdapter, OpenViewAdapter, configurationMgr, AlarmAdapter)
 
 o receiveTagChange(TagChangeEvent)
 
 o removeAlarmListener(AlarmListener)
 
 o removeOpenViewListener(OpenViewListener)
 
 o removeTag(String)
 
 o removeTag(TagsView)
 
 o removeTag(Vector)
 
 o removeTagClickedListener(TagClickedListener)
 
 o setConfig(String)
 
 o setProperty(String, String, String)
 
 o toString()
 

Variables

 o TYPE

 public String TYPE

 o tadapter

 public TagChangeAdapter tadapter

 o TagstoView

 public Vector TagstoView

 o tagArrays

 public TagArrays tagArrays

 o tcadapter

 public TagClickedAdapter tcadapter

 o ovadapter

 public OpenViewAdapter ovadapter

 o cM

 public configurationMgr cM

 o alarmAdapter

 public AlarmAdapter alarmAdapter

Constructors

 o CanvasMTagsView

 public CanvasMTagsView()

Methods

 o addTagClickedListener

 public synchronized void addTagClickedListener(TagClickedListener listener)

 o removeTagClickedListener

 public synchronized void removeTagClickedListener(TagClickedListener listener)

 o fireTagClickedEvent

 public void fireTagClickedEvent(String name)

 o addAlarmListener

 public synchronized void addAlarmListener(AlarmListener listener)

 o removeAlarmListener

 public synchronized void removeAlarmListener(AlarmListener 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 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)

 o drawVerticalTicks

 public void drawVerticalTicks(Graphics g,
                               int x_origin,
                               int y_origin,
                               int width,
                               int height,
                               int nb_ticks,
                               double min,
                               double max,
                               int tick_size,
                               boolean grid_on,
                               Color axisColor,
                               Color gridColor)
draws the ticks on the vertical axis in the current color. It doesn't draw the axis itself. If grid_on is true, lines will be drawn from x_origin-tick_size to x_origin+width else lines will be drawn from x_origin-tick_size to x_origin

 o getTags

 public Vector getTags()
creates a Vector containing the Tags themselves.

 o getDoubles

 public double[] getDoubles()
creates an array of Double containing the values of the Tags.

 o getLimits

 public double[] getLimits()
get the min and max from all tags in TagstoView. The values are rounded to drawable limits.