public class IlvFacesGoogleViewServletSupport extends IlvFacesMapsServletSupport
IlvFacesGoogleViewServletSupport class is an extension of the
IlvFacesMapsServletSupport
that handles synchronization with a Google(TM) Map client side component.| Modifier and Type | Field and Description |
|---|---|
static String |
GET_PROPERTIES
Request parameter to retrieve a symbol properties
|
static String |
ICON
Request parameter to retrieve a symbol icon
|
static String |
ID
Request parameter to retrieve a symbol properties
|
static String |
LIST
Request parameter to retrieve the symbol list
|
static String |
SELECTED_SYMBOL
Request parameter that indicates that we want the selected icon
|
static String |
SELECTION_TYPE
Request parameter to retrieve the symbol list
|
static String |
SET_PROPERTIES
Request parameter to retrieve a symbol properties
|
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 |
|---|
IlvFacesGoogleViewServletSupport(jakarta.servlet.ServletContext context)
Creates a new
GoogleServletSupport instance. |
| Modifier and Type | Method and Description |
|---|---|
protected IlvHitmapSupport |
createHitmapSupport()
Returns the
IlvFacesGoogleViewHitmapSupport. |
protected IlvSelectionSupport |
createSelectionSupport()
Overrides
IlvManagerServletSupport.createSelectionSupport() to
return an IlvDiagrammerSelectionSupport selection support. |
protected BufferedImage |
generateImage(jakarta.servlet.http.HttpServletRequest request,
IlvRect bbox,
int width,
int height,
String[] requestedLayers,
Color bgColor,
boolean transparent)
Generates the image.
|
IlvManagerLayer[] |
getDynamicLayers(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
Returns an array of
IlvManagerLayer instances that are known to be dynamic. |
protected IlvCoordinate[] |
getNodeLocation(IlvSDMEngine engine,
IlvSDMNode obj)
Method that computes the coordinate (marker) or set of coordinates (polylines) for an SDM node.
|
String |
getNodeProperties(IlvSDMEngine engine,
IlvSDMNode node)
Returns a JSON string containing the properties of the node.
|
boolean |
getSymbolIcon(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
Sends an image for the symbol to the response output stream
|
boolean |
getSymbolList(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
Sends the list of symbols and their properties to the response output stream as JSON array
|
boolean |
getSymbolProperties(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
Sends the list of symbols and their properties to the response output stream as JSON array
|
protected void |
prepareManagerView(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
Specific for Google(TM): Do not keep aspect ratio because mercator tiles are higher than large
|
boolean |
setSymbolProperties(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
Sets the properties changed client side and POSTed.
|
protected static IlvRect |
transformBox(IlvRect bbox,
IlvCoordinateTransformation ct)
Transforms the latitude/longitude bounding box into view coordinates
|
protected IlvRect |
transformCoordinates(jakarta.servlet.http.HttpServletRequest request,
IlvRect bbox)
Thransforms the given bbox from latitude/longitude to JViews manager coordinates.
|
getDynamicJPEGQuality, getLayers, getStaticJPEGQuality, getZoomLevels, handleRequest, isOverviewLayer, setDynamicJPEGQuality, setStaticJPEGQualityadditionalCapabilities, addJSFActionListeners, createPopupMenuSupport, findFile, 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 static final String SELECTED_SYMBOL
public static final String ICON
public static final String GET_PROPERTIES
public static final String SET_PROPERTIES
public static final String ID
public static final String LIST
public static final String SELECTION_TYPE
public IlvFacesGoogleViewServletSupport(jakarta.servlet.ServletContext context)
GoogleServletSupport instance.context - The servlet context.protected IlvHitmapSupport createHitmapSupport()
IlvFacesGoogleViewHitmapSupport.IlvFacesGoogleViewHitmapSupport.protected IlvSelectionSupport createSelectionSupport()
IlvManagerServletSupport.createSelectionSupport() to
return an IlvDiagrammerSelectionSupport selection support.
During the creation of this support, listeners to handle selection and move are installed.
createSelectionSupport in class IlvFacesDiagrammerServletSupportIlvFacesDiagrammerServletSupport.createSelectionSupport()protected void prepareManagerView(jakarta.servlet.http.HttpServletRequest request,
IlvManagerView view)
throws jakarta.servlet.ServletException
prepareManagerView in class IlvFacesMapsServletSupportrequest - The current HTTP request.view - The manager view.jakarta.servlet.ServletExceptionprotected IlvRect transformCoordinates(jakarta.servlet.http.HttpServletRequest request, IlvRect bbox)
request - The http request.bbox - The bbox in latitude/longitude.protected BufferedImage generateImage(jakarta.servlet.http.HttpServletRequest request, IlvRect bbox, int width, int height, String[] requestedLayers, Color bgColor, boolean transparent) throws jakarta.servlet.ServletException
generateImage in class IlvFacesDiagrammerServletSupportrequest - The current HTTP request.bbox - The area of the manager to draw.width - The width of the image.height - The height of the image.requestedLayers - An array of layer names to draw.bgColor - The background color of the imagetransparent - Indicates if the image should be transparent.jakarta.servlet.ServletExceptionIlvFacesDiagrammerServletSupport.generateImage(jakarta.servlet.http.HttpServletRequest, ilog.views.IlvRect, int, int, java.lang.String[], java.awt.Color, boolean)protected static IlvRect transformBox(IlvRect bbox, IlvCoordinateTransformation ct)
bbox - Bounding box decoded from request parametersct - Coordinate transformationpublic boolean getSymbolIcon(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws IOException
request - The request
It must contain the following parameters:
response - The response where the PNG image will be streamed.true if the request succeeded.IOExceptionpublic boolean getSymbolList(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws IOException,
jakarta.servlet.ServletException
request - The request
It must contain the following parameters:
response - The response where we will stream the JSON array where each membertrue if the request succeeded.IOExceptionjakarta.servlet.ServletExceptiongetNodeProperties(IlvSDMEngine, IlvSDMNode)public boolean getSymbolProperties(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws IOException
request - The request
It must contain the following parameters:
response - The response where the JSON list of properties for this symbol will be streamed.true if the request succeeded.IOExceptiongetNodeProperties(IlvSDMEngine, IlvSDMNode)public boolean setSymbolProperties(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws IOException,
jakarta.servlet.ServletException
request - The request
It should be a "POST" request containing the following parameters:
Properties.load(java.io.InputStream)response - The response. Not used here.true if the request succeededIOExceptionjakarta.servlet.ServletExceptionpublic String getNodeProperties(IlvSDMEngine engine, IlvSDMNode node)
engine - The SDM engine. Used both to retrieve the model and to compute the node size.node - The node.protected IlvCoordinate[] getNodeLocation(IlvSDMEngine engine, IlvSDMNode obj)
engine - The engine where the object resides.obj - The sdm object.public 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.
Layers that have an associated IlvMapLayer and have a style that specifies
the THIN_CLIENT_BACKGROUND property as false are also considered as dynamic
layers.
Note: This method is overridden to prevent having links appear on Google(TM) maps as polygons because of a bug with large polygons.getDynamicLayers in class IlvFacesMapsServletSupportrequest - The current HttpServletRequest.view - The IlvManagerView returned by getManagerView().IlvManagerView.getTripleBufferedLayerCount()© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.