|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.HBook
public class HBook
This class is used to book histograms for writing and reading. It can read any input with histograms defined by an external XML file. In particular, it can read histogram files generated by FORTRAN or C++ external programs. Look at
Constructor Summary | |
---|---|
HBook()
Initialise HBook. |
|
HBook(java.lang.String description)
Initialise HBook. |
Method Summary | |
---|---|
void |
add(int id,
H1D h1d)
add H1D histogram to HBook |
void |
add(int id,
H2D h2d)
add H2D histogram to HBook |
void |
add(int id,
P1D p1d)
add P1D histogram to HBook |
void |
clear()
Remove all objects from the HBook |
H1D[] |
getAllH1D()
Get array with all H1D histograms. |
H2D[] |
getAllH2D()
Get array with all H2D histograms. |
P1D[] |
getAllP1D()
Get array with all P1D containers. |
H1D |
getH1D(int id)
Get H1D histogram from the index (key) |
H2D |
getH2D(int id)
Get H2D histogram from the index (key) ID |
int[] |
getKeysH1D()
Get keys of all known H1D histograms. |
int[] |
getKeysH2D()
Get keys of all known H2D histograms. |
int[] |
getKeysP1D()
Get keys of all known P1D containers. |
P1D |
getP1D(int id)
Get P1D object from the index (key) |
java.lang.String |
listAll()
List all objects inside HBook |
java.lang.String |
listH1D()
List all known H1D histograms. |
java.lang.String |
listH2D()
List all known H1D histograms. |
java.lang.String |
listP1D()
List all known P1D objects. |
void |
read(java.lang.String file)
Read external XML file with all objects (H1D, H2D, P1D) |
void |
write(java.lang.String file)
write external XML file with all HBook objects (H1D, H2D, P1D) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HBook(java.lang.String description)
description
- description.public HBook()
Method Detail |
---|
public void write(java.lang.String file)
file
- output file namepublic void read(java.lang.String file)
file
- input file namepublic H1D getH1D(int id)
id
- index or key of histogram
public P1D getP1D(int id)
id
- index or key of P1D
public java.lang.String listH1D()
public java.lang.String listP1D()
public int[] getKeysH1D()
public int[] getKeysP1D()
public H1D[] getAllH1D()
public P1D[] getAllP1D()
public H2D[] getAllH2D()
public int[] getKeysH2D()
public java.lang.String listH2D()
public java.lang.String listAll()
public H2D getH2D(int id)
id
- index
public void add(int id, H1D h1d)
id
- key to be assignedh1d
- H1D histogram to be addedpublic void add(int id, H2D h2d)
id
- key to be assignedh2d
- H2D histogram to be addedpublic void add(int id, P1D p1d)
id
- key to be assignedp1d
- P1D histogram to be addedpublic void clear()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |