public class IlvMinuteTimeScaleRow extends IlvBasicTimeScaleRow
IlvBasicTimeScaleRow
to provide a complete scale displaying
minute intervals.
By default, each minute interval is displayed with a text formatted using a
java.text.SimpleDateFormat
created with an "mm" string.
The exact result depends on the time scale Locale
, in English
"12" for January 14th 8:12:34.
By default, the text is centered in the interval.LEADING_TICK
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
IlvMinuteTimeScaleRow()
This constructor creates and initializes an
IlvMinuteTimeScaleRow object. |
Modifier and Type | Method and Description |
---|---|
protected String |
computeDateText(Date time)
Computes and returns the text that should be drawn for the interval
beginning at the specified
time . |
protected IlvTimeIncrementPolicy |
createTimeIncrementPolicy()
Creates the time increment policy for the row.
|
int |
getMinuteStep()
This method returns the number of minutes for an interval.
|
void |
setMinuteStep(int value)
This method sets the number of minutes for an interval.
|
getAdditionalString, getDateFormat, getFormatString, getHeight, getIntervalMinWidth, getPreferredHeight, getTextColor, getTextFont, getTextPosition, getTickColor, getTimeIncrementPolicy, incrementTime, invalidateDateTextCache, isOverlappingLabelAllowed, nextUnitTime, paint, paintRow, paintText, paintText, paintTick, paintTick, previousUnitTime, setAdditionalString, setFormatString, setHeight, setIntervalMinWidth, setOverlappingLabelAllowed, setTextColor, setTextFont, setTextPosition, setTickColor
getComponentOrientation, getLocale, getTimeScale, getULocale, isVisible, setVisible
public IlvMinuteTimeScaleRow()
IlvMinuteTimeScaleRow
object.public int getMinuteStep()
public void setMinuteStep(int value)
value
- The number of minutes for a scale interval.protected IlvTimeIncrementPolicy createTimeIncrementPolicy()
IlvTimeIncrementPolicy.Minute
.createTimeIncrementPolicy
in class IlvBasicTimeScaleRow
IlvBasicTimeScaleRow.getTimeIncrementPolicy()
protected String computeDateText(Date time)
time
. The row's current
DateFormat
is used to format the time.
IlvBasicTimeScaleRow.invalidateDateTextCache()
must be invoked whenever a row property
changes which affects how this method formats the text.computeDateText
in class IlvBasicTimeScaleRow
time
- The start time of the scale interval.IlvBasicTimeScaleRow.getDateFormat()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.