java.lang.Object | +----java.awt.Component | +----java.awt.Canvas | +----cern.lhcias.csgui.TagsView.Tagdisplay
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
public static final int TEXT_TYPE
public static final int LED_TYPE
public static final int BAR_TYPE
public static final int TREND_TYPE
public static final int DIAL_TYPE
public Tagdisplay()
public synchronized void addTagClickedListener(TagClickedListener listener)
public synchronized void removeTagClickedListener(TagClickedListener listener)
public void addOpenViewListener(OpenViewListener listener)
public void removeOpenViewListener(OpenViewListener listener)
public void receiveTagChange(TagChangeEvent tagevent)
public synchronized void addAlarmListener(AlarmListener listener)
public synchronized void removeAlarmListener(AlarmListener listener)
public void instantiate(TagArrays TA, String tagname, TagChangeAdapter tadapter, TagClickedAdapter adapter, OpenViewAdapter opadapter, configurationMgr cm, AlarmAdapter aA)
public void setConfig(String tagname)
public String toString()
public boolean doYouImplement(String type)
public Vector getPossibleTypes()
public int getComponentNb()
public Vector getComponentsList()
public Vector getLocalTagNames()
public String getType()
public Vector getTagNames()
public void setProperty(String tagname, String Param, String Value)
public void addTag(String tagname)
public void addTag(Vector tagNames)
public void addTag(TagsView TVcomponent)
public void removeTag(String tagName)
public void removeTag(Vector tagNames)
public void removeTag(TagsView TVcomponent)
public Dimension getPreferredSize()
public void paint(Graphics g)