org.jfree.chart.axis
Class PeriodAxisLabelInfo
java.lang.Object
org.jfree.chart.axis.PeriodAxisLabelInfo
- Cloneable, Serializable
extends java.lang.Object
implements Cloneable, Serializable
A record that contains information for one "band" of date labels in
a
PeriodAxis
.
PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat) - Creates a new instance.
|
PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat, RectangleInsets padding, Font labelFont, Paint labelPaint, boolean drawDividers, Stroke dividerStroke, Paint dividerPaint) - Creates a new instance.
|
Object | clone() - Returns a clone of the object.
|
RegularTimePeriod | createInstance(Date millisecond, TimeZone zone) - Creates a time period that includes the specified millisecond, assuming
the given time zone.
|
boolean | equals(Object obj) - Tests this object for equality with an arbitrary object.
|
DateFormat | getDateFormat() - Returns the date formatter.
|
Paint | getDividerPaint() - Returns the paint used to draw the dividers.
|
Stroke | getDividerStroke() - Returns the stroke used to draw the dividers.
|
boolean | getDrawDividers() - Returns a flag that controls whether or not dividers are drawn.
|
Font | getLabelFont() - Returns the label font.
|
Paint | getLabelPaint() - Returns the label paint.
|
RectangleInsets | getPadding() - Returns the padding for the band.
|
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.
|
DEFAULT_FONT
public static final Font DEFAULT_FONT
The default font.
DEFAULT_INSETS
public static final RectangleInsets DEFAULT_INSETS
The default insets.
PeriodAxisLabelInfo
public PeriodAxisLabelInfo(Class periodClass,
DateFormat dateFormat)
Creates a new instance.
periodClass
- the subclass of RegularTimePeriod
to use
(null
not permitted).dateFormat
- the date format (null
not permitted).
PeriodAxisLabelInfo
public PeriodAxisLabelInfo(Class periodClass,
DateFormat dateFormat,
RectangleInsets padding,
Font labelFont,
Paint labelPaint,
boolean drawDividers,
Stroke dividerStroke,
Paint dividerPaint)
Creates a new instance.
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).
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the object.
createInstance
public RegularTimePeriod createInstance(Date millisecond,
TimeZone zone)
Creates a time period that includes the specified millisecond, assuming
the given time zone.
millisecond
- the time.zone
- the time zone.
equals
public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
obj
- the object to test against (null
permitted).
getDateFormat
public DateFormat getDateFormat()
Returns the date formatter.
- The date formatter (never
null
).
getDividerPaint
public Paint getDividerPaint()
Returns the paint used to draw the dividers.
getDividerStroke
public Stroke getDividerStroke()
Returns the stroke used to draw the dividers.
getDrawDividers
public boolean getDrawDividers()
Returns a flag that controls whether or not dividers are drawn.
getLabelFont
public Font getLabelFont()
Returns the label font.
- The label font (never
null
).
getLabelPaint
public Paint getLabelPaint()
Returns the label paint.
getPadding
public RectangleInsets getPadding()
Returns the padding for the band.
hashCode
public int hashCode()
Returns a hash code for this object.