FreeHEP API
Version v1.1

hep.graphics.heprep.streamer
Class StreamerHepRepAttribute

java.lang.Object
  |
  +--hep.graphics.heprep.streamer.StreamerHepRepAttribute
All Implemented Interfaces:
HepRepAttribute, HepRepConstants
Direct Known Subclasses:
StreamerHepRepDefinition, StreamerHepRepInstance, StreamerHepRepPoint

public abstract class StreamerHepRepAttribute
extends Object
implements HepRepAttribute

Version:
$Id: StreamerHepRepAttribute.java,v 1.1 2002/09/18 23:59:58 duns Exp $
Author:
M.Donszelmann

Field Summary
static String cvsId
           
 
Fields inherited from interface hep.graphics.heprep.HepRepConstants
SHOW_DESC, SHOW_EXTRA, SHOW_NAME, SHOW_NONE, SHOW_VALUE, TYPE_BOOLEAN, TYPE_COLOR, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_STRING, TYPE_UNKNOWN
 
Constructor Summary
StreamerHepRepAttribute(HepRepWriter streamer)
           
 
Method Summary
 void addAttValue(HepRepAttValue hepRepAttValue)
          Adds an attValue.
 void addAttValue(String key, boolean value)
          Adds an attValue.
 void addAttValue(String key, boolean value, int showLabel)
          Adds an attValue.
 void addAttValue(String key, Color value)
          Adds a Color attValue.
 void addAttValue(String key, Color value, int showLabel)
          Adds a Color attValue.
 void addAttValue(String key, double value)
          Adds an attValue.
 void addAttValue(String key, double value, int showLabel)
          Adds an attValue.
 void addAttValue(String key, int value)
          Adds an attValue.
 void addAttValue(String key, int value, int showLabel)
          Adds an attValue.
 void addAttValue(String key, String value)
          Adds an attValue.
 void addAttValue(String key, String value, int showLabel)
          Adds an attValue.
 void addAttValue(String name, String value, String type, int showLabel)
           
abstract  HepRepAttValue getAttValue(String name)
          Returns the attValue specified by name.
 HepRepAttValue getAttValueFromNode(String lowerCaseName)
          Returns a named attribute value from this node.
 Collection getAttValuesFromNode()
          Returns a collection of all attribute values from this node.
 HepRepAttValue removeAttValue(String key)
          Remove the attvalue named by key.
 
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

StreamerHepRepAttribute

public StreamerHepRepAttribute(HepRepWriter streamer)
Method Detail

getAttValuesFromNode

public Collection getAttValuesFromNode()
Description copied from interface: HepRepAttribute
Returns a collection of all attribute values from this node.

Specified by:
getAttValuesFromNode in interface HepRepAttribute
Returns:
collection of HepRepAttValues.

addAttValue

public void addAttValue(HepRepAttValue hepRepAttValue)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
hepRepAttValue - to be added.
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        String value)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        int value)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        double value)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        boolean value)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        Color value)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds a Color attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        String value,
                        int showLabel)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
showLabel - show this as label
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        int value,
                        int showLabel)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
showLabel - show this as label
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        double value,
                        int showLabel)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
showLabel - show this as label
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        boolean value,
                        int showLabel)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds an attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
showLabel - show this as label
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String key,
                        Color value,
                        int showLabel)
                 throws IOException
Description copied from interface: HepRepAttribute
Adds a Color attValue.

Specified by:
addAttValue in interface HepRepAttribute
Parameters:
key - name of attValue
value - value of attValue
showLabel - show this as label
Throws:
IOException - only if the value is immediately written to a stream.

addAttValue

public void addAttValue(String name,
                        String value,
                        String type,
                        int showLabel)
                 throws IOException
IOException

getAttValueFromNode

public HepRepAttValue getAttValueFromNode(String lowerCaseName)
Description copied from interface: HepRepAttribute
Returns a named attribute value from this node.

Specified by:
getAttValueFromNode in interface HepRepAttribute
Parameters:
lowerCaseName - name in all lowercase.
Returns:
corresponding HepRepAttValue.

removeAttValue

public HepRepAttValue removeAttValue(String key)
Description copied from interface: HepRepAttribute
Remove the attvalue named by key.

Specified by:
removeAttValue in interface HepRepAttribute
Parameters:
key - name of the attValue to be removed.
Returns:
removed HepRepAttValue, or null if not removed.

getAttValue

public abstract HepRepAttValue getAttValue(String name)
Description copied from interface: HepRepAttribute
Returns the attValue specified by name. This attValue is normally searched on the node itself and then on its type, moving up the typetree.

Specified by:
getAttValue in interface HepRepAttribute
Parameters:
name - of attribute value.
Returns:
attribute value.

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.