FreeHEP API
Version current

hep.graphics.heprep
Interface HepRepAttributeListener

All Known Implementing Classes:
HepRepAttributeAdapter

public interface HepRepAttributeListener

HepRepAttributeListener interface. The implementor is called back for changes of attributes while using the HepRepIterator to iterate over all the HepRepInstances. All names are lowercased.

Author:
Mark Donszelmann
Source Code:
HepRepAttributeListener.java

Method Summary
 void removeAttribute(HepRepInstance instance, String key)
          Called if attribute key is removed from the attribute set.
 void setAttribute(HepRepInstance instance, String key, boolean value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(HepRepInstance instance, String key, Color value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(HepRepInstance instance, String key, double value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(HepRepInstance instance, String key, int value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(HepRepInstance instance, String key, long value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(HepRepInstance instance, String key, String value, String lowerCaseValue, int showLabel)
          Called if attribute key changes its value.
 

Method Detail

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         String value,
                         String lowerCaseValue,
                         int showLabel)
Called if attribute key changes its value.

Parameters:
instance - instance for which this attribute is set.
key - name of the changed attribute.
value - value of the changed attribute.
lowerCaseValue - lower case value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         Color value,
                         int showLabel)
Called if attribute key changes its value.

Parameters:
instance - instance for which this attribute is set.
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         long value,
                         int showLabel)
Called if attribute key changes its value.

Parameters:
instance - instance for which this attribute is set.
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         int value,
                         int showLabel)
Called if attribute key changes its value.

Parameters:
instance - instance for which this attribute is set.
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         double value,
                         int showLabel)
Called if attribute key changes its value.

Parameters:
instance - instance for which this attribute is set.
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         boolean value,
                         int showLabel)
Called if attribute key changes its value.

Parameters:
instance - instance for which this attribute is set.
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

removeAttribute

public void removeAttribute(HepRepInstance instance,
                            String key)
Called if attribute key is removed from the attribute set.

Parameters:
instance - instance for which this attribute is set.
key - name of the removed attribute.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.