public class IlvCurrentTimeIndicator extends IlvFixedTimeIndicator
IlvCurrentTimeIndicator
class is used to represent
the current time in an IlvGanttSheet
.
A timer is used to refresh the current time. The frequency of the
refeshing rate can be customized. The default is 1000 milliseconds.renderer
Constructor and Description |
---|
IlvCurrentTimeIndicator()
Creates a new
IlvCurrentTimeIndicator . |
IlvCurrentTimeIndicator(IlvGraphic renderer)
Creates a new
IlvCurrentTimeIndicator , with an
associated renderer. |
IlvCurrentTimeIndicator(int refreshFrequency)
Creates a new
IlvCurrentTimeIndicator , with a
frequency rate for refreshing the time indicator. |
IlvCurrentTimeIndicator(int refreshFrequency,
IlvGraphic renderer)
Creates a new
IlvCurrentTimeIndicator , with a
frequency rate for refreshing the time indicator, and with an
associated renderer. |
Modifier and Type | Method and Description |
---|---|
protected static String |
getDefaultDescription()
Returns a default description for current time indicators.
|
int |
getRefreshFrequency()
Gets the frequency of redraws.
|
void |
setRefreshFrequency(int refreshFrequency)
Sets the frequency of redraws.
|
void |
setTime(Date time)
Overrides this method so that it does nothing.
|
applyTransform, boundingBox, copy, draw, getAlpha, getDescription, getMaxWidth, getRenderer, getTime, maxVerticalPositionChanged, prepareGraphic, setAlpha, setBackground, setDescription, setFillOn, setForeground, setMaxWidth, setRenderer, setStrokeOn, setToolTipText, timeIndicatorBBox, update, verticalExtentChanged, verticalPositionChanged, zoomable
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, contains, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipBaseTextDirection, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, write
public IlvCurrentTimeIndicator()
IlvCurrentTimeIndicator
.public IlvCurrentTimeIndicator(int refreshFrequency)
IlvCurrentTimeIndicator
, with a
frequency rate for refreshing the time indicator.refreshFrequency
- The frequency rate to refresh the time
indicator in milliseconds.public IlvCurrentTimeIndicator(IlvGraphic renderer)
IlvCurrentTimeIndicator
, with an
associated renderer.renderer
- The renderer used to render the time indicator.public IlvCurrentTimeIndicator(int refreshFrequency, IlvGraphic renderer)
IlvCurrentTimeIndicator
, with a
frequency rate for refreshing the time indicator, and with an
associated renderer.refreshFrequency
- The frequency rate to refresh the time
indicator in milliseconds.renderer
- The renderer used to render the time indicator.protected static String getDefaultDescription()
public int getRefreshFrequency()
public void setRefreshFrequency(int refreshFrequency)
refreshFrequency
- the frequency of redraws in millisecond.public void setTime(Date time)
setTime
in class IlvTimeIndicator
time
- A Date
representing the time associated to this
time indicator..© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.