IlvObject | +--IlvEmptyView | +--IlvResizableView | +--IlvAbstractView | +--IlvChartComponentView | +--IlvChartView
IlvChartView
is a component that displays an image obtained from a
server.
You must call the setServletURL()
method
to set the URL of the servlet.
The class IlvInteractor
allows you to implement some
interaction on the view.Constructor Attributes | Constructor Name and Description |
---|---|
IlvChartView(left, top, width, height, reload, namespace)
|
Method Attributes | Method Name and Description |
---|---|
addCapabilitiesLoadListener(listener)
Adds a listener to be called when the capabilities have been loaded.
|
|
addInteractorListener(listener)
Adds a listener to be called when an interactor has changed on the view
|
|
Creates the HTTP request for capabilities.
|
|
createImageRequestURL(width, height)
Creates the URL for the image request.
|
|
dispose()
Disposes of all resources being used by the view.
|
|
Queries the server for the capabilities.
|
|
Returns an array of strings of available data sets on the server.
|
|
Returns the visible window.
|
|
Returns the legend associated with this chart.
|
|
Returns the maximum zoom level available on the server side.
|
|
Returns the plot area bounds.
|
|
Returns the pop-up menu on set this view.
|
|
Returns the automatic update interval of the view.
|
|
Returns the visible window.
|
|
Returns the visible range along the x-axis.
|
|
Returns the factor used when calling the
zoomIn and
zoomOut methods. |
|
Returns the visible range along the y-axis.
|
|
Returns the factor used when calling the
zoomIn and
zoomOut methods. |
|
This method is automatically invoked when the image has been loaded
from the server.
|
|
init()
Initializes the view.
|
|
is3D()
Returns whether the chart is rendered in 3-D.
|
|
Returns whether the automatic update will also update the capabilities.
|
|
Returns whether the legend view is updated each time a new image is loaded.
|
|
Returns whether the capabilities have been loaded from the server.
|
|
Returns whether the chart uses a cartesian projector
|
|
Tells if the view is deleting its cookies on dispose
|
|
isInPlotRect(x, y)
Returns whether the specified point lies within the plot area.
|
|
Returns whether the chart axis have been swapped.
|
|
keyDown(e)
Handles Key down events.
|
|
keyPress(e)
Handles Key press events.
|
|
keyUp(e)
Handles Key up events.
|
|
mouseDown(e)
Handles the 'down' events of the mouse.
|
|
mouseDrag(e)
Handles the 'drag' events of the mouse.
|
|
mouseMove(e)
Handles the 'move' events of the mouse.
|
|
mouseOut(e)
Handles the 'out' events of the mouse.
|
|
mouseOver(e)
Handles the 'over' events of the mouse.
|
|
mouseUp(e)
Handles the 'up' events of the mouse.
|
|
onCapabilitiesLoaded(context)
This method is automatically invoked when the capabilities have been loaded
from the server.
|
|
performAction(actionName, params, udpateImage)
Performs an action on the server side.
|
|
readAdditionalCapabilities(context)
Reads additional information generated by the capabilities request.
|
|
removeCapabilitiesLoadListener(listener)
Removes a listener installed with
addCapabilitiesLoadListener . |
|
removeInteractorListener(listener)
Removes a listener installed with
addInteractorListener . |
|
Resets the visible range and data range.
|
|
Resets the timer that will invoke the session expiration handler.
|
|
Sets whether the automatic update will also update the capabilities.
|
|
setAutoUpdateLegend(autoUpdate)
Sets whether the legend view is updated each time a new image is loaded.
|
|
Tells the view should delete its cookie when the dispose
function is called.
|
|
setLegend(legend)
Sets the legend associated with this chart.
|
|
setPopupMenu(popupMenu)
Sets the pop-up menu on this view.
|
|
setSessionExpirationHandler(handler)
Sets a listener that will be called when the HTTP session is about to be invalidated.
|
|
setUpdateInterval(rate)
Changes the automatic update interval of the view.
|
|
setVisibleWindow(xMin, xMax, yMin, yMax)
Sets the visible window.
|
|
setXVisibleRange(newMin, newMax)
Sets the visible range along the x-axis and update the image.
|
|
setXZoomFactor(factor)
Changes the factor used when calling the
zoomIn and
zoomOut methods. |
|
setYVisibleRange(newMin, newMax)
Sets the visible range along the y-axis and update the image.
|
|
setYZoomFactor(factor)
Changes the factor used when calling the
zoomIn and
zoomOut methods. |
|
Starts the update timer.
|
|
Stops the update timer.
|
|
translateX(delta)
Translates the chart area along the x-axis.
|
|
translateY(delta)
Translates the chart area along the y-axis.
|
|
updateImage(updateCapabilities)
Queries a new image from the server.
|
|
zoomBy(xFactor, yFactor)
Zooms the view to a specified factor by querying a new image from the server.
|
|
zoomInX()
Zooms the view along the x-axis in by querying a new image from the server.
|
|
zoomInY()
Zooms the view along the y-axis in by querying a new image from the server.
|
|
zoomOutX()
Zooms the view out along the x-axis by querying a new image from the server.
|
|
zoomOutY()
Zooms the view out along the y-axis by querying a new image from the server.
|
|
Queries a new image showing all the data available from the server.
|
childrenToHTML, getCursor, getGlassView, getHitInfos, getHitInfoTypes, getInteractor, putHitInfoType, setAccessible, setAdditionalParameters, setCursor, setHitmapLayers, setInteractor, setScrollBarSize, setScrollBarState |
getMaximumSize, getMinimumSize, isResizable, setHotkeys, setMaximumSize, setMinimumSize, setResizable, toHTML |
addSizeListener, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie |
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
false
.
IlvView
s in multiple browser windows,
or in multiple frames of a frameset and the views must store cookies that
should not conflict with each other. In this case, use the namespace to uniquely
identify the views that belong to a specific browser window or frameset frame.
For example, if you have created a new window with a unique name:
you can then use the window name to define the namespace for views within the child page:open(childPageURL, uniqueWindowName, ...);
var view = new IlvXXXXView(..., window.name);
view: The IlvChartView
.
view: TheIlvChartView
. oldInteractor: The old interactor (IlvInteractor
). newInteractor: The new interactor (IlvInteractor
).
IlvObject.callDispose()
function on the onunload
event
of the page:
<body onunload="IlvObject.callDispose()">
onCapabilitiesLoaded
method is
automatically invoked with the same parameter values.
zoomIn
and
zoomOut
methods.
zoomIn
and
zoomOut
methods.
onLoad
event of the page
containing the view.
e.type: a string representing the event type, e.keyCode: the code of the key.
e.type: a string representing the event type, e.keyCode: the code of the key.
e.type: a string representing the event type, e.keyCode: the code of the key.
e.type: a string representing the event type, e.mouseX: the mouse coordinates relative to the view, e.mouseY: the mouse coordinates relative to the view, e.screenX: the absolute mouse coordinates in the screen, e.screenY: the absolute mouse coordinates in the screen, e.altKey: a Boolean,true
when the ALT key is pressed, e.ctrlKey: a Boolean,true
when the CONTROL key is pressed, e.shiftKey: a Boolean,true
when the SHIFT key is pressed.
e.type: a string representing the event type, e.mouseX: the mouse coordinates relative to the view, e.mouseY: the mouse coordinates relative to the view, e.screenX: the absolute mouse coordinates in the screen, e.screenY: the absolute mouse coordinates in the screen, e.altKey: a Boolean,true
when the ALT key is pressed, e.ctrlKey: a Boolean,true
when the CONTROL key is pressed, e.shiftKey: a Boolean,true
when the SHIFT key is pressed.
e.type: a string representing the event type, e.mouseX: the mouse coordinates relative to the view, e.mouseY: the mouse coordinates relative to the view, e.screenX: the absolute mouse coordinates in the screen, e.screenY: the absolute mouse coordinates in the screen, e.altKey: a Boolean,true
when the ALT key is pressed, e.ctrlKey: a Boolean,true
when the CONTROL key is pressed, e.shiftKey: a Boolean,true
when the SHIFT key is pressed.
e.type: a string representing the event type, e.mouseX: the mouse coordinates relative to the view, e.mouseY: the mouse coordinates relative to the view, e.screenX: the absolute mouse coordinates in the screen, e.screenY: the absolute mouse coordinates in the screen, e.altKey: a Boolean,true
when the ALT key is pressed, e.ctrlKey: a Boolean,true
when the CONTROL key is pressed, e.shiftKey: a Boolean,true
when the SHIFT key is pressed.
e.type: a string representing the event type, e.mouseX: the mouse coordinates relative to the view, e.mouseY: the mouse coordinates relative to the view, e.screenX: the absolute mouse coordinates in the screen, e.screenY: the absolute mouse coordinates in the screen, e.altKey: a Boolean,true
when the ALT key is pressed, e.ctrlKey: a Boolean,true
when the CONTROL key is pressed, e.shiftKey: a Boolean,true
when the SHIFT key is pressed.
e.type: a string representing the event type, e.mouseX: the mouse coordinates relative to the view, e.mouseY: the mouse coordinates relative to the view, e.screenX: the absolute mouse coordinates in the screen, e.screenY: the absolute mouse coordinates in the screen, e.altKey: a Boolean,true
when the ALT key is pressed, e.ctrlKey: a Boolean,true
when the CONTROL key is pressed, e.shiftKey: a Boolean,true
when the SHIFT key is pressed.
IlvChartServerAction
interface and register the
action with an instance of IlvChartServletSupport
. An action is
defined by a name and a list of parameters.
true
to update capabilities and the image,
false
to update just the capabilities.
addCapabilitiesLoadListener
.
addInteractorListener
.
true
.
Note that setting this property to false
implies that all capabilites
(including both axis data range and visible range) do not
change between two updates.
false
.
IlvLegendView
instance.
This method works if and only if the session inactivity is reset by a JViews request. If the session inactivity is reset by an external request, the #resetSessionExpirationTimer method must be called.
This method must be called before the capabilities request is made.
zoomIn
and
zoomOut
methods.
The default value is 2.
zoomIn
and
zoomOut
methods.
The default value is 2.
setXZoomFactor()
method.
setYZoomFactor()
method.