|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.graphics.heprep.ref.DefaultHepRepIterator
Fast iterator, which allows for iteration of all HepRepInstances in a HepRepInstanceTree or for iteration of a specific layer. It also features a callback to a HepRepListener to signal changes in attributes.
| Constructor Summary | |
DefaultHepRepIterator(List instanceTrees)
Creates a HepRepIterator for the given list of InstanceTrees. |
|
DefaultHepRepIterator(List instanceTrees,
List layers)
Creates a HepRepIterator for the given list of InstanceTrees and set of layers. |
|
DefaultHepRepIterator(List instanceTrees,
List layers,
boolean iterateFrames)
Creates a HepRepIterator for the given list of InstanceTrees and set of layers. |
|
DefaultHepRepIterator(List instanceTrees,
List layers,
Set types,
boolean iterateFrames)
Creates a HepRepIterator for the given list of InstanceTrees and set of layers. |
|
| Method Summary | |
void |
addHepRepAttributeListener(String name,
HepRepAttributeListener l)
Add a listener to be informed about a certain attribute's changes while the iteration is ongoing. |
void |
addHepRepFrameListener(HepRepFrameListener l)
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()
Prepares the next instance and returns true if exists. |
Object |
next()
|
HepRepInstance |
nextInstance()
Returns next instance. |
void |
remove()
Removes the current instance, however this is not permitted. |
void |
removeHepRepAttributeListener(String name,
HepRepAttributeListener l)
Remove a listener for a certain attribute. |
void |
removeHepRepFrameListener(HepRepFrameListener l)
Removes a listener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultHepRepIterator(List instanceTrees)
instanceTrees - to be iterated over.
public DefaultHepRepIterator(List instanceTrees,
List layers)
instanceTrees - to be iterated over.layers - to be used in iteration.
public DefaultHepRepIterator(List instanceTrees,
List layers,
boolean iterateFrames)
instanceTrees - to be iterated over.layers - to be used in iteration.iterateFrames - iterate separately over a frame layer for each layer.
public DefaultHepRepIterator(List instanceTrees,
List layers,
Set types,
boolean iterateFrames)
instanceTrees - to be iterated over.layers - to be used in iteration.types - to be used in iteration.iterateFrames - iterate separately over a frame layer for each layer.| Method Detail |
public void addHepRepAttributeListener(String name,
HepRepAttributeListener l)
addHepRepAttributeListener in interface HepRepIteratorname - attribute namel - listener to be added.
public void removeHepRepAttributeListener(String name,
HepRepAttributeListener l)
removeHepRepAttributeListener in interface HepRepIteratorname - attribute namel - listener to be removed.public void addHepRepFrameListener(HepRepFrameListener l)
HepRepIterator
addHepRepFrameListener in interface HepRepIteratorl - to be added.public void removeHepRepFrameListener(HepRepFrameListener l)
HepRepIterator
removeHepRepFrameListener in interface HepRepIteratorl - to be removed.public HepRepInstance nextInstance()
HepRepIterator
nextInstance in interface HepRepIteratorpublic Object next()
next in interface Iteratorpublic boolean hasNext()
hasNext in interface HepRepIteratorpublic boolean drawAsFrame()
drawAsFrame in interface HepRepIterator
public void remove()
throws UnsupportedOperationException
remove in interface IteratorUnsupportedOperationException - in all cases.
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||