00001
00002
00003
00004
00005
00006
00007 package oh;
00008
00013 public abstract class ISHistogram extends is.Info {
00014 public static final int IS_FIXED = 0;
00015 public static final int IS_VARIABLE = 1;
00016
00020 public String is_title;
00021
00025 public String[] is_annotations;
00026
00030 public ISAxis[] is_axis;
00031
00035 public double[] is_bins;
00036
00040 public double[] is_errors;
00041
00045 public double[] is_pluserrors;
00046
00050 public double[] is_minuserrors;
00051
00052 protected ISHistogram( String type ) {
00053 super( type );
00054 }
00055
00056 public void publishGuts( is.Ostream out ) {
00057 if (is_axis == null) initialize();
00058 super.publishGuts( out );
00059 out.put( is_title ).put( is_annotations );
00060 for (int i=0; i<is_axis.length; i++) is_axis[i].publishGuts(out);
00061 out.put( is_bins ).put( is_errors ).put( is_pluserrors ).put( is_minuserrors );
00062 }
00063
00064 public void refreshGuts( is.Istream in ){
00065 super.refreshGuts( in );
00066 is_title = in.getString( );
00067 is_annotations = in.getStringArray( );
00068 for (int i=0; i<is_axis.length; i++) is_axis[i].refreshGuts(in);
00069 is_bins = in.getDoubleArray( );
00070 is_errors = in.getDoubleArray( );
00071 is_pluserrors = in.getDoubleArray( );
00072 is_minuserrors = in.getDoubleArray( );
00073 }
00074
00078 protected void initialize() {
00079 }
00080
00081 }
00082