public class PeriodAxisLabelInfo extends Object implements Cloneable, Serializable
PeriodAxis.| Modifier and Type | Field and Description |
|---|---|
static Paint |
DEFAULT_DIVIDER_PAINT
The default divider paint.
|
static Stroke |
DEFAULT_DIVIDER_STROKE
The default divider stroke.
|
static Font |
DEFAULT_FONT
The default font.
|
static org.jfree.ui.RectangleInsets |
DEFAULT_INSETS
The default insets.
|
static Paint |
DEFAULT_LABEL_PAINT
The default label paint.
|
| Constructor and Description |
|---|
PeriodAxisLabelInfo(Class periodClass,
DateFormat dateFormat)
Creates a new instance.
|
PeriodAxisLabelInfo(Class periodClass,
DateFormat dateFormat,
org.jfree.ui.RectangleInsets padding,
Font labelFont,
Paint labelPaint,
boolean drawDividers,
Stroke dividerStroke,
Paint dividerPaint)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a clone of the object.
|
RegularTimePeriod |
createInstance(Date millisecond,
TimeZone zone)
Deprecated.
As of 1.0.13, use the method that specifies the locale also.
|
RegularTimePeriod |
createInstance(Date millisecond,
TimeZone zone,
Locale locale)
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 a copy of 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.
|
org.jfree.ui.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.
|
public static final org.jfree.ui.RectangleInsets DEFAULT_INSETS
public static final Font DEFAULT_FONT
public static final Paint DEFAULT_LABEL_PAINT
public static final Stroke DEFAULT_DIVIDER_STROKE
public static final Paint DEFAULT_DIVIDER_PAINT
public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat)
periodClass - the subclass of RegularTimePeriod to use
(null not permitted).dateFormat - the date format (null not permitted).public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat, org.jfree.ui.RectangleInsets padding, Font labelFont, Paint labelPaint, boolean drawDividers, Stroke dividerStroke, 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 Class getPeriodClass()
RegularTimePeriod that should be used
to generate the date labels.public DateFormat getDateFormat()
null).public org.jfree.ui.RectangleInsets getPadding()
public Font getLabelFont()
null).public Paint getLabelPaint()
public boolean getDrawDividers()
public Stroke getDividerStroke()
public Paint getDividerPaint()
public RegularTimePeriod createInstance(Date millisecond, TimeZone zone)
millisecond - the time.zone - the time zone.public RegularTimePeriod createInstance(Date millisecond, TimeZone zone, Locale locale)
millisecond - the time.zone - the time zone.locale - the locale.public boolean equals(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - if cloning is not supported.Copyright © 2001–2014 JFree.org. All rights reserved.