hep.graphics.heprep
Interface HepRepIterator

All Superinterfaces:
Iterator

public interface HepRepIterator
extends Iterator

HepRepIterator interface.

Author:
Mark Donszelmann

Method Summary
 void addHepRepAttributeListener(String name, HepRepAttributeListener listener)
          Adds a listener to be informed about attribute changes while iterating.
 void addHepRepFrameListener(HepRepFrameListener listener)
          Adds a listener to be informed about attribute changes while iterating.
 boolean drawAsFrame()
          Returns true if the current instance, just delivered by nextInstance(), is to be drawn as a frame.
 boolean hasNext()
          Signals if there is a next instance to iterate to.
 HepRepInstance nextInstance()
          Returns next instance.
 void removeHepRepAttributeListener(String name, HepRepAttributeListener listener)
          Removes a listener.
 void removeHepRepFrameListener(HepRepFrameListener listener)
          Removes a listener.
 
Methods inherited from interface java.util.Iterator
next, remove
 

Method Detail

hasNext

boolean hasNext()
Signals if there is a next instance to iterate to.

Specified by:
hasNext in interface Iterator
Returns:
true if next() can be called.

nextInstance

HepRepInstance nextInstance()
Returns next instance.

Returns:
next HepRepInstance.

addHepRepAttributeListener

void addHepRepAttributeListener(String name,
                                HepRepAttributeListener listener)
Adds a listener to be informed about attribute changes while iterating.

Parameters:
name - attribute name to register a listener for; use null to listen to all attributes
listener - to be added.

removeHepRepAttributeListener

void removeHepRepAttributeListener(String name,
                                   HepRepAttributeListener listener)
Removes a listener.

Parameters:
name - attribute name to unregister for, use null for the "all attribute" listener
listener - to be removed.

addHepRepFrameListener

void addHepRepFrameListener(HepRepFrameListener listener)
Adds a listener to be informed about attribute changes while iterating.

Parameters:
listener - to be added.

removeHepRepFrameListener

void removeHepRepFrameListener(HepRepFrameListener listener)
Removes a listener.

Parameters:
listener - to be removed.

drawAsFrame

boolean drawAsFrame()
Returns true if the current instance, just delivered by nextInstance(), is to be drawn as a frame.

Returns:
draw current instance as a frame


Copyright 2000-2007 FreeHEP. All Rights Reserved.