public class IlvFacesMapsServletSupport extends IlvFacesDiagrammerServletSupport
IlvFacesMapsServletSupport class is an extension of the
IlvFacesDiagrammerServletSupport
that handles requests coming from the DHTML faces maps component.ImageMapAreaGeneratorPropertyDASHBOARD_DIAGRAM, DATA_SOURCE, DATA_URL, DIAGRAMMER, EDITABLE, INPUT_XSL, OUTPUT_XSL, PARAM_CSS, PARAM_XML, PROPERTY_ACCESSOR, STYLE_SHEETSSESSION_ID_PREFIX, STATE_URL, STATIC_LAYERS_COUNT_PARAM, TILE_MANAGER, UPDATE_INTERVALAUTO_REFRESH, BOUNDING_BOX, COLOR, CONSTRAINED_ON_CONTENTS, GROUPABLE, HITMAP_LAYERS, IGNORE_CONTENT_ASPECT_RATIO, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, OPACITY, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TEMPLATE, TILE_SIZE, TOLERANCE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELSACCESSIBLE, ACTION_NAME, AUTO_SUBMIT, BACKGROUND_COLOR, CAPABILITIES_LOADED_HANDLER, COMPONENT, DO_ACTION_ON_BG_DESELECT, ERROR_MESSAGE, GENERATE_IMAGE_MAP, HOTKEYS, IMAGE_FORMAT, IMAGE_LOADED_HANDLER, IMAGE_MAP_GENERATOR, IMAGE_MAP_GENERATOR_CLASS, IMAGE_MAP_VISIBLE, IMAGE_SERVLET_CONTEXT, INVOCATION_CONTEXT, JSF_CONTEXT, ON_CLICK, ON_SELECTION_CHANGED, PARTIAL_SUBMIT, PORTLET_CONTEXT_KEY, PORTLET_SESSION_KEY, REPLACE_PATTERN, RESIZABLE, SELECTION_RESIZABLE_CLASS, SESSION_EXP_HANDLER, SUBMITTED_VALUE, WAITING_IMAGEAFTER_HANDLER, BASETEXTDIRECTION, BEFORE_HANDLER, BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CHARTS_MESSAGE_BUNDLE, CORE_BUNDLE, CORE_MESSAGE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, DIAGRAMMER_MESSAGE_BUNDLE, ENABLED, EVENT_TYPE, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, FRAMEWORK_MESSAGE_BUNDLE, GANTT_BUNDLE, GANTT_MESSAGE_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, INTERACTORS, INTERCEPT_INTERACTOR, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MAPS_MESSAGE_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROGRESSIVE_ZOOM, PROJECT, RENDER, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SCROLL_BAR, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TGO_MESSAGE_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH| Constructor and Description |
|---|
IlvFacesMapsServletSupport()
Constructs an
IlvFacesMapsServletSupport. |
IlvFacesMapsServletSupport(jakarta.servlet.ServletContext context)
Constructs an
IlvFacesMapsServletSupport by passing a
ServletContext. |
| Modifier and Type | Method and Description |
|---|---|
float |
getDynamicJPEGQuality()
Returns the
JPEGQuality to be used for dynamic objects. |
IlvManagerLayer[] |
getDynamicLayers(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
Returns an array of
IlvManagerLayer instances that are known to be dynamic. |
IlvManagerLayer[] |
getLayers(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
Returns only the nonempty layers.
|
float |
getStaticJPEGQuality()
Returns the
JPEGQuality used for static objects. |
double[] |
getZoomLevels(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
Returns the zoom levels that a client of this servlet should use to take
advantage of the tiling and caching mechanisms.
|
boolean |
handleRequest(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
This method is overridden to handle the
"project"
parameter. |
protected boolean |
isOverviewLayer(jakarta.servlet.http.HttpServletRequest request,
IlvManagerLayer layer)
Indicates if the specified layer is a visible layer in the overview.
|
protected void |
prepareManagerView(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
This method is overridden to set the reference zoom of the view and to
add support for
IlvJComponentGraphic objects. |
void |
setDynamicJPEGQuality(float dynamicJPEGQuality)
Sets the
JPEGQuality to be used for dynamic objects (the default value is 1). |
void |
setStaticJPEGQuality(float staticJPEGQuality)
Sets the
JPEGQuality used for static objects (the default value is 0.75). |
additionalCapabilities, addJSFActionListeners, createPopupMenuSupport, createSelectionSupport, findFile, generateImage, getFacesContext, getImageMapAreaGenerator, getImageMapAreaGenerator, getLock, getMenuFactory, getSDMView, getTileManager, getValue, isSessionExpired, setDataSource, setValue, shouldGenerateImageMapgetDefaultProject, getDiagrammer, initSDMView, setDefaultProject, setProjectgetDataURL, getDefaultStyleSheet, getDefaultXmlFile, getImageMapAreaGenerator, getManagerView, installImageMapAreaGenerator, installImageMapAreaGenerator, isMultiSession, setDataURL, setDefaultStyleSheet, setDefaultXmlFile, setMultiSession, setStyleSheet, setXmlFileadditionalCapabilities, addServerActionListener, addServerActionListener, beforeDraw, encodeImage, generateImageWhenSessionExpired, getAdditionalCapabilities, getAntialiasing, getContentLengthEnable, getContext, getDefaultImageMapHREF, getExpirationDate, getGraphicObjectComparator, getHitmapSupport, getInternalLock, getJPEGQuality, getKey, getManagerBBox, getManagerLayerComparator, getMaxZoomLevel, getMinZoomLevel, getPopupMenuSupport, getSelectionSupport, isPopupEnabled, isSelectionEnabled, isVerbose, removeServerActionListener, removeServerActionListener, setAntialiasing, setContentLengthEnable, setImageResponseCachePolicy, setJPEGQuality, setPopupEnabled, setSelectionEnabled, setVerbose, useTileManagerdoGetScriptMessage, getParameterValidationListener, getScriptMessageSupport, setParameterValidationListenerpublic IlvFacesMapsServletSupport()
IlvFacesMapsServletSupport.public IlvFacesMapsServletSupport(jakarta.servlet.ServletContext context)
IlvFacesMapsServletSupport by passing a
ServletContext.context - The ServletContext.protected boolean isOverviewLayer(jakarta.servlet.http.HttpServletRequest request,
IlvManagerLayer layer)
IlvMapLayer and that have their
IlvMapStyle.VISIBLE_IN_OVERVIEW style attribute set to
true. Labeling layers are not visible in the overview.isOverviewLayer in class IlvManagerServletSupportrequest - The current HttpRequest.layer - The layer to check.true, the layer is visible in the overview,
otherwise false.IlvManagerServletSupport.getLayers(HttpServletRequest, IlvManagerView)protected void prepareManagerView(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
throws jakarta.servlet.ServletException
IlvJComponentGraphic objects.
This method has been overridden to configure the manager view for tiling.prepareManagerView in class IlvFacesDiagrammerServletSupportrequest - The current HTTP request.view - The manager view.jakarta.servlet.ServletExceptionpublic IlvManagerLayer[] getDynamicLayers(jakarta.servlet.http.HttpServletRequest request, IlvManagerView view)
IlvManagerLayer instances that are known to be dynamic.
This implementation returns the layers that have an index greater or equal
to the value returned by IlvManagerView.getTripleBufferedLayerCount().
IlvMapLayer and have a style that specifies
the THIN_CLIENT_BACKGROUND property to false are also considered as dynamic
layers.getDynamicLayers in class IlvManagerServletSupportrequest - The current HttpServletRequest.view - The IlvManagerView returned by getManagerView().IlvManagerView.getTripleBufferedLayerCount()public IlvManagerLayer[] getLayers(jakarta.servlet.http.HttpServletRequest request, IlvManagerView view)
getLayers in class IlvSDMServletSupportrequest - The current HTTP request.view - The manager view.IlvSDMServletSupport.getLayers(jakarta.servlet.http.HttpServletRequest, ilog.views.IlvManagerView)public double[] getZoomLevels(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
null.
Overridden to read the scales specified in map file, if any.getZoomLevels in class IlvManagerServletSupportrequest - The current HTTP request.view - The view returned by getManagerView().null if no zoom level is
provided.public float getDynamicJPEGQuality()
JPEGQuality to be used for dynamic objects.JPEGQuality used for dynamic objects.public void setDynamicJPEGQuality(float dynamicJPEGQuality)
JPEGQuality to be used for dynamic objects (the default value is 1).dynamicJPEGQuality - The JPEGQuality to be used for dynamic objects.public float getStaticJPEGQuality()
JPEGQuality used for static objects.JPEGQuality used for static objects.public void setStaticJPEGQuality(float staticJPEGQuality)
JPEGQuality used for static objects (the default value is 0.75).staticJPEGQuality - The JPEGQuality to be used for static objects.public boolean handleRequest(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws IOException,
jakarta.servlet.ServletException
"project"
parameter.handleRequest in class IlvFacesDiagrammerServletSupportrequest - The current HTTP request.response - The HTTP response.false when the request is not recognized by this
servlet.IOException - The IOExceptionjakarta.servlet.ServletException - The ServletExceptionIlvFacesDiagrammerServletSupport.handleRequest(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.