public class IlvChartPopupMenuSupport extends IlvPopupMenuServletSupport
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME| Constructor and Description |
|---|
IlvChartPopupMenuSupport(IlvChartServletSupport support)
Creates an
IlvChartPopupMenuSupport. |
| Modifier and Type | Method and Description |
|---|---|
protected IlvChartDataPicker |
createDataPicker(int x,
int y)
Creates the data picker used to retrieve the selected object on the view.
|
protected IlvChartServerAction |
createListener()
Returns the server action listener that manages
the actions that come from the pop-up menu.
|
protected IlvChart |
getChart(jakarta.servlet.http.HttpServletRequest request)
Returns the
IlvChart instance used to render the image. |
protected Object |
getGraphicComponent(jakarta.servlet.http.HttpServletRequest request)
Returns the
IlvChart instance used to render the image. |
protected String |
getMenuModelId(jakarta.servlet.http.HttpServletRequest request)
Returns the menu model ID set on the client interactor of the view.
|
protected Object |
getSelectedObject(jakarta.servlet.http.HttpServletRequest request,
int x,
int y)
Returns the
IlvDisplayPoint instance selected when user triggered the
pop-up menu. |
protected IlvChartServletSupport |
getSupport()
Returns the image servlet support.
|
void |
installListeners()
Installs the listeners to properly handle the pop-up menu actions.
|
void |
removeListeners()
Removes the listeners previously installed through the
installListeners() method. |
createMenu, createMenu, getMenuEncoder, getMenuFactory, getPopupMenuFromSession, getServletContext, handleRequest, prepareComponent, savePopupMenuModelInSession, setMenuFactory, setServletContextpublic IlvChartPopupMenuSupport(IlvChartServletSupport support)
IlvChartPopupMenuSupport.support - The standard servlet support.protected Object getGraphicComponent(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvChart instance used to render the image.getGraphicComponent in class IlvPopupMenuServletSupportrequest - The HTTP request.jakarta.servlet.ServletExceptionprotected IlvChart getChart(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvChart instance used to render the image.getGraphicComponent(HttpServletRequest request)
method and casts the returned value to IlvChart.jakarta.servlet.ServletExceptionprotected Object getSelectedObject(jakarta.servlet.http.HttpServletRequest request, int x, int y) throws jakarta.servlet.ServletException
IlvDisplayPoint instance selected when user triggered the
pop-up menu. The point is retrieved according to the mode specified by the client.getSelectedObject in class IlvPopupMenuServletSupportrequest - The HTTP request.x - x coordinate in image view coordinate system.y - y coordinate in image view coordinate system.jakarta.servlet.ServletExceptionIlvPopupMenuServletSupport.getGraphicComponent(HttpServletRequest)protected String getMenuModelId(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
getMenuModelId in class IlvPopupMenuServletSupportrequest - The HTTP request.jakarta.servlet.ServletExceptionprotected IlvChartDataPicker createDataPicker(int x, int y)
x - The x coordinate of the clicked point.y - The y coordinate of the clicked point.protected IlvChartServletSupport getSupport()
protected IlvChartServerAction createListener()
By default this method returns a new instance of
IlvPopupChartServerAction.
Subclasses may override this method to register a custom listener.
public void installListeners()
installListeners in class IlvPopupMenuServletSupportpublic void removeListeners()
installListeners() method.removeListeners in class IlvPopupMenuServletSupport© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.