com.boylesoftware.cb2.util
Class StatsGraph.ScaleDescriptor

java.lang.Object
  extended bycom.boylesoftware.cb2.util.StatsGraph.ScaleDescriptor
Enclosing class:
StatsGraph

protected static final class StatsGraph.ScaleDescriptor
extends java.lang.Object

Descriptor of a horizontal scale.


Field Summary
 java.text.DateFormat dateFormat
          Format for scale labels.
 int labelWidth
          Maximum possible width in pixels of one label.
 long stepMs
          Scale step in milliseconds.
 
Constructor Summary
StatsGraph.ScaleDescriptor(long stepMs, java.text.DateFormat dateFormat, int labelWidth)
          Constructs a scale descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stepMs

public final long stepMs
Scale step in milliseconds.


dateFormat

public final java.text.DateFormat dateFormat
Format for scale labels.


labelWidth

public final int labelWidth
Maximum possible width in pixels of one label.

Constructor Detail

StatsGraph.ScaleDescriptor

public StatsGraph.ScaleDescriptor(long stepMs,
                                  java.text.DateFormat dateFormat,
                                  int labelWidth)
Constructs a scale descriptor.

Parameters:
stepMs - scale step in milliseconds.
dateFormat - format for scale labels.
labelWidth - maximum possible width in pixels of one label.


Copyright © 2002,2003,2004 - Boyle Software, Inc.