|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ijchart.xychart.client.ChartPanel
public class ChartPanel
Title: IJChart
Description: a chart library for the Java(tm) platform.
A Swing GUI component for displaying aIJChart
object.
The panel registers with the chart to receive notification of changes to any
component of the chart.The chart is redrawn automatically whenever this
notification is received.
Copyright: Copyright (c) 2013
Company:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static boolean |
DEFAULT_FILL_ZOOM_RECTANGLE
The default flag controls if the zoom rectangle is drawn as a border or filled. |
static int |
DEFAULT_HEIGHT
The default panel heigh. |
static boolean |
DEFAULT_HORIZONTAL_AXIS_TRACE
A default flag that controls whether or not horizontal tracing is enabled. |
static int |
DEFAULT_MAXIMUM_DRAW_HEIGHT
The default limit below which chart scaling kicks in. |
static int |
DEFAULT_MAXIMUM_DRAW_WIDTH
The default limit below which chart scaling kicks in. |
static int |
DEFAULT_MINIMUM_DRAW_HEIGHT
The default limit below which chart scaling kicks in. |
static int |
DEFAULT_MINIMUM_DRAW_WIDTH
The default limit below which chart scaling kicks in. |
static boolean |
DEFAULT_VERTICAL_AXIS_TRACE
A default flag that controls whether or not vertical tracing is enabled. |
static int |
DEFAULT_WIDTH
The default panel width.. |
static java.awt.Paint |
DEFAULT_ZOOM_BORDER_PAINT
The default paint used to draw the zoom rectangle outline. |
static java.awt.Paint |
DEFAULT_ZOOM_FILL_PAINT
The default paint used to fill the zoom rectangle. |
static double |
DEFAULT_ZOOM_IN_FACTOR
The default factor used to zoom in on an axis range. |
static double |
DEFAULT_ZOOM_OUT_FACTOR
The default factor used to zoom out on an axis range. |
static int |
DEFAULT_ZOOM_TRIGGER_DISTANCE
The minimum size required to perform a zoom on a rectangle. |
static boolean |
DEFAULT_ZOOMABLE
Default zoomable. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ChartPanel(IJChart chart)
Constructor. |
|
ChartPanel(IJChart chart,
boolean showTooltips)
Constructor. |
|
ChartPanel(IJChart chart,
int width,
int height,
int minimumDrawWidth,
int minimumDrawHeight,
boolean showTooltips)
Constructor. |
Method Summary | |
---|---|
void |
addChartMouseListener(IChartMouseListener listener)
Adds a listener. |
void |
addShowTooltipShapeType(ChartShapeDrawType drawType)
Add a shape type to display tooltip. |
void |
chartChanged(ChartChangeEvent event)
Receives notification of changes to the chart, and redraws the chart. |
void |
chartProgress(ChartProgressEvent event)
Receives notification of a chart progress event. |
void |
chartShapeChanged(ChartShapeChangeEvent event)
Receives notification of an IChartShape change event. |
void |
clearShowTooltipShapeType()
Clear all shape types to display tooltip. |
boolean |
getAntiAlias()
Returns a flag that indicates whether or not anti-aliasing is used when the chart is drawn. |
IJChart |
getChart()
Returns the chart contained in the panel. |
int |
getDismissDelay()
Returns the dismiss tooltip delay to be used in this chart panel. |
boolean |
getHorizontalAxisTrace()
Returns the flag that controls whether or not horizontal tracing is enabled. |
java.awt.geom.Line2D |
getHorizontalTraceLine()
Returns the horizontal trace line. |
int |
getInitialDelay()
Returns the initial tooltip delay to be used in this chart panel. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
Returns an array of the listeners of the given type registered with the panel. |
double |
getMinimumDrawHeight()
Returns the minimum height for drawing a chart. |
double |
getMinimumDrawWidth()
Returns the minimum width for drawing a chart. |
java.awt.Point |
getMouseClickPoint()
Returns the mouse click point (null permitted). |
java.awt.RenderingHints |
getRenderingHints()
Returns the collection of rendering hints for the chart. |
int |
getReshowDelay()
Returns the reshow tooltip delay to be used in this chart panel. |
double |
getScaleX()
Returns the X scale factor for the chart. |
double |
getScaleY()
Returns the Y scale factor for the chart. |
java.awt.geom.Rectangle2D |
getScreenDataArea()
Returns the data area for the chart with the current scaling applied. |
java.awt.geom.Rectangle2D |
getScreenDataArea(int x,
int y)
Returns the data area for the chart with the current scaling applied. |
IChartShape |
getShapeForPoint(java.awt.geom.Point2D point)
Returns the shape which contains the specified point. |
IChartShape |
getShapeForPoint(java.awt.geom.Point2D point,
ChartShapeDrawType drawType)
Returns the shape which contains the specified point. |
java.util.List |
getShowTooltipShapeTypeList()
Returns all shape types to display tooltip. |
java.lang.Object |
getTextAntiAlias()
Returns the current value stored in the rendering hints table for RenderingHints.KEY_TEXT_ANTIALIASING . |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
Returns the tooltip text. |
protected java.awt.geom.Line2D |
getVerticalTraceLine()
Returns the vertical trace line. |
java.awt.Paint |
getZoomBorderPaint()
Returns the paint used to draw the zoom rectangle border. |
java.awt.Paint |
getZoomFillPaint()
Returns the paint used to fill the zoom rectangle. |
double |
getZoomInFactor()
Returns the zoom in factor. |
double |
getZoomOutFactor()
Returns the zoom out factor. |
double |
getZoomTriggerDistance()
Returns the minimum distance required to drag the mouse to trigger a zoom. |
boolean |
isDomainZoomable()
Returns the flag that controls whether or not domain axis zooming is enabled. |
boolean |
isFillZoomRectangle()
Returns whether or not the zoom rectangle is filled. |
boolean |
isRefreshBuffer()
Returns the flag that indicates that the buffer should be refreshed. |
boolean |
isValueZoomable()
Returns the flag that controls whether or not value axis zooming is enabled. |
boolean |
isVerticalAxisTrace()
Returns the flag that controls whether or not vertical tracing is enabled. |
boolean |
isZoomable()
Returns controls whether or not zoomable. |
void |
mouseClicked(java.awt.event.MouseEvent event)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseDragged(java.awt.event.MouseEvent event)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(java.awt.event.MouseEvent event)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent event)
Invoked when the mouse exits a component. |
void |
mouseMoved(java.awt.event.MouseEvent event)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. |
void |
mousePressed(java.awt.event.MouseEvent event)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent event)
Invoked when a mouse button has been released on a component. |
void |
paintComponent(java.awt.Graphics g)
Drawing the chart. |
void |
removeChartMouseListener(IChartMouseListener listener)
Removes a listener. |
void |
removeShowTooltipShapeType(ChartShapeDrawType drawType)
Remove a shape type to display tooltip. |
void |
restoreAutoBounds()
Restores the auto-range calculation on both axes. |
void |
restoreAutoDomainBounds()
Restores the auto-range calculation on the category axis. |
void |
restoreAutoValueBounds()
Restores the auto-range calculation on the value axis. |
java.awt.geom.Rectangle2D |
scale(java.awt.geom.Rectangle2D rect)
Applies any scaling that is in effect for the chart drawing to the given rectangle. |
void |
setAntiAlias(boolean flag)
Sets a flag that indicates whether or not anti-aliasing is used when the chart is drawn. |
void |
setChart(IJChart chart)
Sets the chart that is displayed in the panel. |
void |
setDismissDelay(int delay)
Sets the dismiss tooltip delay to be used in this chart panel. |
void |
setDisplayToolTips(boolean flag)
Sets whether or not show tooltips. |
void |
setDomainZoomable(boolean flag)
Sets the flag that controls whether or not domain axis zooming is enabled. |
void |
setFillZoomRectangle(boolean flag)
Sets the flag that controls whether or not the zoom rectangle is filled. |
void |
setHorizontalAxisTrace(boolean flag)
Sets the flag that controls whether or not horizontal tracing is enabled. |
void |
setHorizontalTraceLine(java.awt.geom.Line2D line)
Sets the horizontal trace line. |
void |
setInitialDelay(int delay)
Sets the initial tooltip delay to be used in this chart panel. |
void |
setMinimumDrawHeight(double height)
Sets the minimum height for drawing a chart. |
void |
setMinimumDrawWidth(double width)
Sets the minimum width for drawing a chart. |
void |
setMouseZoomable(boolean flag)
A convenience method that switches on mouse-based zooming. |
void |
setMouseZoomable(boolean flag,
boolean fillRectangle)
A convenience method that switches on mouse-based zooming. |
void |
setRefreshBuffer(boolean flag)
Sets the flag that indicates that the buffer should be refreshed. |
void |
setRenderingHints(java.awt.RenderingHints renderingHints)
Sets the rendering hints for the chart,and sends a ChartChangeEvent to all registered listeners. |
void |
setReshowDelay(int delay)
Sets the reshow tooltip delay to be used in this chart panel. |
void |
setTextAntiAlias(boolean flag)
Sets the value in the rendering hints table for RenderingHints.KEY_TEXT_ANTIALIASING to either
RenderingHints.VALUE_TEXT_ANTIALIAS_ON or
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF , then sends a
ChartChangeEvent to all registered listeners. |
void |
setTextAntiAlias(java.lang.Object val)
Sets the value in the rendering hints table for RenderingHints.KEY_TEXT_ANTIALIASING to either
RenderingHints.VALUE_TEXT_ANTIALIAS_ON or
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF , then sends a
ChartChangeEvent to all registered listeners. |
void |
setValueZoomable(boolean flag)
Sets the flag that controls whether or not value axis zooming is enabled. |
void |
setVerticalAxisTrace(boolean flag)
Sets the flag that controls whether or not vertical tracing is enabled. |
protected void |
setVerticalTraceLine(java.awt.geom.Line2D line)
Sets the vertical trace line. |
void |
setZoomable(boolean flag)
Sets controls whether or not zoomable and sends a RenderChangeEvent to all registered listeners. |
void |
setZoomBorderPaint(java.awt.Paint paint)
Sets the paint used to draw the zoom rectangle border. |
void |
setZoomFillPaint(java.awt.Paint paint)
Sets the paint used to fill the zoom rectangle border. |
void |
setZoomInFactor(double factor)
Returns the zoom in factor. |
void |
setZoomOutFactor(double factor)
Sets the zoom out factor. |
void |
setZoomTriggerDistance(double distance)
Sets the minimum distance required to drag the mouse to trigger a zoom. |
java.awt.geom.Point2D |
translateJava2DToScreen(java.awt.geom.Point2D java2DPoint)
Translates a Java2D point on the chart to a screen location.. |
java.awt.geom.Point2D |
translateScreenToJava2D(java.awt.geom.Point2D screenPoint)
Translates a panel (component) location to a Java2D point. |
void |
zoom(java.awt.geom.Rectangle2D selection)
Zooms in on a selected region. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, 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, hide, 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, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public static final int DEFAULT_MINIMUM_DRAW_WIDTH
public static final int DEFAULT_MINIMUM_DRAW_HEIGHT
public static final int DEFAULT_MAXIMUM_DRAW_WIDTH
public static final int DEFAULT_MAXIMUM_DRAW_HEIGHT
public static final int DEFAULT_ZOOM_TRIGGER_DISTANCE
public static final double DEFAULT_ZOOM_IN_FACTOR
public static final double DEFAULT_ZOOM_OUT_FACTOR
public static final boolean DEFAULT_VERTICAL_AXIS_TRACE
public static final boolean DEFAULT_HORIZONTAL_AXIS_TRACE
public static final boolean DEFAULT_FILL_ZOOM_RECTANGLE
public static final java.awt.Paint DEFAULT_ZOOM_BORDER_PAINT
public static final java.awt.Paint DEFAULT_ZOOM_FILL_PAINT
public static final boolean DEFAULT_ZOOMABLE
Constructor Detail |
---|
public ChartPanel(IJChart chart)
chart
- IJChart
The IJChart object.public ChartPanel(IJChart chart, boolean showTooltips)
chart
- IJChart
The IJChart object.showTooltips
- boolean
Whether or not show tooltips.public ChartPanel(IJChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, boolean showTooltips)
chart
- IJChart
The IJChart object.width
- int
The width.height
- int
The height.minimumDrawWidth
- int
The minimum drawing width.minimumDrawHeight
- int
The minimum drawing height.showTooltips
- boolean
Whether or not show tooltips.Method Detail |
---|
public IJChart getChart()
public void setChart(IJChart chart)
chart
- IJChart
The chart (null permitted).public double getMinimumDrawWidth()
public void setMinimumDrawWidth(double width)
width
- double
The width.public double getMinimumDrawHeight()
public void setMinimumDrawHeight(double height)
height
- double
The height.public double getScaleX()
public double getScaleY()
public void setMouseZoomable(boolean flag)
flag
- boolean
A boolean.public void setMouseZoomable(boolean flag, boolean fillRectangle)
flag
- boolean
A boolean.fillRectangle
- boolean
true if zoom rectangle is filled,false if rectangle is shown as outline only.public boolean isDomainZoomable()
public void setDomainZoomable(boolean flag)
flag
- boolean
A boolean.public boolean isValueZoomable()
public void setValueZoomable(boolean flag)
flag
- boolean
A boolean.public java.awt.Paint getZoomBorderPaint()
public void setZoomBorderPaint(java.awt.Paint paint)
paint
- Paint
The paint (null not permitted).public java.awt.Paint getZoomFillPaint()
public void setZoomFillPaint(java.awt.Paint paint)
paint
- Paint
The paint (null not permitted).public boolean isFillZoomRectangle()
public void setFillZoomRectangle(boolean flag)
flag
- boolean
A boolean.public double getZoomTriggerDistance()
public void setZoomTriggerDistance(double distance)
distance
- double
The distance.public boolean getHorizontalAxisTrace()
public void setHorizontalAxisTrace(boolean flag)
flag
- boolean
A boolean.public java.awt.geom.Line2D getHorizontalTraceLine()
public void setHorizontalTraceLine(java.awt.geom.Line2D line)
line
- Line2D
The line (null permitted).public boolean isVerticalAxisTrace()
public void setVerticalAxisTrace(boolean flag)
flag
- boolean
A boolean.protected java.awt.geom.Line2D getVerticalTraceLine()
protected void setVerticalTraceLine(java.awt.geom.Line2D line)
line
- Line2D
The line (null permitted).public void setDisplayToolTips(boolean flag)
flag
- boolean
A boolean.public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JComponent
event
- MouseEvent
The mouse event (null not permitted).
public java.awt.geom.Point2D translateJava2DToScreen(java.awt.geom.Point2D java2DPoint)
java2DPoint
- Point2D
The Java2D point (null not permitted).
public java.awt.geom.Point2D translateScreenToJava2D(java.awt.geom.Point2D screenPoint)
screenPoint
- Point2D
The screen location (null not permitted).
public java.awt.geom.Rectangle2D scale(java.awt.geom.Rectangle2D rect)
rect
- Rectangle2D
The rectangle (null not permitted).
public IChartShape getShapeForPoint(java.awt.geom.Point2D point)
point
- Point2D
The point (null not permitted).
public IChartShape getShapeForPoint(java.awt.geom.Point2D point, ChartShapeDrawType drawType)
point
- Point2D
The point (null not permitted).drawType
- ChartShapeDrawType
The shape draw shape (null permitted).
public boolean isRefreshBuffer()
public void setRefreshBuffer(boolean flag)
flag
- boolean
A boolean.public void addShowTooltipShapeType(ChartShapeDrawType drawType)
drawType
- ChartShapeDrawType
The shape type (null not permitted).public void removeShowTooltipShapeType(ChartShapeDrawType drawType)
drawType
- ChartShapeDrawType
The shape type (null not permitted).public void clearShowTooltipShapeType()
public java.util.List getShowTooltipShapeTypeList()
public boolean isZoomable()
public void setZoomable(boolean flag)
RenderChangeEvent
to all registered listeners.
flag
- boolean
A boolean.public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
g
- Graphics
The graphics device.public void chartChanged(ChartChangeEvent event)
chartChanged
in interface IChartChangeListener
event
- ChartChangeEvent
The event (null permitted).public void chartShapeChanged(ChartShapeChangeEvent event)
IChartShape
change event.
chartShapeChanged
in interface IChartShapeChangeListener
event
- ChartShapeChangeEvent
Information about the event.public void chartProgress(ChartProgressEvent event)
chartProgress
in interface IChartProgressListener
event
- ChartProgressEvent
The event.public void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
event
- MouseEvent
The mouse event.public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
event
- MouseEvent
The mouse event.public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
event
- MouseEvent
The mouse event.public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- MouseEvent
The mouse event.public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
event
- MouseEvent
The mouse event.public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
event
- MouseEvent
The mouse event.public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- MouseEvent
The mouse event.public void zoom(java.awt.geom.Rectangle2D selection)
selection
- Rectangle2D
The selected region.public void restoreAutoBounds()
public void restoreAutoDomainBounds()
public void restoreAutoValueBounds()
public java.awt.geom.Rectangle2D getScreenDataArea()
public java.awt.geom.Rectangle2D getScreenDataArea(int x, int y)
x
- int
The x-coordinate.y
- int
The y-coordinate.
public int getInitialDelay()
public void setInitialDelay(int delay)
delay
- int
An integer representing the initial delay value,in millisecondspublic int getReshowDelay()
public void setReshowDelay(int delay)
delay
- int
An integer representing the reshow delay value,in milliseconds.public int getDismissDelay()
public void setDismissDelay(int delay)
delay
- int
An integer representing the dismiss delay value,in milliseconds.public double getZoomInFactor()
public void setZoomInFactor(double factor)
factor
- double
The zoom in factor.public double getZoomOutFactor()
public void setZoomOutFactor(double factor)
factor
- double
The zoom out factor.public java.awt.Point getMouseClickPoint()
public java.awt.RenderingHints getRenderingHints()
public void setRenderingHints(java.awt.RenderingHints renderingHints)
ChartChangeEvent
to all registered listeners.
renderingHints
- RenderingHints
The rendering hints (null not permitted).public boolean getAntiAlias()
public void setAntiAlias(boolean flag)
Anti-aliasing usually improves the appearance of charts, but is slower.
flag
-
The new value of the flag.public java.lang.Object getTextAntiAlias()
RenderingHints.KEY_TEXT_ANTIALIASING
.
public void setTextAntiAlias(boolean flag)
RenderingHints.KEY_TEXT_ANTIALIASING
to either
RenderingHints.VALUE_TEXT_ANTIALIAS_ON
or
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF
, then sends a
ChartChangeEvent
to all registered listeners.
flag
- boolean
The new value of the flag.public void setTextAntiAlias(java.lang.Object val)
RenderingHints.KEY_TEXT_ANTIALIASING
to either
RenderingHints.VALUE_TEXT_ANTIALIAS_ON
or
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF
, then sends a
ChartChangeEvent
to all registered listeners.
val
- Object
The new value (null permitted),the value maybe
RenderingHints.KEY_TEXT_ANTIALIASING
or
RenderingHints.VALUE_TEXT_ANTIALIAS_ON
or
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF
(null not permitted).public void addChartMouseListener(IChartMouseListener listener)
listener
- ChartMouseListener
The listener.public void removeChartMouseListener(IChartMouseListener listener)
listener
- ChartMouseListener
The listener.public java.util.EventListener[] getListeners(java.lang.Class listenerType)
getListeners
in class javax.swing.JComponent
listenerType
- Class
The listener class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |