public abstract class IlvScheduleDataChart extends JComponent implements IlvStylable, IlvAcceptFunctions
IlvScheduleDataChart
displays time-based numerical data
obtained from a Gantt data model
as a Cartesian x-y
chart. IlvScheduleDataChart
internally uses:
IlvChart
instance.
IlvScheduleDataChart
is an abstract base class. It does not
specify the type of data that is displayed, nor how the data sets are
computed. This is the responsibility of concrete subclass implementations.JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
APPLIED_RULE_MASK, BAD_CLASS_MASK, BAD_PROP_MASK, BAD_PROP_WITH_STACK_MASK, CREATED_MASK, DECL_MASK, DECL_VALUE_MASK, FAILED_CONVERSIONS_MASK, TIME_REPORT_MASK, WARNING_PROP_MASK
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvScheduleDataChart()
Creates a new Schedule Data chart object.
|
Modifier and Type | Method and Description |
---|---|
void |
addChartDrawListener(ChartDrawListener l)
Adds a new draw listener.
|
void |
addChartListener(ChartListener l)
Adds a new listener.
|
void |
addChartRendererListener(ChartRendererListener l)
Adds a new renderer listener.
|
void |
addDecoration(IlvChartDecoration decoration)
Adds the specified decoration to this chart.
|
void |
addGanttModelListener(GanttModelListener listener)
Adds the specified listener to receive notifications when this
chart's
Gantt model has been changed. |
void |
addInteractor(IlvChartInteractor inter)
Adds a new interactor.
|
void |
addInteractor(String inter)
Adds a new interactor using a
String
describing either the interactor class name or the
registered name associated with the interactor. |
void |
addLegend(IlvLegend legend,
String pos,
boolean autoPos)
Sets the legend, and adds it to the chart.
|
void |
addTimeScrollListener(TimeScrollListener listener)
Adds the specified listener to receive time scroll events from this chart.
|
protected IlvTimeScale |
createDefaultTimeScale()
Creates a default time scale for the x axis.
|
protected IlvGanttGridRenderer |
createDefaultXGrid()
Creates a default abscissa grid for the x axis.
|
protected GanttModelChangedEvent |
fireGanttModelAboutToChange(IlvGanttModel newModel)
Fires a
ganttModelAboutToChange event. |
protected void |
fireGanttModelChanged(IlvGanttModel oldModel)
Fires a
ganttModelChanged event. |
int |
getBaseTextDirection()
Returns the base text direction for this chart.
|
IlvChart.Area |
getChartArea()
Returns the chart area component.
|
Border |
getChartAreaBorder()
Returns the chart area border.
|
IlvDataRangePolicy |
getDataRangePolicy()
Returns the calculation policy used by the chart to compute the data
range of an axis.
|
List<IlvChartDecoration> |
getDecorations()
Returns a copy of the list of decorations displayed by this chart.
|
Color[] |
getDefaultColors()
Returns the default colors used by this chart.
|
IlvScalableFontManager |
getFontManager()
Returns the font manager associated with this chart.
|
JComponent |
getFooter()
Returns the footer component.
|
String |
getFooterText()
Returns the footer text.
|
IlvGanttModel |
getGanttModel()
Returns the Gantt data model for the Schedule Data chart.
|
JComponent |
getHeader()
Returns the header component.
|
String |
getHeaderText()
Returns the header text.
|
IlvChartInteractor[] |
getInteractors()
Returns all the interactors installed on the chart.
|
IlvLegend |
getLegend()
Returns the legend.
|
String |
getLegendPosition()
Returns the current legend position.
|
Date |
getMaxVisibleTime()
Returns the maximum time that the chart can show in bounded
scrolling mode.
|
IlvDuration |
getMinVisibleDuration()
Returns the minimum duration that the chart can show.
|
Date |
getMinVisibleTime()
Returns the minimum time that the chart can show in bounded
scrolling mode.
|
Color |
getPlotAreaBackground()
Returns the plot area background color.
|
IlvChartRenderer |
getRenderer()
Returns the chart renderer.
|
String |
getStyleSheet()
Returns the first of the Cascading Style Sheets for the chart.
|
int |
getStyleSheetDebugMask()
Returns the current debug level, expressed as an OR combination of the
predefined flags:
IlvStylable.APPLIED_RULE_MASK
IlvStylable.BAD_CLASS_MASK
IlvStylable.BAD_PROP_MASK
IlvStylable.CREATED_MASK
IlvStylable.DECL_MASK
IlvStylable.DECL_VALUE_MASK
IlvStylable.FAILED_CONVERSIONS_MASK
IlvStylable.TIME_REPORT_MASK
IlvStylable.WARNING_PROP_MASK
|
String[] |
getStyleSheets()
Returns the chart's Cascading Style Sheets.
|
String |
getStyleSheets(int index)
Returns one of the chart's Cascading Style Sheets.
|
IlvTimeConverter |
getTimeConverter()
Returns the time converter for the abscissa axis.
|
IlvTimeScale |
getTimeScale()
Returns the time scale for the abscissa axis.
|
ULocale |
getULocale()
Returns the locale of this component.
|
IlvDuration |
getVisibleDuration()
Returns the duration of the time interval displayed by the chart.
|
IlvTimeInterval |
getVisibleInterval()
Returns the time interval displayed by the chart.
|
Date |
getVisibleTime()
Returns the beginning of the time interval displayed by the chart.
|
IlvGanttGridRenderer |
getXGrid()
Returns the abscissa grid for the x-axis.
|
IlvAxis |
getYAxis()
Returns the ordinate y-axis.
|
IlvGrid |
getYGrid()
Returns the grid associated with the ordinate y-axis.
|
IlvScale |
getYScale()
Returns the ordinate scale connected to the y-axis.
|
String |
getYScaleTitle()
Returns the title of the ordinate scale connected to the y-axis
or
null if no ordinate scale has been set. |
double |
getYScaleTitleRotation()
Returns the title rotation of the ordinate scale connected to the y-axis.
|
boolean |
isAntiAliasing()
Returns the value of the
antiAliasing property. |
boolean |
isAntiAliasingText()
Returns the value of the
antiAliasingText property. |
boolean |
isLegendVisible()
Returns whether the legend is visible.
|
boolean |
isScalingFont()
Returns whether the fonts are scaled when the chart is resized.
|
boolean |
isYAxisReversed()
Indicates whether the y-axis is reversed.
|
boolean |
isYGridVisible()
Returns whether the grid associated with the y-axis is visible.
|
boolean |
isYScaleVisible()
Returns whether the scale connected to the y-axis is visible.
|
void |
registerFunction(IlvCSSFunction function)
Registers another function into the Cascading Style Sheets engine.
|
void |
removeChartDrawListener(ChartDrawListener l)
Removes
l from the draw listeners. |
void |
removeChartListener(ChartListener l)
Removes
l from the chart listeners. |
void |
removeChartRendererListener(ChartRendererListener l)
Removes
l from the renderer listeners. |
void |
removeDecoration(IlvChartDecoration decoration)
Removes the specified decoration from this chart.
|
void |
removeGanttModelListener(GanttModelListener listener)
Removes the specified listener so that it will no longer receive
notifications when this chart's
Gantt model
has been changed. |
void |
removeInteractor(IlvChartInteractor inter)
Removes an interactor.
|
void |
removeTimeScrollListener(TimeScrollListener listener)
Removes the specified listener so that it will no longer receive time
scroll events from this chart.
|
void |
setAntiAliasing(boolean b)
Sets the
antiAliasing property. |
void |
setAntiAliasingText(boolean b)
Sets the
antiAliasingText property. |
void |
setBackground(Color background)
Sets the background color of the chart.
|
void |
setBaseTextDirection(int btd)
Sets the base text direction for this chart.
|
void |
setChartAreaBorder(Border border)
Sets the chart area border.
|
void |
setDataRangePolicy(IlvDataRangePolicy policy)
Specifies the calculation policy used by the chart to compute the data
range of an axis.
|
void |
setDecorations(List<IlvChartDecoration> decorations)
Sets the decorations displayed by this chart.
|
void |
setDefaultColors(Color[] colors)
Sets the default colors used by this chart.
|
void |
setFont(Font font)
Sets the font for the chart.
|
void |
setFooter(JComponent footer)
Sets the footer component.
|
void |
setFooterText(String text)
Sets the footer text.
|
void |
setForeground(Color foreground)
Sets the foreground color of the chart.
|
void |
setGanttModel(IlvGanttModel ganttModel)
Sets the data model for the Schedule Data chart.
|
void |
setHeader(JComponent header)
Sets the header component.
|
void |
setHeaderText(String text)
Sets the header text.
|
void |
setInteractors(IlvChartInteractor[] inters)
Sets the interactors.
|
void |
setLegend(IlvLegend legend)
Sets the legend.
|
void |
setLegendPosition(String pos)
Sets the legend position.
|
void |
setLegendVisible(boolean visible)
Sets the legend of this chart visible.
|
void |
setLocale(Locale locale)
Sets the locale of this component.
|
void |
setMaxVisibleTime(Date max)
Sets the maximum time that the chart can show in bounded
scrolling mode.
|
void |
setMinVisibleDuration(IlvDuration duration)
Sets the minimum duration that this chart can show.
|
void |
setMinVisibleTime(Date min)
Sets the minimum time that the chart can show in bounded
scrolling mode.
|
void |
setOpaque(boolean opaque)
Sets whether the chart should be opaque and paints every pixel within its
bounds.
|
void |
setPlotAreaBackground(Color color)
Sets the plot area background color.
|
void |
setRenderer(IlvChartRenderer renderer)
Sets the chart renderer.
|
void |
setScalingFont(boolean scalable)
Sets whether the fonts are scaled when the chart is resized.
|
void |
setStyleSheet(String styleSheet)
Sets the first style sheet for the chart.
|
void |
setStyleSheetDebugMask(int mask)
Sets the debug level while parsing the style sheets.
|
void |
setStyleSheets(int index,
String css)
Changes one of the Cascading Style Sheets for the chart.
|
void |
setStyleSheets(String[] css)
Sets the Cascading Style Sheets for the chart.
|
void |
setTimeConverter(IlvTimeConverter timeConverter)
Sets the time converter for the abscissa axis.
|
void |
setTimeScale(IlvTimeScale timeScale)
Sets the time scale for the abscissa axis.
|
void |
setULocale(ULocale locale)
Sets the locale of this component.
|
void |
setVisibleDuration(IlvDuration duration)
Sets the duration of the time interval displayed by the chart.
|
void |
setVisibleInterval(Date time,
IlvDuration duration)
Sets the time interval displayed by the chart.
|
void |
setVisibleTime(Date time)
Sets the beginning of the time interval displayed by the chart.
|
void |
setXGrid(IlvGanttGridRenderer grid)
Sets the abscissa grid for the x-axis.
|
void |
setYAxisReversed(boolean reversed)
Sets the reversed property of the y-axis.
|
void |
setYGrid(IlvGrid grid)
Changes the grid of the ordinate y-axis.
|
void |
setYGridVisible(boolean visible)
Sets whether the grid associated with the y-axis is visible.
|
void |
setYScale(IlvScale scale)
Sets the ordinate scale for the y-axis.
|
void |
setYScaleTitle(String title)
Sets the title of the ordinate scale connected to the y-axis.
|
void |
setYScaleTitleRotation(double angle)
Sets the title rotation of the ordinate scale connected to the y-axis.
|
void |
setYScaleVisible(boolean visible)
Sets whether the scale connected to the y-axis is visible.
|
void |
syncXAxis(IlvHierarchyChart ganttChart)
Synchronizes the dimensions of x-axis of this chart and its
displayed time interval with that of the
Gantt sheet of the specified chart. |
void |
unsyncXAxis()
Cancels the synchronization of the x-axis previously established
by the
syncXAxis(ilog.views.gantt.IlvHierarchyChart) method. |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public IlvScheduleDataChart()
public ULocale getULocale()
ULocale
.IllegalStateException
- if this component's locale has been removed
through setLocale(null)
and none of the ancestors has
a Locale
set eithersetULocale(ULocale)
public void setULocale(ULocale locale)
locale
- An ICU ULocale
, or null
if this
component shall inherit its locale from the parent component.getULocale()
,
setLocale(Locale)
public void setLocale(Locale locale)
setLocale
in class Component
locale
- An Locale
, or null
if this
component shall inherit its locale from the parent component.setULocale(ULocale)
public final int getBaseTextDirection()
The base text direction influences the display of text strings that are composed of segments that are read from left to right as well as of segments that are read from right to left. It determines the order of these segments.
IlvBidiUtil.COMPONENT_DIRECTION
,
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
,
IlvBidiUtil.RIGHT_TO_LEFT
,
IlvBidiUtil.INHERITED_DIRECTION
.setBaseTextDirection(int)
public void setBaseTextDirection(int btd)
The base text direction influences the display of text strings that are composed of segments that are read from left to right as well as of segments that are read from right to left. It determines the order of these segments.
Possible values are:
IlvBidiUtil.COMPONENT_DIRECTION
,
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
, IlvBidiUtil.RIGHT_TO_LEFT
,
and IlvBidiUtil.INHERITED_DIRECTION
, which in this case is
equivalent to IlvBidiUtil.COMPONENT_DIRECTION
.
The base text direction affects, in particular:
btd
- The base text direction.getBaseTextDirection()
public IlvChart.Area getChartArea()
public Border getChartAreaBorder()
public void setChartAreaBorder(Border border)
public void setOpaque(boolean opaque)
setOpaque
in class JComponent
opaque
- true
if the chart should be opaque.public void setForeground(Color foreground)
setForeground
in class JComponent
foreground
- The foreground Color
.public void setBackground(Color background)
setBackground
in class JComponent
background
- The background Color
.public void setFont(Font font)
setFont
in class JComponent
font
- The Font
for the chart.public Color getPlotAreaBackground()
public void setPlotAreaBackground(Color color)
public final JComponent getHeader()
public void setHeader(JComponent header)
header
- The component to add. Passing null
removes the current component from the chart.public String getHeaderText()
null
if no header has
been set or if the header is not an instance of JLabel
.public void setHeaderText(String text)
JLabel
displaying the given text.
This method replaces the previous header component if it is not
an instance of JLabel
.setHeader(javax.swing.JComponent)
public final JComponent getFooter()
public void setFooter(JComponent footer)
footer
- The component to add. Passing null
removes the current component from the chart.public String getFooterText()
null
if no footer has
been set or if the footer is not an instance of JLabel
.public void setFooterText(String text)
JLabel
displaying the given text.
This method replaces the previous footer component if it is not
an instance of JLabel
.setFooter(javax.swing.JComponent)
public IlvGanttModel getGanttModel()
public void setGanttModel(IlvGanttModel ganttModel)
ganttModel
- The new Gantt model.getGanttModel()
public void addGanttModelListener(GanttModelListener listener)
Gantt model
has been changed. Note
that this is not the same as being notified when elements within the
Gantt model have been modified.listener
- The listener that will be subscribed to subsequent
Gantt model events.removeGanttModelListener(ilog.views.gantt.event.GanttModelListener)
public void removeGanttModelListener(GanttModelListener listener)
Gantt model
has been changed.listener
- The listener that will be unsubscribed from receiving
Gantt model events.addGanttModelListener(ilog.views.gantt.event.GanttModelListener)
protected GanttModelChangedEvent fireGanttModelAboutToChange(IlvGanttModel newModel)
ganttModelAboutToChange
event. Returns the event
after dispatching it to all listeners.newModel
- The proposed new data model of the chart.protected void fireGanttModelChanged(IlvGanttModel oldModel)
ganttModelChanged
event.oldModel
- The previous data model of the configuration.public void syncXAxis(IlvHierarchyChart ganttChart)
displayed time interval
with that of the
Gantt sheet of the specified chart.ganttChart
- The Gantt or Schedule chart to synchronize with.unsyncXAxis()
public void unsyncXAxis()
syncXAxis(ilog.views.gantt.IlvHierarchyChart)
method.syncXAxis(IlvHierarchyChart)
public Date getMinVisibleTime()
null
if the chart
is in unbounded scrolling mode.setMinVisibleTime(java.util.Date)
public void setMinVisibleTime(Date min)
time
and
duration
are trimmed to fit the new min-max
interval by calling the IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. A
minVisibleTimeChanged
event
is then fired to all registered
listeners
. If min > maxVisibleTime
an
IllegalArgumentException
will be thrown.min
- The minimum visible time or null
to set the chart
to unbounded scrolling mode.getMinVisibleTime()
public Date getMaxVisibleTime()
null
if the chart
is in unbounded scrolling mode.setMaxVisibleTime(java.util.Date)
public void setMaxVisibleTime(Date max)
time
and
duration
are trimmed to fit the new min-max
interval by calling the IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. A
maxVisibleTimeChanged
event
is then fired to all registered
listeners
. If max < minVisibleTime
an
IllegalArgumentException
will be thrown.max
- The maximum visible time or null
to set the chart
to unbounded scrolling mode.getMaxVisibleTime()
public IlvDuration getMinVisibleDuration()
setMinVisibleDuration(ilog.views.gantt.IlvDuration)
public void setMinVisibleDuration(IlvDuration duration)
minVisibleDurationChanged event
is fired to all registered listeners
.duration
- The minimum visible duration.getMinVisibleDuration()
public Date getVisibleTime()
setVisibleTime(java.util.Date)
public void setVisibleTime(Date time)
min
and max
visible times and is trimmed if
necessary by calling the IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. The
chart then adjusts its internal zoom and scroll parameters so that the
specified time value is drawn at the beginning of the chart. A
VisibleTimeChangedEvent
is then fired to all
registered listeners
. If you are changing
both the visible time and duration, it is preferable to use the
setVisibleInterval(java.util.Date, ilog.views.gantt.IlvDuration)
method instead.time
- The new time value.getVisibleTime()
public IlvDuration getVisibleDuration()
public void setVisibleDuration(IlvDuration duration)
min
and max
visible times and is trimmed if
necessary by calling the IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. The
chart then adjusts its internal zoom and scroll parameters so that the
specified duration is visible. A VisibleDurationChangedEvent
is
then fired to all registered listeners
. If
you are changing both the visible time and duration, it is preferable to
use the setVisibleInterval(java.util.Date, ilog.views.gantt.IlvDuration)
method instead.duration
- The new duration value.getVisibleDuration()
public IlvTimeInterval getVisibleInterval()
public void setVisibleInterval(Date time, IlvDuration duration)
min
and
max
visible times and is trimmed if necessary
by calling the IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. This method
then fires an adjusting VisibleTimeChangedEvent
followed by a
VisibleDurationChangedEvent
to all
registered listeners
.time
- The new time value.duration
- The new duration value.public void addTimeScrollListener(TimeScrollListener listener)
listener
- The listener that will be subscribed to subsequent time
scroll events.removeTimeScrollListener(ilog.views.gantt.event.TimeScrollListener)
public void removeTimeScrollListener(TimeScrollListener listener)
listener
- The listener that will be unsubscribed from receiving
time scroll events.addTimeScrollListener(ilog.views.gantt.event.TimeScrollListener)
public void setRenderer(IlvChartRenderer renderer)
getRenderer()
public IlvChartRenderer getRenderer()
SUMMED
IlvStairChartRenderer
.getRenderer()
public final IlvScalableFontManager getFontManager()
IlvScalableFontManager.setFontManager(java.awt.Component, ilog.views.chart.IlvScalableFontManager, java.awt.Font)
method.IlvScalableFontManager
public boolean isScalingFont()
public void setScalingFont(boolean scalable)
public boolean isAntiAliasing()
antiAliasing
property.setAntiAliasing(boolean)
public void setAntiAliasing(boolean b)
antiAliasing
property.
When this property is set
to true
, all the drawings in the chart component and subcomponents are
anti-aliased. This property does not affect text. To toggle the
anti-aliasing of text, use the setAntiAliasingText(boolean)
method.
The default value of this property is false
.isAntiAliasing()
public boolean isAntiAliasingText()
antiAliasingText
property.setAntiAliasingText(boolean)
public void setAntiAliasingText(boolean b)
antiAliasingText
property.
When this property is set to true
, all the text drawings in the chart
component and subcomponents are anti-aliased.
This property only affects text. To toggle the anti-aliasing of other
drawings, use the setAntiAliasing(boolean)
method.
The default value of this property is false
.setAntiAliasing(boolean)
,
isAntiAliasingText()
public Color[] getDefaultColors()
IlvChartRenderer.getDefaultColors()
method for more details.setDefaultColors(java.awt.Color[])
public void setDefaultColors(Color[] colors)
getDefaultColors()
public IlvDataRangePolicy getDataRangePolicy()
public void setDataRangePolicy(IlvDataRangePolicy policy)
getDataRangePolicy()
public IlvTimeConverter getTimeConverter()
public void setTimeConverter(IlvTimeConverter timeConverter)
timeConverter
- The new time converter.getTimeConverter()
protected IlvTimeScale createDefaultTimeScale()
public IlvTimeScale getTimeScale()
public void setTimeScale(IlvTimeScale timeScale)
getTimeScale()
public IlvAxis getYAxis()
public boolean isYAxisReversed()
public void setYAxisReversed(boolean reversed)
public IlvScale getYScale()
null
if no scale is defined for the axis.public void setYScale(IlvScale scale)
scale
- The new scale. If null
, this method removes the
previous scale.IllegalArgumentException
- The specified scale is already attached
to a chart.public String getYScaleTitle()
null
if no ordinate scale has been set.setYScaleTitle(java.lang.String)
public void setYScaleTitle(String title)
public double getYScaleTitleRotation()
public void setYScaleTitleRotation(double angle)
public boolean isYScaleVisible()
public void setYScaleVisible(boolean visible)
protected IlvGanttGridRenderer createDefaultXGrid()
IlvWeekendGrid
.public IlvGanttGridRenderer getXGrid()
IlvWeekendGrid
.public void setXGrid(IlvGanttGridRenderer grid)
grid
- The grid.getXGrid()
public final IlvGrid getYGrid()
setYGrid(ilog.views.chart.IlvGrid)
public void setYGrid(IlvGrid grid)
getYGrid()
public boolean isYGridVisible()
setYGridVisible(boolean)
public void setYGridVisible(boolean visible)
public void addInteractor(IlvChartInteractor inter)
inter
- The new interactor to add.IllegalArgumentException The interactor is null
, or it is attached
to another chart.
public void addInteractor(String inter)
String
describing either the interactor class name or the
registered name associated with the interactor.public void setInteractors(IlvChartInteractor[] inters)
IllegalArgumentException
- One of the interactor is null
, or
it is attached to another chart.addInteractor(IlvChartInteractor)
public IlvChartInteractor[] getInteractors()
addInteractor(IlvChartInteractor)
public void removeInteractor(IlvChartInteractor inter)
inter
- The interactor to remove.IllegalArgumentException
- The interactor is not attached to
this chart.addInteractor(IlvChartInteractor)
public IlvLegend getLegend()
public void setLegend(IlvLegend legend)
legend
- The new legend. Passing null
disconnects the
current legend from this chart.addLegend(ilog.views.chart.IlvLegend, java.lang.String, boolean)
public void addLegend(IlvLegend legend, String pos, boolean autoPos)
legend
- The new IlvLegend
object.pos
- A valid IlvChartLayout
constraint.autoPos
- If true
, legend
is placed automatically according to its last known position. This
parameter is only used in absolute positioning.IlvChartLayout
,
IlvLegend
public boolean isLegendVisible()
public void setLegendVisible(boolean visible)
true
and no legend has been set yet, this method adds a new IlvLegend
instance to the chart at the current legend position. If false
,
the current legend (if any) is removed and the reference is nullified.public String getLegendPosition()
IlvChartLayout
public void setLegendPosition(String pos)
pos
- A valid IlvChartLayout
position.public void addDecoration(IlvChartDecoration decoration)
IllegalArgumentException
- The specified decoration is already
displayed by another chart.public void removeDecoration(IlvChartDecoration decoration)
IllegalArgumentException
- The specified decoration is not
displayed by this chart.public List<IlvChartDecoration> getDecorations()
null
if no decoration is displayed.public void setDecorations(List<IlvChartDecoration> decorations)
decorations
- The list of the new decorations, or null
to remove all the decorations.public void addChartListener(ChartListener l)
public void removeChartListener(ChartListener l)
l
from the chart listeners.public void addChartRendererListener(ChartRendererListener l)
public void removeChartRendererListener(ChartRendererListener l)
l
from the renderer listeners.public final void addChartDrawListener(ChartDrawListener l)
public final void removeChartDrawListener(ChartDrawListener l)
l
from the draw listeners.public void registerFunction(IlvCSSFunction function)
registerFunction
in interface IlvAcceptFunctions
function
- The function to be added.public final void setStyleSheet(String styleSheet) throws IlvStylingException
setStyleSheets(0, styleSheet)
.
This method overrides the first style sheet defined in
setStyleSheets(String[])
.styleSheet
- The URL or file name of the style sheet file, or the
style sheet string itself.IlvStylingException
- if an exception occurs while loading or
parsing the style sheet.getStyleSheet()
public void setStyleSheets(int index, String css) throws IlvStylingException
setStyleSheets(String[])
. It lets you change one
particular style sheet, instead of setting the whole style sheet array.setStyleSheets
in interface IlvStylable
index
- The index of the style sheet to replace.css
- The URL or file name of the new style sheet file, or the style
sheet string itself.IlvStylingException
- if an exception occurs while loading or
parsing the style sheet.getStyleSheets(int)
public void setStyleSheets(String[] css) throws IlvStylingException
setStyleSheets
in interface IlvStylable
css
- An array of strings containing the URLs, the file names of the
CSS files (usually with a .css
suffix), or the style sheet
strings themselves. A null
array specifies that styling should
be disabled.IlvStylingException
- if an exception occurs while loading or
parsing the style sheets.getStyleSheets(int)
public final String getStyleSheet()
getStyleSheets(0)
.null
.setStyleSheet(java.lang.String)
public String getStyleSheets(int index)
getStyleSheets
in interface IlvStylable
index
- The position of the Cascading Style Sheet to return.index
-th style sheet. This will be the URL or
file name of the style sheet file, or the style sheet string itself. If
styling is disabled, this method will return null
.setStyleSheets(String[])
,
setStyleSheets(int,String)
public String[] getStyleSheets()
getStyleSheets
in interface IlvStylable
null
.setStyleSheets(String[])
public void setStyleSheetDebugMask(int mask)
setStyleSheets(int, java.lang.String)
to debug
problems during configuration.setStyleSheetDebugMask
in interface IlvStylable
mask
- The debug mask, expressed as an OR combination of the
predefined flags:
setStyleSheets(int, java.lang.String)
,
getStyleSheetDebugMask()
public int getStyleSheetDebugMask()
getStyleSheetDebugMask
in interface IlvStylable
setStyleSheetDebugMask(int)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.