FreeHEP API
Version current

hep.graphics.heprep
Class HepRepAttributeAdapter

java.lang.Object
  extended byhep.graphics.heprep.HepRepAttributeAdapter
All Implemented Interfaces:
HepRepAttributeListener

public class HepRepAttributeAdapter
extends Object
implements HepRepAttributeListener

HepRepAttributeAdapter. The implementor is called back for changes of attributes while using the HepRepIterator to iterate over all the HepRepInstances.

Author:
Mark Donszelmann
Source Code:
HepRepAttributeAdapter.java

Constructor Summary
HepRepAttributeAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HepRepAttributeAdapter

public HepRepAttributeAdapter()
Method Detail

setAttribute

public void setAttribute(HepRepInstance instance,
                         String key,
                         String value,
                         String lowerCaseValue,
                         int showLabel)
Description copied from interface: HepRepAttributeListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepAttributeListener
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)
Description copied from interface: HepRepAttributeListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepAttributeListener
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)
Description copied from interface: HepRepAttributeListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepAttributeListener
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)
Description copied from interface: HepRepAttributeListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepAttributeListener
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)
Description copied from interface: HepRepAttributeListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepAttributeListener
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)
Description copied from interface: HepRepAttributeListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepAttributeListener
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)
Description copied from interface: HepRepAttributeListener
Called if attribute key is removed from the attribute set.

Specified by:
removeAttribute in interface HepRepAttributeListener
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.