public class PeriodAxisLabelInfo
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
PeriodAxis.| Modifier and Type | Field and Description |
|---|---|
private java.text.DateFormat |
dateFormat
The date formatter.
|
static java.awt.Paint |
DEFAULT_DIVIDER_PAINT
The default divider paint.
|
static java.awt.Stroke |
DEFAULT_DIVIDER_STROKE
The default divider stroke.
|
static java.awt.Font |
DEFAULT_FONT
The default font.
|
static org.jfree.ui.RectangleInsets |
DEFAULT_INSETS
The default insets.
|
static java.awt.Paint |
DEFAULT_LABEL_PAINT
The default label paint.
|
private java.awt.Paint |
dividerPaint
The paint used to draw the dividers.
|
private java.awt.Stroke |
dividerStroke
The stroke used to draw the dividers.
|
private boolean |
drawDividers
A flag that controls whether or not dividers are visible.
|
private java.awt.Font |
labelFont
The label font.
|
private java.awt.Paint |
labelPaint
The label paint.
|
private org.jfree.ui.RectangleInsets |
padding
Controls the gaps around the band.
|
private java.lang.Class |
periodClass
The subclass of
RegularTimePeriod to use for this band. |
private static long |
serialVersionUID
For serialization.
|
| Constructor and Description |
|---|
PeriodAxisLabelInfo(java.lang.Class periodClass,
java.text.DateFormat dateFormat)
Creates a new instance.
|
PeriodAxisLabelInfo(java.lang.Class periodClass,
java.text.DateFormat dateFormat,
org.jfree.ui.RectangleInsets padding,
java.awt.Font labelFont,
java.awt.Paint labelPaint,
boolean drawDividers,
java.awt.Stroke dividerStroke,
java.awt.Paint dividerPaint)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of the object.
|
RegularTimePeriod |
createInstance(java.util.Date millisecond,
java.util.TimeZone zone)
Deprecated.
As of 1.0.13, use the method that specifies the locale also.
|
RegularTimePeriod |
createInstance(java.util.Date millisecond,
java.util.TimeZone zone,
java.util.Locale locale)
Creates a time period that includes the specified millisecond, assuming
the given time zone.
|
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object.
|
java.text.DateFormat |
getDateFormat()
Returns a copy of the date formatter.
|
java.awt.Paint |
getDividerPaint()
Returns the paint used to draw the dividers.
|
java.awt.Stroke |
getDividerStroke()
Returns the stroke used to draw the dividers.
|
boolean |
getDrawDividers()
Returns a flag that controls whether or not dividers are drawn.
|
java.awt.Font |
getLabelFont()
Returns the label font.
|
java.awt.Paint |
getLabelPaint()
Returns the label paint.
|
org.jfree.ui.RectangleInsets |
getPadding()
Returns the padding for the band.
|
java.lang.Class |
getPeriodClass()
Returns the subclass of
RegularTimePeriod that should be used
to generate the date labels. |
int |
hashCode()
Returns a hash code for this object.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
private static final long serialVersionUID
public static final org.jfree.ui.RectangleInsets DEFAULT_INSETS
public static final java.awt.Font DEFAULT_FONT
public static final java.awt.Paint DEFAULT_LABEL_PAINT
public static final java.awt.Stroke DEFAULT_DIVIDER_STROKE
public static final java.awt.Paint DEFAULT_DIVIDER_PAINT
private java.lang.Class periodClass
RegularTimePeriod to use for this band.private org.jfree.ui.RectangleInsets padding
private java.text.DateFormat dateFormat
private java.awt.Font labelFont
private transient java.awt.Paint labelPaint
private boolean drawDividers
private transient java.awt.Stroke dividerStroke
private transient java.awt.Paint dividerPaint
public PeriodAxisLabelInfo(java.lang.Class periodClass,
java.text.DateFormat dateFormat)
periodClass - the subclass of RegularTimePeriod to use
(null not permitted).dateFormat - the date format (null not permitted).public PeriodAxisLabelInfo(java.lang.Class periodClass,
java.text.DateFormat dateFormat,
org.jfree.ui.RectangleInsets padding,
java.awt.Font labelFont,
java.awt.Paint labelPaint,
boolean drawDividers,
java.awt.Stroke dividerStroke,
java.awt.Paint dividerPaint)
periodClass - the subclass of RegularTimePeriod to use
(null not permitted).dateFormat - the date format (null not permitted).padding - controls the space around the band (null
not permitted).labelFont - the label font (null not permitted).labelPaint - the label paint (null not permitted).drawDividers - a flag that controls whether dividers are drawn.dividerStroke - the stroke used to draw the dividers
(null not permitted).dividerPaint - the paint used to draw the dividers
(null not permitted).public java.lang.Class getPeriodClass()
RegularTimePeriod that should be used
to generate the date labels.public java.text.DateFormat getDateFormat()
null).public org.jfree.ui.RectangleInsets getPadding()
public java.awt.Font getLabelFont()
null).public java.awt.Paint getLabelPaint()
public boolean getDrawDividers()
public java.awt.Stroke getDividerStroke()
public java.awt.Paint getDividerPaint()
public RegularTimePeriod createInstance(java.util.Date millisecond, java.util.TimeZone zone)
millisecond - the time.zone - the time zone.public RegularTimePeriod createInstance(java.util.Date millisecond, java.util.TimeZone zone, java.util.Locale locale)
millisecond - the time.zone - the time zone.locale - the locale.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to test against (null permitted).public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if cloning is not supported.private void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
stream - the output stream.java.io.IOException - if there is an I/O error.private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - the input stream.java.io.IOException - if there is an I/O error.java.lang.ClassNotFoundException - if there is a classpath problem.