Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IlvChartPanInteractor

IlvObject
   |
   +--IlvInteractor
      |
      +--IlvChartPanInteractor

Category:
Charts component
JavaScript File:
IlvChartPanInteractor.js
Description:
An interactor to scroll the plot area of an IlvChart DHTML component.

Constructor Summary
Constructor Attributes Constructor Name and Description
 
IlvChartPanInteractor(actionName)
Method Summary
Method Attributes Method Name and Description
 
Adds a listener that is called every time a rectangle is dragged.
 
Returns the color of the dragged rectangle.
 
Returns the line width of the dragged rectangle.
 
Returns whether a pan along the x-axis is allowed.
 
Returns whether a pan along the y-axis is allowed.
 
Handles the 'down' events of the mouse.
 
Handles the 'move' events of the mouse.
 
mouseUp(e)
Handles the 'up' events of the mouse.
 
Removes a listener installed with addRectangleDraggedListener.
 
setColor(color)
Sets the color of the dragged rectangle.
 
setLineWidth(width)
Sets the line width of the dragged rectangle.
 
setXPanAllowed(allowed)
Sets whether a pan along the x-axis is allowed.
 
setYPanAllowed(allowed)
Sets whether a pan along the y-axis is allowed.
 
Starts the drag.
 
Ends the drag.
 
When dragging.
Methods inherited from class IlvInteractor
getCursor, getMenuModelId, getMessage, getView, setCursor, setMenuModelId, setMessage, setView
Methods inherited from class IlvObject
dispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility
Constructor Detail
IlvChartPanInteractor
IlvChartPanInteractor(actionName)
Parameters:
actionName - The name of the associated server action.
Method Detail
addRectangleDraggedListener
addRectangleDraggedListener(listener)
Adds a listener that is called every time a rectangle is dragged. The listener object should be a function with one parameter: event. The event parameter contains three attributes: deltaX and deltaY describe the translation in the view coordinate system. The third parameter is mouseEvent, which contains the mouse event that generated the end drag.
Parameters:
listener - The listener to set.

getColor
getColor()
Returns the color of the dragged rectangle.

getLineWidth
getLineWidth()
Returns the line width of the dragged rectangle.

isXPanAllowed
isXPanAllowed()
Returns whether a pan along the x-axis is allowed.

isYPanAllowed
isYPanAllowed()
Returns whether a pan along the y-axis is allowed.

mouseDown
mouseDown(e)
Handles the 'down' events of the mouse.
Parameters:
e - The mouse event.

mouseDrag
mouseDrag(e)
Handles the 'move' events of the mouse.
Parameters:
e - The mouse event.

mouseUp
mouseUp(e)
Handles the 'up' events of the mouse.
Parameters:
e - The mouse event.

removeRectangleDraggedListener
removeRectangleDraggedListener(listener)
Removes a listener installed with addRectangleDraggedListener.
Parameters:
listener - The listener to remove.

setColor
setColor(color)
Sets the color of the dragged rectangle.
Parameters:
color - The new color.

setLineWidth
setLineWidth(width)
Sets the line width of the dragged rectangle.
Parameters:
width - The new width.

setXPanAllowed
setXPanAllowed(allowed)
Sets whether a pan along the x-axis is allowed.
Parameters:
allowed - Set whether a pan along the x-axis is allowed.

setYPanAllowed
setYPanAllowed(allowed)
Sets whether a pan along the y-axis is allowed.
Parameters:
allowed - Set whether a pan along the y-axis is allowed.

startDragging
startDragging(e)
Starts the drag.
Parameters:
e - The mouse event.

stopDragging
stopDragging(e)
Ends the drag.
Parameters:
e - The mouse event.

whileDragging
whileDragging(e)
When dragging.
Parameters:
e - The mouse event.

©Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.