FreeHEP API
Version v1.2

hep.graphics.heprep.xml.test
Class SAXTest

java.lang.Object
  |
  +--hep.graphics.heprep.xml.test.SAXTest
All Implemented Interfaces:
HepRepIteratorListener

public class SAXTest
extends Object
implements HepRepIteratorListener

Version:
$Id: SAXTest.java,v 1.16 2002/12/13 23:03:21 duns Exp $
Author:
M.Donszelmann

Field Summary
static String cvsId
           
 
Constructor Summary
SAXTest()
           
 
Method Summary
static void main(String[] args)
           
 void removeAttribute(String key)
          Called if attribute key is removed from the attribute set.
 void run(String fname)
           
 void setAttribute(String key, boolean value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(String key, Color value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(String key, double value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(String key, int value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(String key, long value, int showLabel)
          Called if attribute key changes its value.
 void setAttribute(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
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Constructor Detail

SAXTest

public SAXTest()
Method Detail

run

public void run(String fname)
         throws Exception
Exception

setAttribute

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

Specified by:
setAttribute in interface HepRepIteratorListener
Parameters:
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(String key,
                         Color value,
                         int showLabel)
Description copied from interface: HepRepIteratorListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepIteratorListener
Parameters:
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(String key,
                         long value,
                         int showLabel)
Description copied from interface: HepRepIteratorListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepIteratorListener
Parameters:
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

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

Specified by:
setAttribute in interface HepRepIteratorListener
Parameters:
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(String key,
                         double value,
                         int showLabel)
Description copied from interface: HepRepIteratorListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepIteratorListener
Parameters:
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

setAttribute

public void setAttribute(String key,
                         boolean value,
                         int showLabel)
Description copied from interface: HepRepIteratorListener
Called if attribute key changes its value.

Specified by:
setAttribute in interface HepRepIteratorListener
Parameters:
key - name of the changed attribute.
value - value of the changed attribute.
showLabel - value of showLabel.

removeAttribute

public void removeAttribute(String key)
Description copied from interface: HepRepIteratorListener
Called if attribute key is removed from the attribute set.

Specified by:
removeAttribute in interface HepRepIteratorListener
Parameters:
key - name of the removed attribute.

main

public static void main(String[] args)

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.