Class cern.lhcias.csgui.TagsView.Tagdisplay

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

public class Tagdisplay
extends Canvas
implements TagsView

This class is an implementation of the TagsView interface. It allows to display the
value of a tag or of a dgsl statement. If the value displayed is a tag, then the
behavior of the display depends on the metadata related to the tag (if the value
is outside the limit, it will be shown). Different types of display types are
supported: TEXT_TYPE, LED_TYPE, BAR_TYPE, TREND_TYPE
Only the TEXT_TYPE is allowed when the result of a statement is displayed. In the
other cases, this TagsView is polymorphic: it means that the user may change the type
of the representation by double-clicking on the component.

Events:
As any TagsView, it fires TagcCliked events. This event is sent when the user clicks
in the component.

Configuration:
The configuration is the name of the tag or a dgsl statement


Variable Index

 o BAR_TYPE
 
 o DIAL_TYPE
Not yet implemented
 o LED_TYPE
 
 o TEXT_TYPE
 
 o TREND_TYPE
 

Constructor Index

 o Tagdisplay()
 

Method Index

 o addAlarmListener(AlarmListener)
 
 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 paint(Graphics)
 
 o receiveTagChange(TagChangeEvent)
 
 o removeAlarmListener(AlarmListener)
 
 o removeOpenViewListener(OpenViewListener)
 
 o removeTag(String)
 
 o removeTag(TagsView)
 
 o removeTag(Vector)
 
 o removeTagClickedListener(TagClickedListener)
 
 o setConfig(String)
The configuration is the name of the tag or a dgsl statement
 o setProperty(String, String, String)
may be used to change the view type.
 o toString()
The configuration is the name of the tag or a dgsl statement

Variables

 o TEXT_TYPE

 public static final int TEXT_TYPE

 o LED_TYPE

 public static final int LED_TYPE

 o BAR_TYPE

 public static final int BAR_TYPE

 o TREND_TYPE

 public static final int TREND_TYPE

 o DIAL_TYPE

 public static final int DIAL_TYPE
Not yet implemented

Constructors

 o Tagdisplay

 public Tagdisplay()

Methods

 o addTagClickedListener

 public synchronized void addTagClickedListener(TagClickedListener listener)

 o removeTagClickedListener

 public synchronized void removeTagClickedListener(TagClickedListener listener)

 o addOpenViewListener

 public void addOpenViewListener(OpenViewListener listener)

 o removeOpenViewListener

 public void removeOpenViewListener(OpenViewListener listener)

 o receiveTagChange

 public void receiveTagChange(TagChangeEvent tagevent)

 o addAlarmListener

 public synchronized void addAlarmListener(AlarmListener listener)

 o removeAlarmListener

 public synchronized void removeAlarmListener(AlarmListener listener)

 o instantiate

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

 o setConfig

 public void setConfig(String tagname)
The configuration is the name of the tag or a dgsl statement

 o toString

 public String toString()
The configuration is the name of the tag or a dgsl statement
Overrides:
toString in class Component

 o doYouImplement

 public boolean doYouImplement(String type)

 o getPossibleTypes

 public Vector getPossibleTypes()

 o getComponentNb

 public int getComponentNb()

 o getComponentsList

 public Vector getComponentsList()

 o getLocalTagNames

 public Vector getLocalTagNames()

 o getType

 public String getType()

 o getTagNames

 public Vector getTagNames()

 o setProperty

 public void setProperty(String tagname,
                         String Param,
                         String Value)
may be used to change the view type. In that case, Param must hold "DISPLAY_TYPE" and Value must contain one of "TEXT_TYPE","LED_TYPE","BAR_TYPE","TREND_TYPE" .

 o addTag

 public void addTag(String tagname)

 o addTag

 public void addTag(Vector tagNames)

 o addTag

 public void addTag(TagsView TVcomponent)

 o removeTag

 public void removeTag(String tagName)

 o removeTag

 public void removeTag(Vector tagNames)

 o removeTag

 public void removeTag(TagsView TVcomponent)

 o getPreferredSize

 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component

 o paint

 public void paint(Graphics g)
Overrides:
paint in class Canvas