Class ReportGraphTransformImpl
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractWebBeanTransform
-
- com.microstrategy.web.app.transforms.AbstractReportTransform
-
- com.microstrategy.web.app.transforms.AbstractReportDataTransform
-
- com.microstrategy.web.app.transforms.ReportGraphTransformImpl
-
- All Implemented Interfaces:
AppTransform
,ReportDataTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
ReportGraphDesignTransform
,RWReportGraphDropZoneTransformImpl
public class ReportGraphTransformImpl extends AbstractReportDataTransform
Provides a graph view to the report bean.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ReportGraphTransformImpl.GraphAreaContext
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientSideHelper
_graphClientSideHelper
protected FormalParameter
dropShadowDepth
static java.lang.String
FP_HELP_TOPIC
Constant specifying the name of the formal parameter for specifying the help topic for the help of the editorstatic java.lang.String
FP_HELP_TYPE
Constant specifying the type of the help file this editor should point toprotected FormalParameter
graphHeight
Graph Height to use.protected FormalParameter
graphImageFormat
Graph Image Format to use.protected FormalParameter
graphSize
Graph Size to use.protected FormalParameter
graphWidth
Graph Width to use.FormalParameter
helpTopic
Indicates the help topic for the help page of the editor.FormalParameter
helpType
Indicates the type of help topic this editor uses.protected FormalParameter
imageSrc
This is the name which specifies the source of the graph image.protected FormalParameter
isDisableGraphDrilling
This is the flag used in the transform to specify whether to disable drilling on the graph
Allowed Values: TRUE/FALSE.protected FormalParameter
isGraphSrcAddSessionInfo
This is the flag used in the transform to specify whether to include the session information on the image src of the graph
Allowed Values: TRUE/FALSE.protected FormalParameter
isGraphSrcFullPath
This is the flag used in the transform to specify whether to include the full path on the image src of the graph
Allowed Values: TRUE/FALSE.protected FormalParameter
renderDropZones
Indicates whether to render the graph drop zones.protected FormalParameter
showWidthHeightAttributes
This flag is used to decide if we need to include the WIDTH and HEIGHT on the IMG tag.protected FormalParameter
shrinkGraphToHeight
Graph height to shrink to if graph height is bigger than this value.protected FormalParameter
shrinkGraphToWidth
Graph width to shrink to if graph width is bigger than this value.protected FormalParameter
useImageTag
Whether to force the use of an "img" tag (instead of an "input" tag)-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportDataTransform
_blankImage, _cssBottom, _cssCenter, _cssLeft, _cssRight, _cssTop, _ifLeftArrowImage, _ifRightArrowImage, advancedDrillingContextMenuDisplay, BLANK_SUBSET_REPORT_ID, cssBottom, cssCenter, cssLeft, cssRight, cssTop, customJavaScriptFeatures, drillRetainThresholds, drillWithinBehavior, gridGraphUnitKeyContext, groupContextMenuDrillPathsByType, hasIncreFetchForColumnOnLeft, hasIncreFetchForColumnOnRight, id, ifLeftArrowImage, ifRightArrowImage, incrementalFetchStyleForRow, quickSwitch, quickSwitchCurrent, rwbViewerID, showDrillPathSetNamesSubMenuAtTopLevel, showIncreFetchForColumn, showIncreFetchForRowOnBottom, showIncreFetchForRowOnTop, showSubtitlePara, sortSetNamesAndDrillPaths, transformContext, uniqueReportId
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
BLANK_XDA_REPORT_ID, cssErrorMessage, cssErrorTitle, cssUseFileContent, generateJSForDrillCheckBoxesForIncFetch, iFramePara, imgError, showScroller, useBuiltInFormatPara
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description ReportGraphTransformImpl()
default no-args constructor It created the formal parameters and assign default values to them.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map
getAttributesBone()
java.util.Map
getAttributesGraph(boolean isLiveBone)
protected java.lang.String
getBoneId()
Returns the id to be used for the JavaScript bone.protected TransformContext
getContext()
Returns the instance of TransformContext with context information for this Transform.protected java.lang.String
getContextMenuManagerName()
Returns the name of the Context Menu Manager assocaited with the graph.java.lang.String
getDescription()
Return description for this Transform.protected WebEvent
getDrillEvent()
protected GraphBean
getGraphBean()
java.util.Map
getGraphBoneAttributes()
protected java.lang.String
getGraphBoneName()
protected ClientSideHelper
getGraphClientSideHelper()
java.lang.String
getGraphData()
Get graph binary data and encode as base64.protected java.lang.String
getGraphHeight()
protected java.lang.String
getGraphSrc()
protected java.lang.String
getGraphTooltip()
protected java.lang.String
getGraphWidth()
protected java.lang.String
getImageId()
protected java.lang.String
getImageMapName()
protected WebEvent
getLoadGraphEvent()
protected java.lang.String
getOnClickJS(WebDrillPath wdp)
protected WebEvent
getRWDrillOutsideEvent()
boolean
hasCenter()
Whether the transform has the center area.boolean
isContextMenusEnabled()
Checks privileges to determine whether the graph should enable context menus on the graph.boolean
isDesignMode()
This methods allows the transform to identify if concrete subclasses are designed to work in design mode, or in execute mode.protected boolean
isDndEnabledForGraphs()
Returns, based on privileges, whether Drag and drop is available for the graph.protected boolean
isGraphAreaDrillingSupported()
Returns whether Drilling is enabled on the Graph Areas.boolean
isGraphAvailable()
protected boolean
isGraphTransform()
protected boolean
isGridGraphMode()
protected boolean
isGridTransform()
protected boolean
isInvalidPageByError()
protected boolean
isNoDataError()
protected boolean
isNoTypesAvailableError()
void
renderCenter(MarkupOutput out, ReportBean rb)
Deprecated.void
renderData(MarkupOutput out, ReportBean rb)
Deprecated.protected void
renderDropZonesCssLink(MarkupOutput out)
Renders the various CSS classes on the Graph Drop Zones Editor.void
renderEmptyCase(MarkupOutput out, ReportBean rb)
Deprecated.void
renderGraph(MarkupOutput out)
Renders the graph bone, it's shell and sets all the javascript properties.void
renderGraph(MarkupOutput out, ReportBean rb)
Deprecated.void
renderGraphBone(MarkupOutput out)
Renders the javascript bone associated with the graph.void
renderGraphData(MarkupOutput out, ReportBean rb)
Deprecated.void
renderGraphDropZones(MarkupOutput out)
Renders the graph drop zones editor.void
renderGraphError(MarkupOutput out)
Renders an error message on the graph page based on the kind of error it is.protected void
renderGraphTypesError(MarkupOutput out)
Renders an error message when an exception is thrown when no graph types are available.void
renderImageMap(MarkupOutput out)
Renders a map on top of the graph image for drilling, context menus etc.protected void
renderInsufficientGraphDataError(MarkupOutput out)
Renders an error on the graph page when there's insufficient data available to render the graph.void
renderJavascript(MarkupOutput out)
This method renders the javascript code that needs to be generated on the server side because its content is dynamic.void
renderLayout(MarkupOutput out, ReportBean rb)
Deprecated.protected void
renderNoChartAvailable(MarkupOutput out)
Renders an error message on the graph page whenever there are no available graphs on the page.protected void
renderNoDataError(MarkupOutput out)
Renders an error on the Graph page when there's no data returned on the graph.protected void
renderPageByError(MarkupOutput out)
Renders an error on the graph page when there's an invalid page by condition/argument.void
renderRowsIncrementalFetch(MarkupOutput out)
Generates the rows incremental fetch portion.void
renderScroller(MarkupOutput out, int type)
Renders a scroller control that will allow the user to scroll across the chart's data.protected void
setBoneProperties(JsonGenerator boneProps)
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.protected boolean
shouldRenderDropZones()
protected boolean
shouldRenderGridInfo()
This method is used to determine if the bone's gridInfo structure needs to be included.protected boolean
showEmptyAxis()
protected boolean
useDrillEvent()
protected boolean
useRWDrillOutsideEvent()
protected boolean
useViewModeGraphBone()
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportDataTransform
createBlockEditorProperties, createBlockEditorProperties, generatePageHistoryItems, getAttributesShellDiv, getBeanPath, getDisplayMode, getFrameBean, getGridData, getGridScriptClass, getGridWidths, getID, getMetricAxisName, getReportSetting, getTransformContext, getViewBean, getWebTemplate, hasBottom, hasLeft, hasRight, hasTop, initializeCss, initializeImages, initializeProperties, initializeTranformContext, initializeTransform, initializeWebComponent, isCalledFromPrinting, isGridEmpty, isQuickSwitchEnabled, isRWBean, renderBottom, renderContent, renderIncreFetchOnColumnLeftPart, renderIncreFetchOnColumnRightPart, renderIncreFetchOnRow, renderLeft, renderRight, renderTop, showSubtitle, showSubtitle, showSubTitleOnly, supports, supports, transformForRequestSuccessful
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
canTransform, generateAnchor, generateErrorForIframe, generateErrorForIframe, generateIncFetchAnchor, generateIncFetchOpenAnchor, getCancelEvent, getContinueEvent, getErrorMessage, getErrorTitle, getHistoryListEvent, getInboxSource, getJobExpiredMessage, getNextColumnsEvent, getPreviousColumnsEvent, getReexecuteButtonDescription, getReportBean, getReportStatus, getReportStatusDescriptorKey, getRepromptEvent, getSupportedBeanType, getViewDetailsEvent, getWebReexecuteEvent, isCubeReport, isDatamart, isIFrameEnabled, isIncRefreshReport, isNonViewableReport, renderColumnsIncrementalFetch, renderColumnsIncrementalFetchNext, renderColumnsIncrementalFetchPrevious, renderContinueFormForRequestInError, renderErrorButtons, renderErrorInfo, renderHistoryListButton, renderImage, renderJobExpiredSection, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoDetails, renderViewDetailsButton, setWebReexecuteEventArguments, transformForRequestInError, transformForRequestNotInited, useBuiltInFormat
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractWebBeanTransform
getReexcuteEventFromBean, getTaskProcessorBaseURL
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getClientSideHelper, getContainerServices, getContextMenu, getContextMenuManager, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, is508, isBlockMode, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestProcessing, transformForRequestWaitingForUserInput
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getPreview, getSupportedBeanType, isPreviewAvailable, isResolved, transform
-
-
-
-
Field Detail
-
isGraphSrcAddSessionInfo
protected FormalParameter isGraphSrcAddSessionInfo
This is the flag used in the transform to specify whether to include the session information on the image src of the graph
Allowed Values: TRUE/FALSE.
-
isGraphSrcFullPath
protected FormalParameter isGraphSrcFullPath
This is the flag used in the transform to specify whether to include the full path on the image src of the graph
Allowed Values: TRUE/FALSE.
-
isDisableGraphDrilling
protected FormalParameter isDisableGraphDrilling
This is the flag used in the transform to specify whether to disable drilling on the graph
Allowed Values: TRUE/FALSE.
-
graphSize
protected FormalParameter graphSize
Graph Size to use.
Allowed Values:
PreferencesGraphTransform.GRAPH_USE_REPORT_SIZE
PreferencesGraphTransform.GRAPH_USE_USER_SIZE
-
showWidthHeightAttributes
protected FormalParameter showWidthHeightAttributes
This flag is used to decide if we need to include the WIDTH and HEIGHT on the IMG tag. (used for exporting to Excel).
Allowed Values: TRUE/FALSE.
-
graphWidth
protected FormalParameter graphWidth
Graph Width to use.
It's applicable only if _graphSize is set to PreferencesGraphTransform.GRAPH_USE_USER_SIZE.
Allowed Values: integer values
-
graphHeight
protected FormalParameter graphHeight
Graph Height to use.
It's applicable only if _graphSize is set to PreferencesGraphTransform.GRAPH_USE_USER_SIZE.
Allowed Values: integer values
-
shrinkGraphToWidth
protected FormalParameter shrinkGraphToWidth
Graph width to shrink to if graph width is bigger than this value.
If it's -1, it means not shrink at all. Allowed Values: integer values
-
shrinkGraphToHeight
protected FormalParameter shrinkGraphToHeight
Graph height to shrink to if graph height is bigger than this value.
If it's -1, it means not shrink at all. Allowed Values: integer values
-
imageSrc
protected FormalParameter imageSrc
This is the name which specifies the source of the graph image.
Allowed Values: any file name used as the source of the graph image.
-
graphImageFormat
protected FormalParameter graphImageFormat
Graph Image Format to use.
Allowed Values:
PreferencesGraphTransform.GRAPH_IMAGE_TYPE_REPORT
PreferencesGraphTransform.GRAPH_IMAGE_TYPE_GIF
PreferencesGraphTransform.GRAPH_IMAGE_TYPE_JPEG
-
helpType
public FormalParameter helpType
Indicates the type of help topic this editor uses.- Since:
- MicroStrategy Web 9.0.0
-
helpTopic
public FormalParameter helpTopic
Indicates the help topic for the help page of the editor.- Since:
- MicroStrategy Web 9.0.0
-
FP_HELP_TYPE
public static final java.lang.String FP_HELP_TYPE
Constant specifying the type of the help file this editor should point to- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
FP_HELP_TOPIC
public static final java.lang.String FP_HELP_TOPIC
Constant specifying the name of the formal parameter for specifying the help topic for the help of the editor- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
renderDropZones
protected FormalParameter renderDropZones
Indicates whether to render the graph drop zones.
Usage:
This tells us how to decide whether to render the graph drop zones or not. Possible values for this property and their meaning include:
EnumWebPreferences.PREFERENCE_YES
= Always displayEnumWebPreferences.PREFERENCE_NO
= Never displayEnumWebPreferences.PREFERENCE_VALUE_FROM_REPORT
= (default) Resolves programatically based on user preference and if the object browser is open- Since:
- MicroStrategy Web 9.0.0
-
useImageTag
protected FormalParameter useImageTag
Whether to force the use of an "img" tag (instead of an "input" tag)- Since:
- MicroStrategy Web 9.0.0
-
dropShadowDepth
protected FormalParameter dropShadowDepth
-
_graphClientSideHelper
protected ClientSideHelper _graphClientSideHelper
- Since:
- MicroStrategy Web 8.1.0
-
-
Method Detail
-
renderImageMap
public void renderImageMap(MarkupOutput out)
Renders a map on top of the graph image for drilling, context menus etc.- Since:
- MicroStrategy Web 8.1.0
-
getOnClickJS
protected java.lang.String getOnClickJS(WebDrillPath wdp)
-
isContextMenusEnabled
public boolean isContextMenusEnabled()
Checks privileges to determine whether the graph should enable context menus on the graph.- Overrides:
isContextMenusEnabled
in classAbstractAppTransform
- Returns:
- boolean - True if context menus are enabled.
- Since:
- MicroStrategy Web 9.0.0
-
renderEmptyCase
public void renderEmptyCase(MarkupOutput out, ReportBean rb)
Deprecated.Render when the report grid is empty.
Usually some information message is displayed.- Parameters:
out
- output by this transformrb
- this report bean
-
renderLayout
public void renderLayout(MarkupOutput out, ReportBean rb)
Deprecated.Render the layout for the report grid.
Out of box, we don't render anything for the layout area for graph reports.- Parameters:
out
- output by this transformrb
- this report bean
-
renderData
public void renderData(MarkupOutput out, ReportBean rb)
Deprecated.Render the report data area.
For graph reports, it's the graph itself.- Parameters:
out
- output by this transformrb
- this report bean
-
renderCenter
public void renderCenter(MarkupOutput out, ReportBean rb)
Deprecated.Render center area of the transform.- Parameters:
out
- output by this transformrb
- this report bean
-
renderGraphData
public void renderGraphData(MarkupOutput out, ReportBean rb)
Deprecated.Renders the graph.
Out of box, it's called from renderData() method, but it can be used as a utility function.- Parameters:
out
- output by this transformrb
- this report bean
-
renderGraph
public void renderGraph(MarkupOutput out, ReportBean rb)
Deprecated.Renders the graph itself.
Out of box, it's called from renderGraphData() method, but it can be used as a utility function.- Parameters:
out
- output by this transformrb
- this report bean
-
renderGraph
public void renderGraph(MarkupOutput out)
Renders the graph bone, it's shell and sets all the javascript properties.- Since:
- MicroStrategy Web 8.0.0
-
renderGraphDropZones
public void renderGraphDropZones(MarkupOutput out)
Renders the graph drop zones editor. This editor helps in editing the graph by showing all the graph objects on their respective Rows, Series or Metrics columns.- Since:
- MicroStrategy Web 9.0.0
-
renderDropZonesCssLink
protected void renderDropZonesCssLink(MarkupOutput out)
Renders the various CSS classes on the Graph Drop Zones Editor.- Since:
- MicroStrategy Web 9.0.0
-
renderScroller
public void renderScroller(MarkupOutput out, int type)
Renders a scroller control that will allow the user to scroll across the chart's data.- Parameters:
out
- MarkupOutputtype
- int Type of scroller to render. Values from:
Scroller.HORIZONTAL_SCROLLER
Scroller.VERTICAL_SCROLLER- Since:
- MicroStrategy Web 9.0.0
-
isGraphAreaDrillingSupported
protected boolean isGraphAreaDrillingSupported()
Returns whether Drilling is enabled on the Graph Areas.- Since:
- MicroStrategy Web 9.0.0
-
renderGraphBone
public void renderGraphBone(MarkupOutput out)
Renders the javascript bone associated with the graph.- Since:
- MicroStrategy Web 8.1.0
-
renderGraphError
public void renderGraphError(MarkupOutput out)
Renders an error message on the graph page based on the kind of error it is.- Since:
- MicroStrategy Web 8.0.0
-
renderGraphTypesError
protected void renderGraphTypesError(MarkupOutput out)
Renders an error message when an exception is thrown when no graph types are available.- Parameters:
out
-MarkupOutput
-
renderPageByError
protected void renderPageByError(MarkupOutput out)
Renders an error on the graph page when there's an invalid page by condition/argument.- Since:
- MicroStrategy Web 8.0.0
-
renderNoDataError
protected void renderNoDataError(MarkupOutput out)
Renders an error on the Graph page when there's no data returned on the graph.- Since:
- MicroStrategy Web 8.0.0
-
renderInsufficientGraphDataError
protected void renderInsufficientGraphDataError(MarkupOutput out)
Renders an error on the graph page when there's insufficient data available to render the graph.- Parameters:
out
-
-
renderNoChartAvailable
protected void renderNoChartAvailable(MarkupOutput out)
Renders an error message on the graph page whenever there are no available graphs on the page. This error is also triggered wheneverthe property "Allow this report to be displayed as a graph" is unchecked.- Parameters:
out
-MarkupOutput
-
getGraphClientSideHelper
protected ClientSideHelper getGraphClientSideHelper()
- Since:
- MicroStrategy Web 8.1.0
-
renderJavascript
public void renderJavascript(MarkupOutput out)
Description copied from class:AbstractReportDataTransform
This method renders the javascript code that needs to be generated on the server side because its content is dynamic. In particular this method invokesrenderRegisterBone
which initializes and registers a grid's bone..- Overrides:
renderJavascript
in classAbstractReportDataTransform
- Parameters:
out
- MarkupOutput to generate the HTML.- Since:
- MicroStrategy Web 8.0.0
-
isDndEnabledForGraphs
protected boolean isDndEnabledForGraphs()
Returns, based on privileges, whether Drag and drop is available for the graph.- Returns:
- True if the privileges are available.
-
getContextMenuManagerName
protected java.lang.String getContextMenuManagerName()
Returns the name of the Context Menu Manager assocaited with the graph.- Overrides:
getContextMenuManagerName
in classAbstractAppTransform
- Since:
- MicroStrategy Web 9.0.0
-
renderRowsIncrementalFetch
public void renderRowsIncrementalFetch(MarkupOutput out)
Description copied from class:AbstractReportDataTransform
Generates the rows incremental fetch portion. It just delegates this to another Transform, as specified by theincrementalFetchStyleForRow
formal parameter.- Overrides:
renderRowsIncrementalFetch
in classAbstractReportDataTransform
- Parameters:
out
- MarkupOutput to generate the HTML.
-
isDesignMode
public boolean isDesignMode()
Description copied from class:AbstractReportTransform
This methods allows the transform to identify if concrete subclasses are designed to work in design mode, or in execute mode.- Overrides:
isDesignMode
in classAbstractReportTransform
- Returns:
- false by default. Any inherting class should override to implement its own version.
- Since:
- MicroStrategy Web 8.0.0
-
isGridGraphMode
protected boolean isGridGraphMode()
- Since:
- MicroStrategy Web 8.0.0
-
useDrillEvent
protected boolean useDrillEvent()
- Since:
- MicroStrategy Web 8.0.0
-
useRWDrillOutsideEvent
protected boolean useRWDrillOutsideEvent()
- Since:
- MicroStrategy Web 9.0.0
-
getLoadGraphEvent
protected WebEvent getLoadGraphEvent()
- Since:
- MicroStrategy Web 8.0.0
-
getDrillEvent
protected WebEvent getDrillEvent()
- Since:
- MicroStrategy Web 8.0.0
-
getRWDrillOutsideEvent
protected WebEvent getRWDrillOutsideEvent()
- Since:
- MicroStrategy Web 9.0.0
-
getGraphWidth
protected java.lang.String getGraphWidth()
- Since:
- MicroStrategy Web 8.0.0
-
getGraphHeight
protected java.lang.String getGraphHeight()
- Since:
- MicroStrategy Web 8.0.0
-
getGraphSrc
protected java.lang.String getGraphSrc()
- Since:
- MicroStrategy Web 8.0.0
-
getGraphData
public java.lang.String getGraphData()
Get graph binary data and encode as base64. Note: refer to {#link ReportGraphImageTransform.java }- Returns:
- String base64-encoded image binary
-
getGraphTooltip
protected java.lang.String getGraphTooltip()
- Since:
- MicroStrategy Web 8.0.0
-
getAttributesBone
public java.util.Map getAttributesBone()
- Since:
- MicroStrategy Web 8.0.0
-
getGraphBoneAttributes
public java.util.Map getGraphBoneAttributes()
- Since:
- MicroStrategy Web 8.1.0
-
getAttributesGraph
public java.util.Map getAttributesGraph(boolean isLiveBone)
- Since:
- MicroStrategy Web 9.0.0
-
getImageId
protected java.lang.String getImageId()
- Since:
- MicroStrategy Web 8.1.0
-
getGraphBean
protected GraphBean getGraphBean()
- Since:
- MicroStrategy Web 8.0.0
-
isGraphAvailable
public boolean isGraphAvailable()
- Since:
- MicroStrategy Web 8.0.0
-
isNoTypesAvailableError
protected boolean isNoTypesAvailableError()
- Since:
- MicroStrategy Web 8.0.0
-
isInvalidPageByError
protected boolean isInvalidPageByError()
- Since:
- MicroStrategy Web 8.0.0
-
isNoDataError
protected boolean isNoDataError()
- Since:
- MicroStrategy Web 8.0.0
-
hasCenter
public boolean hasCenter()
Description copied from class:AbstractReportDataTransform
Whether the transform has the center area. Out of box, it returns true.- Specified by:
hasCenter
in classAbstractReportDataTransform
- Returns:
- Whether the transform has the center area
- Since:
- MicroStrategy Web 8.0.0
-
getDescription
public java.lang.String getDescription()
Return description for this Transform.- Returns:
- The description as to what this Transform does.
-
getContext
protected TransformContext getContext()
Description copied from class:AbstractAppTransform
Returns the instance of TransformContext with context information for this Transform.- Overrides:
getContext
in classAbstractAppTransform
- Since:
- MicroStrategy Web 8.1.0
- See Also:
AbstractAppTransform.getContextMenu(java.lang.String)
-
getImageMapName
protected java.lang.String getImageMapName()
- Since:
- MicroStrategy Web 8.1.0
-
getGraphBoneName
protected java.lang.String getGraphBoneName()
- Since:
- MicroStrategy Web 8.1.0
-
showEmptyAxis
protected boolean showEmptyAxis()
- Since:
- MicroStrategy Web 9.0.0
-
shouldRenderDropZones
protected boolean shouldRenderDropZones()
- Since:
- MicroStrategy Web 9.0.0
-
shouldRenderGridInfo
protected boolean shouldRenderGridInfo()
Description copied from class:AbstractReportDataTransform
This method is used to determine if the bone's gridInfo structure needs to be included. As an optimization in the Document page, when executing a document, only the first bone registered for a given grid includes the gridInfo structure.- Overrides:
shouldRenderGridInfo
in classAbstractReportDataTransform
- Returns:
true
if the grid bone properties should include the gridInfo.
-
useViewModeGraphBone
protected boolean useViewModeGraphBone()
- Since:
- MicroStrategy Web 9.0.0
-
setBoneProperties
protected void setBoneProperties(JsonGenerator boneProps)
Description copied from class:AbstractAppTransform
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.- Overrides:
setBoneProperties
in classAbstractReportDataTransform
- Parameters:
boneProps
- the JsonGenerator object that contains the collection of bone properties.
-
isGridTransform
protected boolean isGridTransform()
- Specified by:
isGridTransform
in classAbstractReportDataTransform
- Since:
- MicroStrategy Web 8.1.0
-
isGraphTransform
protected boolean isGraphTransform()
- Specified by:
isGraphTransform
in classAbstractReportDataTransform
- Since:
- MicroStrategy Web 8.1.0
-
getBoneId
protected java.lang.String getBoneId()
Description copied from class:AbstractAppTransform
Returns the id to be used for the JavaScript bone.
This method is used by therenderRegisterBone
method to indicate the id of the bone html element.- Overrides:
getBoneId
in classAbstractReportDataTransform
- Returns:
- String
- Since:
- MicroStrategy Web 8.1.1
- See Also:
AbstractAppTransform.renderRegisterBone(com.microstrategy.web.beans.MarkupOutput)
-
-