edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat Class Reference

The format used to display values of a metric. More...

Inheritance diagram for edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat:
Collaboration graph
[legend]

List of all members.

Classes

class  Style

Public Member Functions

 MetricValueFormat (boolean showValue, int valueKind, int valueFieldWidth, int valueFractionDigits, boolean showAnnotation, int annotationKind, int annotationFieldWidth, int annotationFractionDigits, String annotationFormatPattern, int separatorWidth)
void setShowValue (boolean showValue)
boolean getShowValue ()
void setValueKind (int kind)
int getValueKind ()
void setValueFieldWidth (int fieldWidth)
int getValueFieldWidth ()
void setValueFractionDigits (int fractionDigits)
int getValueFractionDigits ()
void setShowAnnotation (boolean showAnnotation)
boolean getShowAnnotation ()
void setAnnotationKind (int kind)
int getAnnotationKind ()
void setAnnotationFieldWidth (int fieldWidth)
int getAnnotationFieldWidth ()
void setAnnotationFractionDigits (int fractionDigits)
int getAnnotationFractionDigits ()
void setSeparatorWidth (int separatorWidth)
int getSeparatorWidth ()
int getFormattedLength ()
String format (MetricValue value)
 format the value without the information from MetricValue.

Static Public Attributes

static int FIXED = 1
 Indicates that a number should be displayed in fixed point format.
static int FLOAT = 2
 Indicates that a number should be displayed in floating point ("scientific") format.

Protected Member Functions

String formatDouble (double d, DecimalFormat formatter, Style style)
void clearFormatters ()
void ensureFormatters ()

Protected Attributes

boolean showValue
 Whether to show the actual value.
boolean showAnnotation
 Whether to show the annotation value.
Style valueStyle
 The number format to be used for the actual value.
Style annotationStyle
 The number format to be used for the annotation value.
String annotationFormatPattern
 The pattern to use when formatting annotation values.
int separatorWidth
 How many space characters separate the metric value and its annotation.
DecimalFormat valueFormatter
 A Java formatter implementing the format specified for actual values.
DecimalFormat annotationFormatter
 A Java formatter implementing the format specified for the metrics annotation.
String separator
 A sequence of spaces used to separate the metric value and its annotation.

Detailed Description

The format used to display values of a metric.

Definition at line 35 of file MetricValueFormat.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.MetricValueFormat ( boolean  showValue,
int  valueKind,
int  valueFieldWidth,
int  valueFractionDigits,
boolean  showAnnotation,
int  annotationKind,
int  annotationFieldWidth,
int  annotationFractionDigits,
String  annotationFormatPattern,
int  separatorWidth 
)

Member Function Documentation

void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.clearFormatters (  )  [protected]
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.ensureFormatters (  )  [protected]
String edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.format ( MetricValue  value  ) 
String edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.formatDouble ( double  d,
DecimalFormat  formatter,
Style  style 
) [protected]
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getAnnotationFieldWidth (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getAnnotationFractionDigits (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getAnnotationKind (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getFormattedLength (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getSeparatorWidth (  ) 
boolean edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getShowAnnotation (  ) 
boolean edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getShowValue (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getValueFieldWidth (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getValueFractionDigits (  ) 
int edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.getValueKind (  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setAnnotationFieldWidth ( int  fieldWidth  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setAnnotationFractionDigits ( int  fractionDigits  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setAnnotationKind ( int  kind  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setSeparatorWidth ( int  separatorWidth  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setShowAnnotation ( boolean  showAnnotation  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setShowValue ( boolean  showValue  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setValueFieldWidth ( int  fieldWidth  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setValueFractionDigits ( int  fractionDigits  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.setValueKind ( int  kind  ) 

Member Data Documentation

Indicates that a number should be displayed in fixed point format.

Definition at line 89 of file MetricValueFormat.java.

Indicates that a number should be displayed in floating point ("scientific") format.

Definition at line 92 of file MetricValueFormat.java.

Referenced by edu.rice.cs.hpc.data.experiment.metric.MetricValueFormat.formatDouble().


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1