|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
oracle.dss.dataView.Dataview
oracle.dss.graph.Graph
public class Graph
The graph bean class. This graph uses Perspective for Java, from Three-D Graphics, to produce a graphical presentation of data.
To display data in this graph, call its setDataSource
method, or
use the constructor that takes a data source as an argument.
You can use the BI Beans DataSource
bean, or you can supply
your own data source.
The DataAccess
and DataAccess
interfaces, in the
oracle.dss.util
package, define the methods and constants that a data source
must provide.
Alternately, you can call setTabularData
to set data that you
get from a comma-separated or tab-delimited file, or from a JDBC
ResultSet
.
Note that, when you use setTabularData
, the data is not
dynamic.
If you want users to be able to rotate or drill the data, you must
provide a way for users to signal a rotation or a drill, and you must
then pass another set of data to setTabularData
.
You can set properties on the graph to customize its appearance and behavior. In addition, the graph has a number of components, whose properties you can also set in order to customize the graph.
The BI Beans also provide Java-client user interface classes for setting the
graph type, configuring graph axes and titles, and so on.
The Java-client user-interface classes are in the
oracle.dss.graph.gui
package.
setTabularData(java.util.List)
,
DataAccess
,
DataDirector
,
oracle.dss.graph.gui
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Nested classes/interfaces inherited from interface oracle.dss.graph.GraphConstants |
---|
GraphConstants.InteractivityBehavior, GraphConstants.MinorGridStepType, GraphConstants.ScatterLineType |
Field Summary | |
---|---|
static java.lang.String |
GRAPH_TYPE
The graph type attribute for searches. |
static java.lang.String |
GRAPH_XML_VERSION_NUMBER
|
protected GraphTypeConverter |
m_converter
|
protected GraphController |
m_graphController
|
protected GraphModel |
m_graphModel
|
protected java.awt.Image |
m_offscreenImage
|
protected PFJ |
m_pfj
|
protected boolean |
m_printOrPreviewMode
|
protected SampleDataSource |
m_sampleDataSource
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Graph()
Constructor that does not specify a DataSource . |
|
Graph(DataSource dataSource)
Constructor that specifies a DataSource . |
|
Graph(DataSource dataSource,
int type)
Constructor that specifies a DataSource and the
type of DataDirector that this Graph will
use. |
|
Graph(ErrorHandler errorHandler)
Constructor that specifies a ErrorHandler . |
Method Summary | |
---|---|
void |
addAlertListener(AlertListener l)
Adds an alert listener to this graph. |
void |
addKeyListener(java.awt.event.KeyListener l)
Adds a key listener to this graph. |
void |
addMouseListener(java.awt.event.MouseListener l)
Adds a mouse listener to this graph. |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
Adds a mouse motion listener to this graph. |
void |
applyFontSizes(float ratio)
|
void |
applySampleData()
|
protected void |
applyStyle(CustomStyle style,
int reset,
boolean isStyleDefault)
|
void |
applyViewFormat(ComponentHandle componentHandle,
ViewFormat viewFormat)
|
void |
applyViewStyle(ComponentHandle componentHandle,
ViewStyle viewStyle)
Applies a ViewStyle to a page item. |
void |
beginAxisChanges()
Deprecated. As of 4.0, no replacement as there is no need to call this method anymore |
void |
calculatePlacement()
Forces the graph to perform a complete calculation of its elements. |
void |
cleanUp()
Clears the memory of the view. |
static int |
convertGraphTypeToInt(java.lang.String string)
|
static java.lang.String |
convertGraphTypeToString(int value)
Generates a String representation of a graph type constant. |
Alert |
createAlert(java.lang.Object xValue,
java.lang.Object yValue)
Creates and returns a new Alert . |
Annotation |
createAnnotation(int series,
int group)
Creates and returns a new Annotation . |
ExceptionalRiser |
createExceptionalRiser(int series,
int group)
Creates an ExceptionalRiser . |
CustomStyle |
createGraphStyle()
|
protected void |
createPagingControl()
|
ReferenceObject |
createReferenceObject()
Creates and returns a new ReferenceObject . |
CustomStyle |
createStyle()
|
void |
destroyAllExceptionalRisers()
Destroys all ExceptionalRiser components in this graph. |
void |
destroyReferenceObject(int id)
Destroys the ReferenceObject given its ID. |
void |
destroyReferenceObjects(int component)
Destroys the ReferenceObjects of the specified graph. |
void |
doAutoLayout(int level)
Automatically places and sizes graph components once. |
void |
drawImage(java.awt.Image image,
int x,
int y,
java.awt.Graphics g)
|
void |
editStyle(CustomStyle style)
|
void |
endAxisChanges()
Deprecated. As of 4.0, no replacement as there is no need to call this method anymore |
void |
endExport()
|
boolean |
exportGraphToStream(java.io.OutputStream out)
|
void |
exportToFlash(java.io.OutputStream os,
boolean renderDynamic,
boolean showDrawing)
Delegates the work to CommonGraph by passing the outputstream associated with the flash file to be written and a flag indicating if it will be a static or a dynamic rendering |
void |
exportToGIF(java.io.OutputStream os)
Adds the specified focus listener to the graph. |
void |
exportToGIFWithException(java.io.OutputStream os)
Exports a snapshot of the page that is currently displayed to the GIF file. |
void |
exportToPNG(java.io.OutputStream os)
Exports a snapshot of the page that is currently displayed to the PNG file. |
void |
exportToPNGWithException(java.io.OutputStream os)
Exports a snapshot of the page that is currently displayed to the PNG file. |
void |
exportToSVG(java.io.OutputStream os,
int mode,
java.lang.String charEnc)
Exports a snapshot of the page that is currently displayed to the SVG file. |
void |
exportToSVG(java.io.Writer writer,
int mode,
java.lang.String charEnc)
Exports a snapshot of the page that is currently displayed to the SVG file. |
void |
exportToSVGWithException(java.io.OutputStream os,
int mode,
java.lang.String charEnc)
Exports a snapshot of the page that is currently displayed to the SVG file. |
void |
exportToSVGWithException(java.io.Writer writer,
int mode,
java.lang.String charEnc)
Exports a snapshot of the page that is currently displayed to the SVG file. |
protected void |
firePrintBegin(java.lang.Object source)
|
protected void |
firePrintEnd(java.lang.Object source)
|
protected void |
firePropertyChange(java.lang.Object obj,
java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
TwoDMarker |
get2DMarker()
Retrieves the TwoDMarker component for this graph. |
ThreeDFloor |
get3DFloor()
Retrieves the ThreeDFloor component for this graph. |
ThreeDLeftWall |
get3DLeftWall()
Retrieves the ThreeDLeftWall component for this graph. |
ThreeDMarker |
get3DMarker()
Retrieves the ThreeDMarker component for this graph. |
ThreeDRightWall |
get3DRightWall()
Retrieves the ThreeDRightWall component for this graph. |
ThreeDViewMatrix |
get3DViewMatrix()
Retrieves the ThreeDViewMatrix component for this graph. |
Alert |
getAlert(int index)
Return alert with the specified index. |
java.lang.String |
getAlternativeText(ComponentHandle handle)
|
int |
getAnnotationsVisibility()
returns current visibility for Annotations |
AreaMarker |
getAreaMarker()
Retrieves the AreaMarker component for this graph. |
int |
getAutoLayout()
Retrieves information about when the graph automatically places and sizes its components. |
int |
getBarShape()
Get the shape of bars in a bar graph. |
CustomStyle |
getBaseStyle()
|
int |
getColorMode()
Indicates whether markers of the same color comprise a group of data or a series of data. |
int |
getColumnCount()
Retrieves the number of columns of data that this graph displays. |
CommonGraph |
getCommonGraph()
|
ViewFormat |
getComponentViewFormat(ComponentHandle componentHandle)
|
ViewStyle |
getComponentViewStyle(ComponentHandle componentHandle)
Retrieves the ViewStyle for a selected component. |
Connector |
getConnector()
Retrieves the Connector component for this graph. |
int |
getContinuousTimeAxisInterval()
Retrieves the interval along the continuous time axis. |
int |
getCustomLayout()
Retrieves custom layout information about when the graph automatically places and sizes its components. |
CustomToolTipCallback |
getCustomToolTipCallback()
Retrieves the CustomToolTipCallback that this
Graph uses to get text for tooltips. |
java.lang.Object |
getDataAccessSliceLabel(int edge,
int slice,
java.lang.String type)
Retrieves the label for the data slice in the DataAccess
for this graph. |
int |
getDataDirectorType()
Deprecated. As of 4.0.0.11, no replacement |
java.awt.Font |
getDataErrorFont()
Retrieves the font for the message that indicates that there is not enough data to draw the graph. |
DataErrorTextCallback |
getDataErrorTextCallback()
Retrieves the DataErrorTextCallback that this
Graph uses to get text for the data error message. |
DataFilter |
getDataFilter()
Retrieves an implementation of the DataFilter interface. |
DataLine |
getDataLine()
Retrieves the DataLine component for this graph. |
DataMarker |
getDataMarker()
Retrieves the DataMarker component for this graph. |
int |
getDataModelType()
|
DataviewCommon |
getDataviewCommon()
|
java.awt.Dimension |
getDefaultImageSize()
Retrieves the default size of this graph. |
int |
getDepthAngle()
Retrieves the angle that implies depth on a bar, line, or area graph. |
int |
getDepthRadius()
Retrieves the depth of a bar, line, or area graph. |
int |
getDisplayGroups()
Retrieves the number of groups that this graph currently displays. |
int |
getDisplayGroupsLimit()
Retrieves the maximum value allowed for the DisplayGroups
property. |
int |
getDisplaySeries()
Retrieves the number of series that this graph currently displays. |
int |
getDisplaySeriesLimit()
Retrieves the maximum value allowed for the DisplaySeries
property. |
int[] |
getDrillParameters(ComponentHandle handle)
|
protected boolean |
getDrillState(int edge,
int slice)
|
java.util.Date |
getExplicitTimeRangeEnd()
Retrieves the explicit time range end date. |
java.util.Date |
getExplicitTimeRangeStart()
Retrieves the explicit time range start date. |
Fitline |
getFitline()
Retrieves the Fitline component for this graph. |
oracle.dss.presutil.FontMetricsResolver |
getFontMetricsResolver()
|
Titles |
getFootnote()
Retrieves the GraphFootnote component for this graph. |
FunnelFrame |
getFunnelFrame()
Retrieves the FunnelFrame component for this graph. |
double |
getFunnelHeightRatio()
|
double |
getFunnelRotateAngle()
|
double |
getFunnelViewAngle()
|
GraphBackground |
getGraphBackground()
Retrieves the GraphBackground component for this graph. |
ComponentHandle |
getGraphComponentHandle(oracle.dss.graph.pfj.TDGMouseState mouseState)
|
ComponentHandle |
getGraphComponentHandle(oracle.dss.graph.pfj.TDGMouseState mouseState,
boolean useDeadZone)
|
GraphController |
getGraphController()
Retrieves the controller for this graph. |
GraphFormatManager |
getGraphFormatManager()
Retrieves the format manager that the graph uses. |
GraphModel |
getGraphModel()
Retrieves the model that this graph uses. |
GraphStyleManager |
getGraphStyleManager()
Retrieves the style manager that this graph uses. |
int |
getGraphType()
Retrieves the current graph type for this graph. |
GraphTypeConverter |
getGraphTypeConverter()
Retrieves the GraphTypeConverter that this graph uses. |
int |
getGroupSize(int type)
Retrieves the number of columns or rows that comprise a group in a specified graph type. |
int |
getGroupTooltipLabelType()
Retrieves the type of information about groups that this graph displays in tooltips. |
java.util.Enumeration |
getImagemapEnumeration(int filter)
Retrieves the enumeration of specific kinds of components that are currently in use and visible on the graph. |
java.awt.Dimension |
getImageSize()
Retrieves the size of this graph. |
java.lang.String |
getIntlString(java.lang.String key)
|
LegendArea |
getLegendArea()
Retrieves the LegendArea component for this graph. |
LegendMarker |
getLegendMarker()
Retrieves the LegendMarker component for this graph. |
int |
getLegendScrollbarPresence()
Retrieves the circumstances under which a scrollbar appears for the legend of this graph. |
int |
getLegendSeriesCount()
Retrieves the number of series that are represented in the legend, independent of the number that the graph displays. |
int |
getLegendSeriesStart()
Retrieve the index of the first series that appears in the legend, independent of the first series that the graph displays. |
LegendText |
getLegendText()
Retrieves the LegendText component for this graph. |
LegendTitle |
getLegendTitle()
Retrieves the LegendTitle component for this graph. |
int |
getMarkerShapeInLegend()
Indicates whether legend markers are shaped like their corresponding data markers or 2-D markers. |
MarkerText |
getMarkerText()
Retrieves the MarkerText component for this graph. |
int |
getMarkerTooltipType()
Indicates the type of information that this graph displays in tooltips for markers. |
int |
getMaxBarWidth()
Retrieves the maximum width of bar in this graph, in virtual coordinates. |
int |
getMaxTickLabelAutoFontSize()
Retrieves the maximum font size for tick labels that are automatically sized to fit in this graph. |
ViewStyle |
getMetadataStyle(java.lang.Object metaData,
ViewStyle initStyle,
int edge,
int depth,
int index)
|
int |
getMinimumGroups(int type)
Retrieves the minimum number of groups that a graph type requires. |
int |
getMinimumSeries(int type)
Retrieves the minimum number of series that a graph type requires. |
int |
getMinTickLabelAutoFontSize()
Retrieves the minimum font size for tick labels that are automatically sized to fit in this graph. |
int |
getMouseActions()
|
java.lang.String |
getNoDataErrorText()
Get the error text to display when graph has no data. |
O1Axis |
getO1Axis()
Retrieves the O1Axis component for this graph. |
O1MajorTick |
getO1MajorTick()
Retrieves the O1MajorTick component for this graph. |
O1TickLabel |
getO1TickLabel()
Retrieves the O1TickLabel component for this graph. |
O1Title |
getO1Title()
Retrieves the 01Title component for this graph. |
protected oracle.dss.util.xml.ObjectNode |
getObjectNode(boolean allProperties)
|
ViewStyle |
getPagingControlViewStyle()
|
oracle.dss.util.xml.ObjectNode |
getPagingControlXML(boolean allProperties)
|
UIParetoLine |
getParetoLine()
Retrieves the implementation of the UIParetoLine interface
for this graph. |
ParetoMarker |
getParetoMarker()
Retrieves the ParetoMarker component for this graph. |
oracle.dss.util.persistence.PersistableAttributes |
getPersistableAttributes(oracle.dss.util.persistence.PersistableAttributes oldAttrs)
Retrieves the attributes of this Dataview , for searching. |
PFJ |
getPFJ()
|
int |
getPieBarSeries()
Retrieves the index of series for which the bar shows detail, in a pie-bar or ring-bar graph. |
int |
getPieDepth()
Retrieves the depth of a pie in a pie graph. |
PieFeeler |
getPieFeeler()
Retrieves the PieFeeler component for this graph. |
PieFrame |
getPieFrame()
Retrieves the PieFrame component for this graph. |
PieLabel |
getPieLabel()
Retrieves the PieLabel component for this graph. |
int |
getPieRotation()
Retrieves the amount that a pie or ring is rotated in a pie graph. |
int |
getPieTilt()
Retrieves the amount that a pie or ring appears to be tilted. |
PlotArea |
getPlotArea()
Retrives the PlotArea component for this graph. |
int |
getPresentationHeight()
Retrieves the height of this graph in pixels. |
int |
getPresentationWidth()
Retrieves the width of the graph in pixels. |
QuadrantLine |
getQuadrantLine()
Retrieves the QuadrantLine component for this graph. |
ReferenceObject |
getReferenceObject(int id)
Return ReferenceObject with the specified ID. |
int |
getReferenceObjectDisplay(int component)
Indicates when the reference objects for a given component should be displayed. |
ReferenceObjectMarker |
getReferenceObjectMarker()
Retrieves the ReferenceObjectMarker component for this graph. |
java.util.List |
getReferenceObjects(int component)
Returns a list of reference objects that belong to a specific graph. |
ReferenceObjectText |
getReferenceObjectText()
Retrieves the ReferenceObjectText component for this graph. |
long |
getRelativeTimeRange()
Retrieves the relative time range in milliseconds. |
RingTotalLabel |
getRingTotalLabel()
Retrieves the RingTotalLabel component for this graph. |
int |
getRowCount()
Retrieves the number of rows of data that this graph displays. |
int |
getScaleFontSizeForGIF()
Retrieves which text components should be resized when the graph is scaled to a different size for output to a graphic file, such as a GIF or PNG file. |
int |
getScrollbarPresenceGroups()
Retrieves the circumstances under which scrollbars for groups appear on this graph. |
int |
getScrollbarPresenceSeries()
Retrieves the circumstances under which scrollbars for series appear on this graph. |
ComponentHandle |
getSelectedObject()
Retrieves the selected component. |
Series |
getSeries()
Retrieves the Series component for this graph. |
int |
getSeriesEffect()
Retrieves the current effect on the series. |
int |
getSeriesObjectCount()
Retrieves the number of series that this graph stores properties for. |
int |
getSeriesRolloverBehavior()
Get the rollover behavior for series in the graph. |
int |
getSeriesTooltipLabelType()
Retrieves the type of information about series that this graph displays in tooltips. |
Slice |
getSlice()
Retrieves the Slice component for this graph. |
SliceLabel |
getSliceLabel()
Retrieves the SliceLabel component for this graph. |
SplitDivider |
getSplitDivider()
Retrieves the SplitDivider component for this graph. |
int |
getStartColumn()
Deprecated. As of 2.6.0.27, replaced by getStartGroup() or by
getStartSeries() . |
int |
getStartGroup()
Retrieves the first group that this graph currently displays. |
int |
getStartRow()
Deprecated. As of 2.6.0.27, replaced by getStartSeries() or by
getStartGroup() . |
int |
getStartSeries()
Retrieves the first series that this graph currently displays. |
StockMarker |
getStockMarker()
Retrieves the StockMarker component for this graph. |
CustomStyle |
getStyle()
|
java.lang.String |
getStylePath()
Retrieves the path name for the current style. |
java.lang.String |
getStyleXML()
|
Titles |
getSubtitle()
Retrieves the GraphSubtitle component for this graph. |
oracle.dss.graph.pfj.ThickPFJ |
getThickPFJ()
|
Threshold |
getThreshold()
Retrieves the Threshold component for this graph. |
int |
getThresholdObjectCount()
Retrieves the number of thresholds that this graph stores properties for. |
TickLabelCallback |
getTickLabelCallback(int axisID)
Retrieves the TickLabelCallback that has been set
for customizing tick labels. |
java.lang.String |
getTimeAxisDateFormat(int element)
Retrieves the format for a date element on the time axis. |
int |
getTimeAxisType()
Retrieves the type of time axis to plot. |
int |
getTimeRangeMode()
Retrieves the time range mode. |
TimeSelector |
getTimeSelector()
Retrieves the TimeSelector component for this graph. |
java.util.TimeZone |
getTimeZone()
Retrieves the TimeZone object this graph uses to format
time data on the group axis. |
Titles |
getTitle()
Retrieves the GraphTitle component for this graph. |
int |
getToolTipDelay()
Retrieves the amount of time before tooltips appear. |
UISeriesColor |
getUISeriesColor()
Retrieves an object that provides access to the color for a series. |
UIThresholdColor |
getUIThresholdColor()
Retrieves an object that provides access to the color for a threshold. |
UndefinedComponent |
getUndefinedComponent()
|
java.lang.String |
getVersion()
|
int |
getViewType()
Retrieves the specific type of subclass of this Dataview . |
protected DataviewXML |
getViewXML()
|
VolumeMarker |
getVolumeMarker()
Retrieves the VolumeMarker component for this graph. |
X1Axis |
getX1Axis()
Retrieves the X1Axis component for this graph. |
X1MajorTick |
getX1MajorTick()
Retrieves the X1MajorTick component for this graph. |
X1TickLabel |
getX1TickLabel()
Retrieves the X1TickLabel component for this graph. |
X1Title |
getX1Title()
Retrieves the X1Title component for this graph. |
XPanelGrid |
getXPanelGrid()
Retrieves the XPanelGrid component for this graph. |
Y1Axis |
getY1Axis()
Retrieves the Y1Axis component for this graph. |
Y1BaseLine |
getY1BaseLine()
Retrieves the Y1BaseLine component for this graph. |
Y1MajorTick |
getY1MajorTick()
Retrieves the Y1MajorTick component for this graph. |
Y1TickLabel |
getY1TickLabel()
Retrieves the Y1TickLabel component for this graph. |
Y1Title |
getY1Title()
Retrieves the Y1Title component for this graph. |
Y1ZeroLine |
getY1ZeroLine()
Retrieves the Y1ZeroLine component for this graph. |
Y2Axis |
getY2Axis()
Retrieves the Y2Axis component for this graph. |
Y2BaseLine |
getY2BaseLine()
Retrieves the Y2BaseLine component for this graph. |
Y2MajorTick |
getY2MajorTick()
Retrieves the Y2MajorTick component for this graph. |
Y2TickLabel |
getY2TickLabel()
Retrieves the Y2TickLabel component for this graph. |
Y2Title |
getY2Title()
Retrieves the Y2Title component for this graph. |
Y2ZeroLine |
getY2ZeroLine()
Retrieves the Y2ZeroLine component for this graph. |
Y3DMarkerGrid |
getY3DMarkerGrid()
Retrieves the Y3DMarkerGrid component for this graph. |
YPanelGrid |
getYPanelGrid()
Retrieves the YPanelGrid component for this graph. |
int |
getZoomDirection()
|
ZPanelGrid |
getZPanelGrid()
Retrieves the ZPanelGrid component for this graph. |
ZTickLabel |
getZTickLabel()
Retrieves the ZTickLabel component for this graph. |
ZTitle |
getZTitle()
Retrieves the ZTitle component for this graph. |
boolean |
is3DEffect()
|
boolean |
isAlignTickMarks()
Retrieves whether Y1Axis and Y2Axis tick marks are aligned. |
boolean |
isDataRowShownAsASeries()
Indicates whether rows of data appear as series or as groups. |
boolean |
isDrillingSupported()
|
boolean |
isDualY()
Indicates whether the graph type is a dual-Y graph type. |
boolean |
isExcelOrDeskTop()
|
boolean |
isExporting()
|
boolean |
isFontSizeAbsolute()
Indicates whether the font size is absolute or proportional to the size of the graph. |
boolean |
isFrameSizeAutomatic()
Indicates whether the plot area or pie frame is automatically resized when the graph type changes. |
boolean |
isGraphicAntialiasing()
Indicates whether lines appear in a graph as smooth or more jagged. |
boolean |
isGroup3DPanels()
|
boolean |
isGroupSeriesTooltipSupported(int edge)
Indicates whether group or series option (depending on the edge passed in) is supported in the tooltips. |
boolean |
isHorizontal()
Indicates whether the graph has a horizontal graph type. |
boolean |
isLineDataLineDisplayed()
Indicates whether data lines appear in a line graph. |
boolean |
isMarkerDisplayed()
Indicates whether data markers appear in a line graph. |
boolean |
isMarkerShapeInLegend()
Deprecated. As of 11.1.1.0.10, replaced by getMarkerShapeInLegend() . |
protected boolean |
isMetadataDateSpanSupported()
|
protected boolean |
isMetadataDrillParentDateSpanSupported()
|
protected boolean |
isMetadataDrillParentDateSupported()
|
protected boolean |
isMetadataDrillSupported()
|
boolean |
isMouseMovingEnabled()
Indicates whether the selected component can be moved and resized with the mouse. |
boolean |
isO1AxisSupported()
Indicates whether the current graph type has an ordinal axis. |
boolean |
isParetoBarsConnected()
Indicates whether pareto bars are connected. |
protected boolean |
isPie(int graphType)
|
boolean |
isPrintOrPreviewMode()
|
boolean |
isScatterDataLineDisplayed()
Indicates whether data lines appear on a scatter graph. |
protected boolean |
isStyleOverrideFlag(int attrID)
|
boolean |
isSwapAllowed()
Indicates whether swapping is allowed in this view. |
boolean |
isTextAntialiasing()
Indicates whether text appears in a graph as smooth or more jagged. |
void |
loadCompleted()
|
protected void |
metadataLabelTypeChanged()
|
void |
modelDataAvailable(DataAvailableEvent e)
Inform view of changes to the data availability. |
void |
modelDataChanged(DataChangedEvent e)
Inform view of changes to the actual data or metadata. |
void |
modelWaitDataAvailable(WaitDataAvailableEvent e)
Inform view that a lazy data fetch has been completed. |
void |
notEnoughData(NotEnoughData neData)
|
void |
paint(java.awt.Graphics g)
|
protected void |
processAlertEvent(int eventID)
|
boolean |
readXML(java.io.InputStream stream,
int reset)
Applies XML to this Graph , from a String . |
protected void |
refreshData()
|
void |
removeAlertListener(AlertListener l)
Removes an alert listener from this graph. |
void |
removeKeyListener(java.awt.event.KeyListener l)
Removes a key listener from this graph. |
void |
removeMouseListener(java.awt.event.MouseListener l)
Removes a mouse listener from this graph. |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes a mouse motion listener from this graph. |
void |
resetEverything(int reset)
|
protected void |
resetFontSizes()
|
void |
resetSuper(int reset,
java.lang.String version)
|
void |
resetToDefault(int reset)
Resets properties of this Graph to their default values. |
void |
resetXMLProps()
|
protected void |
saveDrillState()
|
boolean |
selectObject(ComponentHandle id)
Selects a graph component. |
void |
set3DEffect(boolean yesNo)
|
void |
setAlignTickMarks(boolean align)
Specifies whether the tick marks on Y1Axis and Y2Axis should align in case of Dual-Y Graphs. |
void |
setAnnotationsVisibility(int visibility)
Specify visibility for Annotations |
void |
setAutoLayout(int auto)
Specifies when the graph automatically places and sizes its components. |
void |
setBackgroundTransparent(boolean transparent)
|
void |
setBarShape(int shape)
Set the shape of bars in a bar graph. |
void |
setBaseStyle(CustomStyle baseStyle)
|
void |
setColorMode(int mode)
Specifies whether markers of the same color comprise a group of data or a series of data. |
void |
setContext()
|
void |
setContinuousTimeAxisInterval(int interval)
Specifies the interval along the continuous time axis. |
void |
setCustomLayout(int type)
|
void |
setCustomToolTipCallback(CustomToolTipCallback callback)
Specifies the CustomToolTipCallback that will provide
tooltip text to this Graph . |
void |
setDataDirector(DataDirector dd)
|
void |
setDataDirectorType(int type)
Deprecated. As of 4.0.0.11, no replacement |
void |
setDataErrorFont(java.awt.Font font)
Specifies the font for the message that indicates that there is not enough data to draw the graph. |
void |
setDataErrorTextCallback(DataErrorTextCallback callback)
Specifies the DataErrorTextCallback that will provide
data error text to this Graph . |
void |
setDataModelType(int dataModelType)
|
void |
setDataRowShownAsASeries(boolean yesNo)
Specifies whether to display data rows as series or as groups. |
void |
setDataSource(DataSource ds)
Specifies the data source for this graph. |
protected void |
setDataUnformattedSupported(boolean supported)
|
void |
setDefaultImageSize(java.awt.Dimension d)
Specifies a default size for this graph. |
void |
setDepthAngle(int angle)
Specifies the angle that implies depth on a bar, line, or area graph. |
void |
setDepthRadius(int depth)
Specifies how deep a bar, line, or area graph should appear to be. |
void |
setDirty(boolean yesNo)
|
void |
setDisplayGroups(int maxGroup)
Specifies the number of groups to display in this graph. |
void |
setDisplayGroupsLimit(int maxDisplayGroups)
Specifies the maximum value allowed for the DisplayGroups
property. |
void |
setDisplaySeries(int maxSeries)
Specifies the number of series to display in this graph. |
void |
setDisplaySeriesLimit(int maxDisplaySeries)
Specifies the maximum value allowed for the DisplaySeries
property. |
void |
setDrillingEnabled(boolean b)
Specifies whether drilling is allowed in this view. |
void |
setEnabled(boolean yesNo)
Specifies whether this Dataview is enabled. |
void |
setExplicitTimeRangeEnd(java.util.Date date)
Specifies the explicit time range end date for a time axis. |
void |
setExplicitTimeRangeStart(java.util.Date date)
Specifies the explicit time range start date for a time axis. |
void |
setFontMetricsResolver(oracle.dss.presutil.FontMetricsResolver resolver)
|
void |
setFontName(java.lang.String name)
Specifies the font name for all of the components of this graph. |
void |
setFontSizeAbsolute(boolean yesNo)
Specifies whether to use absolute font sizes or sizes that are proportional to the size of the graph. |
void |
setFrameSizeAutomatic(boolean isAuto)
Specifies whether the plot area or pie frame is automatically resized when the graph type changes. |
void |
setFunnelHeightRatio(double heightRatio)
|
void |
setFunnelRotateAngle(double rotateAngle)
|
void |
setFunnelViewAngle(double viewAngle)
|
void |
setGraphController(GraphController graphController)
|
void |
setGraphFormatManager(GraphFormatManager m)
|
void |
setGraphicAntialiasing(boolean yesNo)
Specifies whether lines in a graph appear more smooth or more jagged. |
void |
setGraphModel(GraphModel graphModel)
|
void |
setGraphStyleManager(GraphStyleManager m)
|
void |
setGraphType(int type)
Specifies the graph type for this graph. |
void |
setGraphTypeConverter(GraphTypeConverter converter)
Specifies the GraphTypeConverter for the graph type to use. |
boolean |
setGridData(java.lang.Object[] columnLabels,
java.lang.Object[] rowLabels,
java.lang.Object[][] data)
|
void |
setGroup3DPanels(boolean yesNo)
|
void |
setGroupTooltipLabelType(int type)
Specifies the type of information about groups that this graph displays in tooltips. |
void |
setImageSize(java.awt.Dimension d)
Specifies the size of the image that is created from this graph when you export the graph to a PNG or GIF file. |
protected void |
setLayerMetaLongLabelSupported(boolean supported)
|
protected void |
setLayerMetaMediumLabelSupported(boolean supported)
|
protected void |
setLayerMetaNameSupported(boolean supported)
|
protected void |
setLayerMetaShortLabelSupported(boolean supported)
|
void |
setLegendScrollbarPresence(int presence)
Specifies the circumstances under which a scrollbar appears for the legend of this graph. |
void |
setLegendSeriesCount(int count)
Specifies the number of series to show in the legend, independent of the number of series that the graph displays. |
void |
setLegendSeriesStart(int start)
Specifies the index of the first series that appears in the legend, independent of the first series that the graph displays. |
void |
setLineDataLineDisplayed(boolean yesNo)
Specifies whether data lines appear in a line graph. |
void |
setLocale(java.util.Locale loc)
Specifies the Locale for this Graph . |
void |
setMarkerDisplayed(boolean yesNo)
Specifies whether data markers appear in a line graph. |
void |
setMarkerShapeInLegend(boolean yesNo)
Deprecated. As of 11.1.1.0.10, replaced by setMarkerShapeInLegend(int) . |
void |
setMarkerShapeInLegend(int markerShapeInLegend)
Specifies whether legend markers are shaped like their corresponding data markers or 2-D markers. |
void |
setMarkerTooltipType(int type)
Specifies the type of information that this graph displays in tooltips for markers. |
void |
setMaxBarWidth(int width)
Specifies the maximum width of a bar, in virtual coordinate units. |
void |
setMaxTickLabelAutoFontSize(int size)
Specifies the maximum font size for tick labels that are automatically sized to fit in this graph. |
protected void |
setMetadataDateSpanSupported(boolean supported)
|
protected void |
setMetadataDateSupported(boolean supported)
|
protected void |
setMetadataDrillParentDateSpanSupported(boolean supported)
|
protected void |
setMetadataDrillParentDateSupported(boolean supported)
|
protected void |
setMetadataDrillSupported(boolean supported)
|
protected void |
setMetadataLongLabelSupported(boolean supported)
|
protected void |
setMetadataMediumLabelSupported(boolean supported)
|
protected void |
setMetadataShortLabelSupported(boolean supported)
|
protected void |
setMetadataValueSupported(boolean supported)
|
void |
setMinTickLabelAutoFontSize(int size)
Specifies the minimum font size for tick labels that are automatically sized to fit in this graph. |
void |
setMouseActions(int actions)
|
void |
setMouseMovingEnabled(boolean yesNo)
Specifies whether a selected component can be moved and resized with the mouse. |
void |
setNoDataErrorText(java.lang.String text)
Set the error text to display when graph has no data. |
void |
setPagingControlXML(oracle.dss.util.xml.ObjectNode pagingControl,
java.lang.String version,
int reset)
|
void |
setParetoBarsConnected(boolean connected)
Specifies whether the pareto bars are connected to each other. |
void |
setPersistableComponents(oracle.dss.util.persistence.AggregateInfo[] persistables)
|
void |
setPieBarSeries(int series)
Specifies the series for which the bar shows detail, in a pie-bar or ring-bar graph. |
void |
setPieDepth(int depth)
Specifies how deep a pie in a pie graph should be. |
void |
setPieRotation(int degrees)
Specifies the amount that a pie is rotated in a pie graph. |
void |
setPieTilt(int tilt)
Specifies the amount to tilt a pie or ring. |
void |
setPrintOrPreviewMode(boolean bool)
|
void |
setReferenceObjectDisplay(int component,
int display)
Specifies when to display the reference objects for a given graph component. |
void |
setRelativeTimeRange(long time)
Specifies the relative time range in milliseconds for time axis. |
void |
setScaleFontSizeForGIF(int scale)
Specifies which text components should be resized when the graph is scaled to a different size for output to a graphic file, such as a GIF or PNG file. |
void |
setScatterDataLineDisplayed(boolean yesNo)
Specifies whether data lines appear on a scatter graph. |
void |
setScrollbarPresenceGroups(int scroll)
Specifies the circumstances under which scrollbars for groups appear on this graph. |
void |
setScrollbarPresenceSeries(int scroll)
Specifies the circumstances under which scrollbars for series appear on this graph. |
void |
setSeriesEffect(int effect)
Sets the specified series effect on the graph. |
void |
setSeriesObjectCount(int count)
Specifies the number of series that this graph stores properties for. |
void |
setSeriesRolloverBehavior(int behavior)
Set the rollover behavior for series in the graph. |
void |
setSeriesTooltipLabelType(int type)
Specifies the type of information about series that this graph displays in tooltips. |
void |
setStandardShape(boolean standardShape)
Setter method for standard shape and width |
void |
setStartColumn(int column)
Deprecated. As of 2.2.0.14, replaced by setStartGroup(int) or by
setStartSeries(int) |
void |
setStartGroup(int group)
Specifies the first group to display in this graph. |
void |
setStartRow(int row)
Deprecated. As of 2.2.0.14, replaced by setStartSeries(int) or by
setStartGroup(int) |
void |
setStartSeries(int series)
Specifies the first series to display in this graph. |
void |
setStyle(CustomStyle style)
|
void |
setStylePath(java.lang.String stylePath)
Applies a style to this graph based on the specified XML file. |
void |
setSwapAllowed(boolean swap)
Specifies whether users can swap page items in this view. |
boolean |
setTabularData(java.util.List tableRows)
Specifies data for the Graph , from a table of data. |
void |
setTextAntialiasing(boolean yesNo)
Specifies whether text in a graph appears more smooth or more jagged. |
void |
setThresholdObjectCount(int count)
Specifies the number of thresholds that this graph stores properties for. |
void |
setTickLabelCallback(TickLabelCallback callback,
int axisID)
Specifies a TickLabelCallback to use for customizing tick
labels. |
void |
setTimeAxisDateFormat(int element,
java.lang.String format)
Specifies the format for a date element on the time axis. |
void |
setTimeAxisType(int timeAxis)
Specifies the type of time axis to plot. |
void |
setTimeRangeMode(int mode)
Specifies the time range mode on a time axis. |
void |
setTimeZone(java.util.TimeZone tz)
Specifies the TimeZone for this graph. |
void |
setToolTipDelay(int delay)
Specifies the amount of time before tooltips appear. |
boolean |
setVersion(java.lang.String version)
Sets the Graph to use default values of the specified version. |
protected void |
setXML(oracle.dss.util.xml.ObjectNode node,
int reset)
|
boolean |
setXML(java.lang.String xmlString,
int reset)
Applies XML to this Graph , from a String . |
boolean |
setXMLAsString(java.lang.String xml)
Specifies the XML representation of this Graph . |
void |
setZoomDirection(int axes)
|
boolean |
startExport()
|
void |
updatePageItems()
|
protected void |
updateResourceBundle()
|
void |
updateStyle(CustomStyle style)
|
void |
writeImagemapXML(java.io.OutputStream os,
int filter)
Writes an XML representation of information about specific kinds of components that are currently in use and visible on the graph. |
void |
writeImagemapXML(java.io.PrintWriter out,
int filter)
Writes an XML representation of information about specific kinds of components that are currently in use and visible on the graph. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.dss.dataView.ExportableGraph |
---|
getPagingControlPosition, isPagingControlVisible |
Methods inherited from interface oracle.dss.dataView.ThickDataview |
---|
getDataviewFootnote, getDataviewSubtitle, getDataviewTitle, isEnabled, isShowing, repaint |
Methods inherited from interface oracle.dss.presutil.CommonViewAttributes |
---|
getDescription, getLocalName, getName, setDescription, setLocalName, setName |
Methods inherited from interface oracle.dss.dataView.UIDataview |
---|
getDataviewFootnote, getDataviewSubtitle, getDataviewTitle, getTokenSubstitution, setTokenSubstitution |
Methods inherited from interface oracle.dss.util.PagingControlAttributes |
---|
isPagingControlVisible, setPagingControlVisible |
Methods inherited from interface oracle.dss.dataView.UIView |
---|
addControllerListener, getLocale, getModel, isCustomColorsEnabled, removeControllerListener, setCustomColorsEnabled |
Methods inherited from interface oracle.dss.dataView.DataviewCommon |
---|
repaint |
Field Detail |
---|
public static final java.lang.String GRAPH_TYPE
Attributes
.
convertGraphTypeToString(int)
,
Constant Field Valuespublic static final java.lang.String GRAPH_XML_VERSION_NUMBER
protected PFJ m_pfj
protected GraphModel m_graphModel
protected GraphController m_graphController
protected SampleDataSource m_sampleDataSource
protected GraphTypeConverter m_converter
protected java.awt.Image m_offscreenImage
protected boolean m_printOrPreviewMode
Constructor Detail |
---|
public Graph()
DataSource
.
If you use this constructor, call the setDataSource
method
to specify the data that this graph displays.
public Graph(DataSource dataSource)
DataSource
.
dataSource
- The DataSource
from which this graph
will request data.public Graph(DataSource dataSource, int type)
DataSource
and the
type of DataDirector
that this Graph
will
use.
dataSource
- The DataSource
from which this graph
will request data.type
- A constant that represents the type of data director
that dataSource
implements.
Constants are listed in the See Also sectionGraphConstants.DDT_CUBE
,
GraphConstants.DDT_RELATIONAL
public Graph(ErrorHandler errorHandler)
ErrorHandler
.
errorHandler
- The ErrorHandler
to use.Method Detail |
---|
protected void createPagingControl()
protected void firePropertyChange(java.lang.Object obj, java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
firePropertyChange
in class Dataview
obj
- the Object which has the getter/setter for this propertypropName
- String: the name of the property (minus get/set)oldValue
- Object: the previous value of the propertynewValue
- Object: the new value of the propertypublic void resetToDefault(int reset)
Graph
to their default values.
The reset
parameter determines whether to reset only
the properties or to reset the properties and remove registered
listeners and callbacks.
This method is helpful when you want to reuse a Graph
rather than instantiate a new one.
resetToDefault
in class Dataview
reset
- A constant that indicates how much to reset.
Valid constants are listed in the See Also section.
If you pass an invalid value or RESET_NONE, then this method
logs a message with the error handler and does not change
any properties.DataviewConstants.RESET_XML_PROPERTIES
,
DataviewConstants.RESET_EVERYTHING
,
oracle.dss.dataView.Dataview#RESET_EVERYTHING_BUT_DATASOURCE
public void resetEverything(int reset)
resetEverything
in interface ThickDataview
reset
- A constant that indicates how much to reset.
Valid constants are listed in the See Also section.
If you pass an invalid value or RESET_NONE, then this method
logs a message with the error handler and does not change
any properties.public void resetSuper(int reset, java.lang.String version)
resetSuper
in interface ThickDataview
version
- the Graph XML version number, as stored in XMLpublic void resetXMLProps()
resetXMLProps
in interface ThickDataview
version
- the Graph XML version number, as stored in XMLpublic boolean setVersion(java.lang.String version)
version
- The graph version to which the properties should be reset.
public java.lang.String getVersion()
getVersion
in interface ThickDataview
getVersion
in class Dataview
public void cleanUp()
cleanUp
in class Dataview
public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
awt
listener.
To respond to mouse motions on a graph, it is easier to add a
ViewMouseMotionListener
to the controller for this graph
view.
The ViewMouseMotionEvent
class includes information about
the component over which a mouse moves.
addMouseMotionListener
in class java.awt.Component
l
- The awt
mouse motion listener to add.ViewMouseMotionListener
,
ViewController.addViewMouseMotionListener(oracle.dss.dataView.ViewMouseMotionListener)
public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
awt
mouse motion listener
from the list of registered listeners for this graph.
removeMouseMotionListener
in class java.awt.Component
l
- The mouse motion listener to remove.public void addMouseListener(java.awt.event.MouseListener l)
awt
listener.
To respond to mouse events on a graph, it is easier to add a
ViewMouseListener
to the controller for this graph
view.
The ViewMouseEvent
class includes information about
the component that has been clicked with the mouse.
addMouseListener
in class java.awt.Component
l
- The awt
mouse listener to add.ViewMouseListener
,
ViewMouseEvent
,
ViewController.addViewMouseListener(oracle.dss.dataView.ViewMouseListener)
public void removeMouseListener(java.awt.event.MouseListener l)
awt
mouse listener
from the list of registered listeners for this graph.
removeMouseListener
in class java.awt.Component
l
- The mouse listener to remove.public void addKeyListener(java.awt.event.KeyListener l)
awt
listener.
To respond to keyboard events on a graph, it is easier to add a
ViewKeyListener
to the controller for this graph
view.
The ViewKeyEvent
class includes information about
the component that was selected when the key was pressed.
addKeyListener
in class java.awt.Component
l
- The awt
key listener to add.ViewKeyListener
,
ViewKeyEvent
,
ViewController.addViewKeyListener(oracle.dss.dataView.ViewKeyListener)
public void removeKeyListener(java.awt.event.KeyListener l)
awt
key listener
from the list of registered listeners for this graph.
removeKeyListener
in class java.awt.Component
l
- The key listener to remove.public void addAlertListener(AlertListener l)
AlertEvent
to the alert listener.
l
- The alert listener to add.public void removeAlertListener(AlertListener l)
l
- The alert listener to remove.public void exportToGIF(java.io.OutputStream os)
l
- The focus listener that you want to add.l
- The focus listener that you want to rremove.os
- The OutputStream
that specifies the location and
name of the GIF file.exportToPNG(java.io.OutputStream)
public void exportToGIFWithException(java.io.OutputStream os) throws java.io.IOException, java.lang.Exception
Before it exports to GIF, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
The GIF file is limited to 256 colors. Exporting to PNG produces a higher-quality image.
os
- The OutputStream
that specifies the location and
name of the GIF file.
IOException
- If an error occurs in reading the
OutputStream
.
Exception
- If any other error occurs while exporting to GIF.
java.io.IOException
java.lang.Exception
exportToPNGWithException(java.io.OutputStream)
public void exportToPNG(java.io.OutputStream os)
Before it exports to PNG, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
Depending on the value of the ScaleFontSizeForGIF
property,
this method may scale font sizes in the exported file.
os
- The OutputStream
that specifies the location and
name of the PNG file.exportToPNGWithException(java.io.OutputStream)
,
setScaleFontSizeForGIF(int)
public void exportToPNGWithException(java.io.OutputStream os) throws java.io.IOException, java.lang.Exception
Before it exports to PNG, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
Depending on the value of the ScaleFontSizeForGIF
property,
this method may scale font sizes in the exported file.
os
- The OutputStream
that specifies the location and
name of the PNG file.
IOException
- If an error occurs in reading the
OutputStream
.
Exception
- If any other error occurs while exporting to PNG.
java.io.IOException
java.lang.Exception
exportToPNG(java.io.OutputStream)
,
setScaleFontSizeForGIF(int)
public void exportToSVG(java.io.OutputStream os, int mode, java.lang.String charEnc)
Before it exports to SVG, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
Depending on the value of the ScaleFontSizeForGIF
property,
this method may scale font sizes in the exported file.
os
- The OutputStream
to write SVG to.mode
- specifies what to include in SVG; constants are defined in
this class and begin with SVG_MODE_charEnc
- character encoding to use for SVGsetScaleFontSizeForGIF(int)
public void exportToFlash(java.io.OutputStream os, boolean renderDynamic, boolean showDrawing)
os
- the outputstream associated with the flash filerenderDynamic
- Flag indicating if the rendering is dynamic or static.
For static charts, the value is false.showDrawing
- Only applicable for static charts and indicates if
the drawing of the chart should be shown.public void exportToSVGWithException(java.io.OutputStream os, int mode, java.lang.String charEnc) throws java.io.IOException, java.lang.Exception
Before it exports to SVG, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
Depending on the value of the ScaleFontSizeForGIF
property,
this method may scale font sizes in the exported file.
os
- The OutputStream
to write SVG to.mode
- specifies what to include in SVG; constants are defined in
this class and begin with SVG_MODE_charEnc
- character encoding to use for SVG
java.io.IOException
- if there was a problem writing to the stream
java.lang.Exception
- if another problem occurredsetScaleFontSizeForGIF(int)
public void exportToSVG(java.io.Writer writer, int mode, java.lang.String charEnc)
Before it exports to SVG, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
Depending on the value of the ScaleFontSizeForGIF
property,
this method may scale font sizes in the exported file.
writer
- The Writer
to write SVG to.mode
- specifies what to include in SVG; constants are defined in
this class and begin with SVG_MODE_charEnc
- character encoding to use for SVGsetScaleFontSizeForGIF(int)
public void exportToSVGWithException(java.io.Writer writer, int mode, java.lang.String charEnc) throws java.io.IOException, java.lang.Exception
Before it exports to SVG, this method calls the
DataAccess.forceFetch
method to fetch all of the data on
the current logical page.
Depending on the value of the ScaleFontSizeForGIF
property,
this method may scale font sizes in the exported file.
writer
- The Writer
to write SVG to.mode
- specifies what to include in SVG; constants are defined in
this class and begin with SVG_MODE_charEnc
- character encoding to use for SVG
java.io.IOException
- if there was a problem writing to the writer
java.lang.Exception
- if another problem occurredsetScaleFontSizeForGIF(int)
public boolean isO1AxisSupported()
X1Axis
, which shows a scale of data values.
Also, graphs such as a pie graph or a ring graph do not have ordinal
axes.
true
if the current graph type has an ordinal axis,
false
if not.public ComponentHandle getGraphComponentHandle(oracle.dss.graph.pfj.TDGMouseState mouseState)
mouseState
- Instance of class TDGMouseState contains
the information about the graph component
on which the mouse is currently present
public ComponentHandle getGraphComponentHandle(oracle.dss.graph.pfj.TDGMouseState mouseState, boolean useDeadZone)
mouseState
- Instance of class TDGMouseState contains
the information about the graph component
on which the mouse is currently presentuseDeadZone
- Specifies whether dead zone information should be retrieved
from the TDGMouseState instance
public GraphController getGraphController()
GraphController
for this graph.public void setGraphController(GraphController graphController)
graphController
- The controller for this graph to use.
Application developers normally do not need to call this method.
Call it only if you are providing your own implementation of the
GraphController
interface, rather than using the default
BI Beans GraphController
.
public GraphFormatManager getGraphFormatManager()
ViewFormat
object from the the format
manager determines whether a number appears as a plain number
or as currency.
FormatManager
for this graph.ViewFormat
public void setGraphFormatManager(GraphFormatManager m)
m
- The FormatManager
for the graph to use.ViewFormat
ViewFormat
object from the the format
manager determines whether a number appears as a plain number
or as currency.
By default, the graph model creates an instance of the
GraphRuleFormatter
for the graph to use.
Application developers do not need to call this method unless they
want to replace the default graph manager.
public GraphStyleManager getGraphStyleManager()
GraphStyleManager
for this graph.public void setGraphStyleManager(GraphStyleManager m)
m
- The GraphStyleManager
for the graph to use.public GraphModel getGraphModel()
DataSource
is the "big" model.
The model that this method returns interacts with the
DataSource
, retrieving data
and having the data formatted so that the view can display it.
GraphModel
that this graph uses.public void setGraphModel(GraphModel graphModel)
graphModel
- The GraphModel for this graph to use.DataSource
is the "big" model.
The model that this method returns interacts with the
DataSource
, retrieving data
and having the data formatted so that the view can display it.
Application developers normally do not need to call this method.
Call it only if you are providing your own implementation of the
GraphModel
interface, rather than using the default
BI Beans GraphModel
.
public PFJ getPFJ()
public CommonGraph getCommonGraph()
public ComponentHandle getSelectedObject()
ComponentHandle
class.
The subclass that is returned depends on the component that is selected.
For example, an AreaMarker
represents a series of data,
so if an AreaMarker
is selected, this method returns a
SeriesComponentHandle
.
If a TwoDMarker
(a bar in a bar graph) is selected,
then this method returns a DataComponentHandle
, because
a TwoDMarker
represents a data value that belongs in both
a series (such as May 1999) and a group (such as Shoes).
getSelectedObject
in interface UIView
getSelectedObject
in class Dataview
public void modelDataChanged(DataChangedEvent e)
ModelListener
modelDataChanged
in interface ModelListener
modelDataChanged
in class Dataview
e
- information about the data change.ModelAdapter
public void modelDataAvailable(DataAvailableEvent e)
ModelListener
modelDataAvailable
in interface ModelListener
modelDataAvailable
in class Dataview
e
- information about the data availabilityModelAdapter
protected void refreshData()
refreshData
in class Dataview
public void setDataSource(DataSource ds)
DataSource
that will feed
data to this graph.
If you do not use the Graph(DataSource)
method to create
the graph, then you must call this method to specify the data that
appears in the graph.
setDataSource
in interface DataviewCommon
setDataSource
in interface ThickDataview
setDataSource
in class Dataview
ds
- The DataSource
for this graph to use.public void setDataDirector(DataDirector dd)
setDataDirector
in class Dataview
dd
- The data director for this view.public boolean selectObject(ComponentHandle id)
selectObject
in class Dataview
id
- The handle of the component that you want to select. This
should be a concrete subclass of the
ComponentHandle
class.
true
if the component is successfully selected,
false,
if not.public void setEnabled(boolean yesNo)
Dataview
Dataview
is enabled.
When a Dataview
is disabled, it is visible, but users
cannot operate on the Dataview
.
setEnabled
in interface ThickDataview
setEnabled
in class Dataview
yesNo
- a boolean specifying whether to enable the component (true),
or disable the component (false)public void setStandardShape(boolean standardShape)
public GraphTypeConverter getGraphTypeConverter()
GraphTypeConverter
that this graph uses.
The GraphTypeConverter
translates the base graph types
for a user interface (UI).
The GraphTypeConverter
maintains the information about
the UI version of the graph and the Perspective for Java version.
This method returns null
until the graph user interface
instantiates a GraphTypeConverterAdapter
for the graph.
GraphTypeConverter
that this graph uses.public void setGraphTypeConverter(GraphTypeConverter converter)
GraphTypeConverter
for the graph type to use.
The GraphTypeConverter
translates the base graph types
for a user interface.
For example, the default user interface for this graph exposes a point
graph type.
Internally, this is really a line graph without the
lines.
The GraphTypeConverter
maintains the information about
the internal graph types and the graph types that are exposed in the
user interface.
The default user interface for the graph sets a default
GraphTypeConverter
.
Call this method only if you add types or subtypes to the
GraphTypeConverterAdapter
,
or if you remove types and subtypes from the
GraphTypeConverterAdapter
.
converter
- The GraphTypeConverter
for this graph to
use.public void setLocale(java.util.Locale loc)
Locale
for this Graph
.
setLocale
in class Dataview
loc
- The Locale
for this Graph
.public void setTimeZone(java.util.TimeZone tz)
TimeZone
for this graph.
Set the TimeZone
to have the graph format dates according
to a time zone other than the default time zone.
The graph uses the TimeZone
to format dates when the
group axis displays time data.
tz
- The time zone for this graph to use when it formats dates.public java.util.TimeZone getTimeZone()
TimeZone
object this graph uses to format
time data on the group axis.
null
if no time zone has been set.
When this method returns null
, the graph uses
the default time zone to format time data.public int getGroupSize(int type)
The return value of the Graph.isDataRowShownAsASeries
method determines whether the value that this method returns is the
number of columns or rows.
When DataRowShownAsASeries
is true
, then this
method returns the number of columns that the graph type requires in a
group.
When DataRowShownAsASeries
is false
, then this
method returns the number of rows in a group.
Most graph types have only one column or row in each group, but several graph types have more than one. For example, in a scatter graph in which rows are shown as series, each group has two columns of information -- one column that determines the distance of the marker along the X-axis, and one column that determines the distance along the Y-axis. In a bubble graph, each group has three columns (or rows, if rows are shown as groups) -- one for the X-axis value, one for the Y-axis value, and one for the size of the bubble. Stock graphs also have multiple columns in a group (or multiple rows, if rows are shown as groups).
type
- A constant that represents the graph type that you want
to know about. The constants are the valid constants for the
GraphType
property.
setGraphType(int)
,
isDataRowShownAsASeries()
public int getMinimumGroups(int type)
This method returns the number of groups that graph type requires,
given the default properties for the graph type.
For example, in a line graph, the LineDataLineDisplayed
property is true
by default.
When the LineDataLineDisplayed
property is true
,
then the line graph requires two groups,
to define the end points of the group.
If LineDataLineDisplayed
is false
, then
the graph is a point graph, and actually only one column is required.
Because the lines are displayed by default, this method returns
2 for line graphs.
type
- The type of graph whose minimum groups you want to know.
The constants are the constants for the GraphType
property.
setGraphType(int)
public int getMinimumSeries(int type)
type
- The type of graph whose minimum series you want to know.
The constants are the constants for the GraphType
property.
setGraphType(int)
public ExceptionalRiser createExceptionalRiser(int series, int group)
ExceptionalRiser
.
An ExceptionalRiser
is a data marker that does not share
series-related properties with the rest of the markers in the series.
For example, in a bar graph, all the bars in a series have the same
fill color.
You would call this method if you wanted to have one of the markers in
the series have a different color.
The series
and group
parameters identify the
marker that you want to be different.
series
- The series of the marker that you want to be different.
For a selected marker, you can pass the return value from
DataComponentHandle.getSeries
.group
- The group of the marker that you want to be different.
For a selected marker, you can pass the return value
from DataComponentHandle.getGroup
.
ExceptionalRiser
for the specified marker, or
null
if the graph type does not support
exceptional risers.DataComponentHandle
public void destroyAllExceptionalRisers()
ExceptionalRiser
components in this graph.
An ExceptionalRiser
is a data marker that does not share
series-related properties with the rest of the markers in the series.
For example, in a bar graph, a bar that has a color that is different
from the color of the other bars in the series has an
ExceptionalRiser
.
This method destroys all exceptional risers, forcing each marker
in this graph to look like the other markers in its series.
You can have any number of exceptional risers in a graph. However, to destroy one exceptional riser, you must destroy them all.
ExceptionalRiser
public void setCustomLayout(int type)
auto
- A constant that represents custom layout attribute
Valid constants are listed in the See Also section.GraphConstants.CL_TITLES_SIDEBYSIDE
,
GraphConstants.CL_TITLE_SEPARATOR
,
GraphConstants.CL_AUTO_GRADIENT
public int getCustomLayout()
GraphConstants.CL_TITLES_SIDEBYSIDE
,
GraphConstants.CL_TITLE_SEPARATOR
,
GraphConstants.CL_AUTO_GRADIENT
public void setAutoLayout(int auto)
When the graph determines the size and location of its components, it
temporarily sets component properties.
These temporary settings are not available to application code.
If you want to tweak the appearance of the graph after it has been
automatically laid out, then set AutoLayout
to
AL_NEVER
and call the doAutoLayout
method.
If you set this property to any value other than AL_NEVER
,
then you should also ensure that MouseMovingEnabled
is set to false
.
The default value of AutoLayout
is AL_ALWAYS
.
The default value of MouseMovingEnabled
is false
.
auto
- A constant that represents when the graph should
automatically determine the size and placement of components.
Valid constants are listed in the See Also section.GraphConstants.AL_ALWAYS
,
GraphConstants.AL_AS_NEEDED
,
GraphConstants.AL_NEVER
,
doAutoLayout(int)
,
setMouseMovingEnabled(boolean)
public int getAutoLayout()
GraphConstants.AL_ALWAYS
,
GraphConstants.AL_AS_NEEDED
,
GraphConstants.AL_NEVER
public void doAutoLayout(int level)
setAutoLayout(AL_ALWAYS)
, except that this
method adjusts the layout only once, for the current data and layout,
instead of making adjustments for data changes.
If you want to limit the strategies that this method can use in
setting layout, then pass Graph.HONOR_PROPERTIES
to
this method, after setting the text rotation, legend position,
or tick label skipping options that you want.
This method sets the properties for automatic text rotation,
legend position, and tick label skipping to their manual settings.
For any calls after the first call to this method, you should either
reset these properties as you want, or
pass Graph.RESET_PROPERTIES
as the
level
.
Before calling this method, set the AutoLayout
to
AL_NEVER
.
This method sets the following properties of the Graph
:
DisplaySeries
-- Set to 0LegendSeriesCount
-- Set to the number of series whose
labels fit within the legend areaLegendSeriesStart
-- Set to 0LegendScrollbarPresence
-- Set to SP_NEVER
FrameSizeAutomatic
-- Set to true
This method sets the following properties of the LegendArea
component:
AutomaticPlacement
-- Set to BaseGraphComponent.AP_NEVER
MarkersPerRowAutomatic
-- Set to false
LegendMarkersPerRow
-- Set as neededLegendTextPosition
-- Set to LTP_ON_RIGHT
LegendOrientation
-- Set as needed
Rect
-- Set as needed
This method sets the following properties of the O1TickLabel
component:
TickLabelSkipMode
-- Set to BaseGraphComponent.TLS_MANUAL
TickLabelSkipCount
-- Set as needed only if
level
is Graph.RESET_PROPERTIES
or
if TickLabelSkipMode
is TLS_AUTOMATIC
.TickLabelSkipFirst
-- Set as needed only if level
is Graph.RESET_PROPERTIES
or
if TickLabelSkipMode
is TLS_AUTOMATIC
.
TickLabelStaggered
-- Set as neededTextRotation
-- Set as needed only if
level
is Graph.RESET_PROPERTIES
AutomaticRotation
-- Set as needed only if
level
is Graph.RESET_PROPERTIES
HorizontalAlignment
-- Set as needed
This method also does the following:
Rect
property of the PlotArea
to make room in the graph for the legend and
O1TickLabel
componentsRect
properties of the GraphTitle
,
GraphSubtitle
, and GraphFootnote
components,
to place the components and to make the Rect
just big
enough to contain the text.
MaxSize
property of the LegendMarker
to 11 pixelsWordWrap
property of the
LegendText
component, to allow wrapping of the
legend text
level
- A constant that specifies the level of control to
give to the automatic layout code. Pass Graph.RESET_PROPERTIES
to give the automatic layout code more latitude, Graph.HONOR_PROPERTIES
to limit the automatic layout.GraphConstants.HONOR_PROPERTIES
,
GraphConstants.RESET_PROPERTIES
,
setDisplaySeries(int)
,
setLegendSeriesCount(int)
,
setLegendSeriesStart(int)
,
setLegendScrollbarPresence(int)
,
setFrameSizeAutomatic(boolean)
,
BaseFrame.setRect(java.awt.Rectangle)
,
LegendMarker#setMaxSize
,
LegendArea.setAutomaticPlacement(int)
,
LegendArea.setMarkersPerRowAutomatic(boolean)
,
LegendArea.setLegendMarkersPerRow(int)
,
LegendArea.setLegendTextPosition(int)
,
LegendArea.setLegendOrientation(int)
,
LegendArea.setRect(java.awt.Rectangle)
,
O1TickLabel.setTickLabelStaggered(boolean)
,
O1TickLabel.setTickLabelSkipMode(int)
,
O1TickLabel.setTickLabelSkipCount(int)
,
O1TickLabel.setTickLabelSkipFirst(int)
,
O1TickLabel.setTextRotation(int)
,
O1TickLabel.setAutomaticRotation(int)
,
O1TickLabel.setHorizontalAlignment(int)
,
BaseGraphTitle.setRect(java.awt.Rectangle)
public int getBarShape()
GraphConstants.BAR_SHAPE_RECTANGLE
,
GraphConstants.BAR_SHAPE_CYLINDER
,
GraphConstants.BAR_SHAPE_TRIANGLE
,
GraphConstants.BAR_SHAPE_DIAMOND
public void setBarShape(int shape)
shape
- the shape of bars in a bar graphGraphConstants.BAR_SHAPE_RECTANGLE
,
GraphConstants.BAR_SHAPE_CYLINDER
,
GraphConstants.BAR_SHAPE_TRIANGLE
,
GraphConstants.BAR_SHAPE_DIAMOND
public void setColorMode(int mode)
COLOR_BY_GROUP
when you have a single
series of data and you want each marker to be a different color.
This property has no effect when GraphType
is
THREED_SURFACE
.
The default value is COLOR_BY_SERIES
.
mode
- A constant that represents whether to render series in
the same color or groups in the same color.GraphConstants.COLOR_BY_SERIES
,
GraphConstants.COLOR_BY_GROUP
public int getColorMode()
GraphType
is
THREED_SURFACE
.
The default value for ColorMode
is
COLOR_BY_SERIES
.
GraphConstants.COLOR_BY_SERIES
,
GraphConstants.COLOR_BY_GROUP
public int getDataDirectorType()
DataDirector
,
either a cube data director, for multidimensional data, or a
relational data director, for relational data.
GraphConstants.DDT_CUBE
,
GraphConstants.DDT_RELATIONAL
,
DataDirector
public void setDataDirectorType(int type)
DataDirector
,
either a cube data director, for multidimensional data, or a
relational data director, for relational data.
type
- A constant that represents the type of data director.
Constants are listed in the See Also section.GraphConstants.DDT_CUBE
,
GraphConstants.DDT_RELATIONAL
,
DataDirector
public boolean isDataRowShownAsASeries()
DataSource
is translated to PFJ.
For example, in a pie graph, series labels appear in the graph legend,
and group labels appear under each pie.
When data rows are shown as PFJ series, the labels for the data rows
appear in the graph legend.
When data rows are not shown as PFJ series, but rather as PFJ groups, the
row labels appear under each pie, and the column labels appear in the
graph legend.
return true
if data rows are shown as series,
false
if data rows are shown as groups.
public void setDataRowShownAsASeries(boolean yesNo)
DataSource
is translated to PFJ.
For example, in a pie graph, series labels appear in the graph legend,
and group labels appear under each pie.
When data rows are shown as PFJ series, the labels for the data rows
appear in the graph legend.
When data rows are not shown as PFJ series, but rather as PFJ groups, the
row labels appear under each pie, and the column labels appear in the
graph legend.
yesNo
- true
to have data rows shown as PFJ series
(and data columns shown as groups),
false
to have data rows shown as PFJ groups
(and data columns shown as series).public int getDepthAngle()
With values under 90, the graph seems to face to our left. With values from 91 to 180, the graph seems to face to our right.
When values are close to 90, we see more of the top of the markers and less of their sides. When values are close to 0 or 180, we see less of the top of the markers and less of their sides.
The default value is 45.
public void setDepthAngle(int angle)
With values under 90, the graph seems to face to our left. With values from 91 to 180, the graph seems to face to our right.
When values are close to 90, we see more of the top of the markers and less of their sides. When values are close to 0 or 180, we see less of the top of the markers and less of their sides.
The default value is 45.
angle
- The size of the angle, in degrees. Valid values are from
zero to 180. When you pass an invalid value, then
the graph does not change the DepthAngle
value. It logs a message to the error handler.public int getDepthRadius()
public void setDepthRadius(int depth)
depth
- The depth that you want the graph to appear to have.
Valid values are zero (a flat graph) to 100 (maximum
depth).
If you pass an invalid value, the graph does not set
the DepthRadius
property. It logs a
message to the error handler.public int getDisplayGroups()
public void setDisplayGroups(int maxGroup)
setScrollBarPresenceGroups
method,
to allow scrolling in this graph, when data rows are shown as series.
maxGroup
- The number of groups to display at one time in the
graph. To show all groups, pass 0. The maximum
number of groups that you can display is the amount
that is returned by
Graph.getDisplayGroupsLimit
.setDataRowShownAsASeries(boolean)
,
setScrollbarPresenceGroups(int)
,
getDisplayGroupsLimit()
public int getDisplayGroupsLimit()
DisplayGroups
property.
This method identifies a maximum value for the
setDisplayGroups
method.
If the return value from this method is smaller than the return value
from getDisplayGroups
, then the graph uses the return
value from this method.
setDisplayGroups
.getDisplayGroups()
,
setDisplayGroups(int)
public void setDisplayGroupsLimit(int maxDisplayGroups)
DisplayGroups
property.
This method sets a maximum value to honor in a call to the
setDisplayGroups
method.
If the value passed in setDisplayGroups
is greater than
the value that you specify in this method, the graph uses the value
from this method.
By using this method, you can provide UI to let users set the number of groups to show at a time, and you can protect them from ill effects that might occur if they choose too high a value.
setDisplayGroups(int)
public int getDisplaySeries()
public void setDisplaySeries(int maxSeries)
maxSeries
- The number of series to display at one time in the
graph. To show all series, pass 0. The maximum
number of series that you can display is the amount
that is returned by
Graph.getDisplaySeriesLimit
.setDisplaySeriesLimit(int)
public int getDisplaySeriesLimit()
DisplaySeries
property.
This method indicates the maximum value that the graph honors in a call
to the setDisplaySeries
method.
If the value passed in setDisplaySeries
is greater than
the value this method returns, the graph uses the value
from this method.
setDisplaySeries
.setDisplaySeries(int)
public void setDisplaySeriesLimit(int maxDisplaySeries)
DisplaySeries
property.
This method sets a maximum value to honor in a call to the
setDisplaySeries
method.
If the value passed in setDisplaySeries
is greater than
the value that you specify in this method, the graph uses the value
from this method.
maxDisplaySeries
- The maximum value to honor in a call to
setDisplaySeries
.setDisplaySeries(int)
public boolean isFrameSizeAutomatic()
true
if the frame size changes automatically when
the graph type changes,
false
if it does not.public void setFrameSizeAutomatic(boolean isAuto)
isAuto
- true
to have the frame size change
automatically,
false
to prevent automatic resizing.public int getGraphType()
A point graph, as exposed in the default UI, is a line graph in which
getLineDataLineDisplayed
returns false
.
A combination graph is a bar graph in which getMarkerType
for one or more series returns anything other than
MT_DEFAULT
.
getGraphType
in interface UIGraphType
setGraphType(int)
,
isLineDataLineDisplayed()
,
Series.getMarkerType(int)
public void setGraphType(int type)
A point graph, as exposed in the default UI, is a line graph in which
isLineDataLineDisplayed
returns false
.
A combination graph is a bar graph in which getMarkerType
for one or more series returns anything other than
MT_DEFAULT
.
setGraphType
in interface UIGraphType
type
- A constant that represents the graph type for this graph.GraphConstants.BAR_VERT_CLUST
,
GraphConstants.BAR_VERT_CLUST2Y
,
GraphConstants.BAR_VERT_CLUST_SPLIT2Y
,
GraphConstants.BAR_VERT_STACK
,
GraphConstants.BAR_VERT_STACK2Y
,
GraphConstants.BAR_VERT_STACK_SPLIT2Y
,
GraphConstants.BAR_VERT_PERCENT
,
GraphConstants.BAR_HORIZ_CLUST
,
GraphConstants.BAR_HORIZ_CLUST_2Y
,
GraphConstants.BAR_HORIZ_CLUST_SPLIT2Y
,
GraphConstants.BAR_HORIZ_STACK
,
GraphConstants.BAR_HORIZ_STACK_2Y
,
GraphConstants.BAR_HORIZ_STACK_SPLIT2Y
,
GraphConstants.AREA_VERT_ABS
,
GraphConstants.AREA_VERT_ABS_SPLIT2Y
,
GraphConstants.AREA_VERT_STACK
,
GraphConstants.AREA_VERT_STACK_SPLIT2Y
,
GraphConstants.AREA_VERT_PERCENT
,
GraphConstants.LINE_VERT_ABS
,
GraphConstants.LINE_VERT_ABS_2Y
,
GraphConstants.LINE_VERT_ABS_SPLIT2Y
,
GraphConstants.LINE_VERT_STACK
,
GraphConstants.LINE_VERT_STACK_2Y
,
GraphConstants.LINE_VERT_STACK_SPLIT2Y
,
GraphConstants.LINE_VERT_PERCENT
,
GraphConstants.RADAR_LINE
,
GraphConstants.PIE
,
GraphConstants.PIE_MULTI
,
GraphConstants.RING
,
GraphConstants.RING_MULTI
,
GraphConstants.PARETO
,
GraphConstants.PIE_BAR
,
GraphConstants.RING_BAR
,
GraphConstants.SCATTER
,
GraphConstants.SCATTER_2Y
,
GraphConstants.POLAR
,
GraphConstants.BUBBLE
,
GraphConstants.BUBBLE_2Y
,
GraphConstants.STOCK_OHLC_CANDLE
,
GraphConstants.STOCK_OHLC_CANDLE_VOLUME
,
GraphConstants.STOCK_HILO_CLOSE
,
GraphConstants.STOCK_HILO_CLOSE_VOLUME
,
GraphConstants.THREED_BAR
,
GraphConstants.THREED_CUBE
,
GraphConstants.THREED_AREA_SERIES
,
GraphConstants.THREED_RIBBON_SERIES
,
GraphConstants.THREED_SURFACE
,
isLineDataLineDisplayed()
,
Series.getMarkerType(int)
public void setTimeAxisType(int timeAxis)
timeAxis
- the constant for the time axis type.public int getTimeAxisType()
public void setContinuousTimeAxisInterval(int interval)
interval
- the constant for the time axis type.GraphConstants.TAT_DEFAULT
,
GraphConstants.TAT_IRREGULAR
,
GraphConstants.TAT_MIXED_FREQUENCY
,
GraphConstants.TAT_DEFAULT_STRICT
,
GraphConstants.TAT_IRREGULAR_STRICT
,
GraphConstants.TAT_MIXED_FREQUENCY_STRICT
,
GraphConstants.TAT_OFF
public int getContinuousTimeAxisInterval()
public int getGroupTooltipLabelType()
GroupTooltipLabelType
is
TLT_MEMBER
.
GraphConstants.TLT_DIM_MEMBER
,
GraphConstants.TLT_MEMBER
,
GraphConstants.TLT_NONE
public void setGroupTooltipLabelType(int type)
GroupTooltipLabelType
is
TLT_MEMBER
.
type
- A constant that represents the type of information that the
graph should display for groups. Constants are listed in the See
Also section.GraphConstants.TLT_DIM_MEMBER
,
GraphConstants.TLT_MEMBER
,
GraphConstants.TLT_NONE
public java.awt.Dimension getImageSize()
getImageSize
in interface ExportableGraph
Dimension
object.public void setImageSize(java.awt.Dimension d)
d
- The size to make the graph.exportToGIF(java.io.OutputStream)
,
exportToGIFWithException(java.io.OutputStream)
,
exportToPNG(java.io.OutputStream)
,
exportToPNGWithException(java.io.OutputStream)
public java.awt.Dimension getDefaultImageSize()
ScaleFontSizeForGIF
is set to something
other than TEXT_COMPONENTS_NONE
.
setScaleFontSizeForGIF(int)
public void setDefaultImageSize(java.awt.Dimension d)
exportToGIF
or
exportToGIFWithException
, to set the default size of the
GIF file.
Setting this property has no effect when ScaleFontSizeForGIF
is set to TEXT_COMPONENTS_NONE
.
When this property takes effect, then
the font size ratio is calculated as
ImageSize
/defaultImageSize
.
The default value of the default image size is (400,400).
d
- The default size of the graph.exportToGIF(java.io.OutputStream)
,
exportToGIFWithException(java.io.OutputStream)
,
setScaleFontSizeForGIF(int)
public boolean isLineDataLineDisplayed()
true
if a line graph displays lines,
false
if the line graph does not display lines.setMarkerDisplayed(boolean)
public void setLineDataLineDisplayed(boolean yesNo)
false
, then the graph
sets the MarkerDisplayed
property to true
.
yesNo
- true
to display lines,
false
not to display them.setMarkerDisplayed(boolean)
public boolean isGraphicAntialiasing()
true
if a line in a graph appears smooth,
false
if the line in a graph appears more jagged.public void setGraphicAntialiasing(boolean yesNo)
yesNo
- true
for a smooth line,
false
for a more jagged line.public boolean isTextAntialiasing()
true
if text in a graph appears smooth,
false
if text in a graph appears more jagged.public void setTextAntialiasing(boolean yesNo)
yesNo
- true
for smooth text,
false
for more jagged text.public boolean isMarkerDisplayed()
true
if the line graph displays data markers,
false
if it does not.DataMarker
public void setMarkerDisplayed(boolean yesNo)
true
, then you should also
make sure that the MarkerShape
property for each
series in the graph is not set to BaseGraphComponent.MS_NONE
.
If you set this property to false
, then you should be
sure to set the LineDataLineDisplayed
property to
true
.
yesNo
- true
to display data markers,
false
to hide data markers.setLineDataLineDisplayed(boolean)
,
DataMarker
,
Series.setMarkerShape(int, int)
,
BaseGraphComponent.MS_NONE
public boolean isMarkerShapeInLegend()
getMarkerShapeInLegend()
.
true
if legend markers are shaped like the
data markers or 2-D markers in the same series,
false
if all the legend markers are square.DataMarker
,
TwoDMarker
,
Series.setMarkerShape(int, int)
public void setMarkerShapeInLegend(boolean yesNo)
setMarkerShapeInLegend(int)
.
yesNo
- true
to have legend markers shaped like the
data markers or 2-D markers in the same series,
false
to have all the legend markers remain square.DataMarker
,
TwoDMarker
,
Series.setMarkerShape(int, int)
public int getMarkerShapeInLegend()
DataMarker
,
TwoDMarker
,
GraphConstants.MSIL_FALSE
,
GraphConstants.MSIL_TRUE
,
GraphConstants.MSIL_SQUARE
,
Series.setMarkerShape(int, int)
public void setMarkerShapeInLegend(int markerShapeInLegend)
markerShapeInLegend
- constant indicating marker shape in legendDataMarker
,
TwoDMarker
,
GraphConstants.MSIL_FALSE
,
GraphConstants.MSIL_TRUE
,
GraphConstants.MSIL_SQUARE
,
Series.setMarkerShape(int, int)
public int getMarkerTooltipType()
The default value for MarkerTooltipType
is
MTT_VALUES
.
If MarkerTooltipType
includes MTT_TEXT
, then
the content of the text is specified in the
SeriesTooltipLabelType
and
GroupTooltipLabelType
properties.
GraphConstants.MTT_TEXT
,
GraphConstants.MTT_VALUES
,
GraphConstants.MTT_NONE
,
GraphConstants.MTT_PERCENT_VAL
,
GraphConstants.MTT_CUM_VAL
,
getGroupTooltipLabelType()
,
getSeriesTooltipLabelType()
public void setMarkerTooltipType(int type)
The default value for MarkerTooltipType
is
MTT_VALUES
.
If you set MarkerTooltipType
to include
MTT_TEXT
, then the content of the text is specified by the
setSeriesTooltipLabelType
and
setGroupTooltipLabelType
methods.
type
- A constant that represents the type of information that the
graph should display for markers. Except for
MTT_NONE
, the constants can be combined by using a
bitwise OR (|).GraphConstants.MTT_TEXT
,
GraphConstants.MTT_VALUES
,
GraphConstants.MTT_NONE
,
GraphConstants.MTT_PERCENT_VAL
,
GraphConstants.MTT_CUM_VAL
,
setGroupTooltipLabelType(int)
,
setSeriesTooltipLabelType(int)
public int getMouseActions()
public void setMouseActions(int actions)
actions
- an integer that specifies the type of actions that can be
performed on the graph with the mouse.
Legal value are one of the following constants:
Graph.MA_NONE no actions enabled
Graph.MA_SELECT can select Graph component objects
Graph.MA_SCROLL_ZOOM can drag a rectangle in the PlotArea to initiate
Scrolling and Zoomingpublic boolean isMouseMovingEnabled()
true
if the component can be moved and resized
with the mouse,
false
if not.public void setMouseMovingEnabled(boolean yesNo)
If you set this property to true
, then you should set
AutoLayout
to AL_NEVER
.
If this property is true
while AutoLayout
is
AL_ALWAYS
, then users can select components, but when they
try to move or resize components, the components will snap back to their
original size and location.
If this property is true
while AutoLayout
is
AL_AS_NEEDED
, then users may be able to move and resize some
elements of the graph.
If they cause components to overlap or to exceed their boundaries, then
automatic layout will take place, likely undoing the change the user made.
yesNo
- true
to allow mouse moving and resizing,
false
to prevent it.setAutoLayout(int)
,
doAutoLayout(int)
public void setAlignTickMarks(boolean align)
align
- true
to align Y1Axis and Y2Axis tick marks,
false
to scale Y1Axis and Y2Axis independently.public boolean isAlignTickMarks()
true
if Y1Axis and Y2Axis tick marks are aligned.
false
if Y1Axis and Y2Axis tick marks are not aligned,
Y1Axis and Y2Axis are scaled independently.public boolean isFontSizeAbsolute()
true
if the font size is absolute,
false
if the font size changes with the size of
the graph.public void setFontSizeAbsolute(boolean yesNo)
yesNo
- true
to use absolute font sizes,
false
to use font sizes that change with the size
of the graph.public void setFontName(java.lang.String name)
name
- The name of the font to use for text components.public boolean isParetoBarsConnected()
true
if bars are connected,
false
if space appears between the bars.public void setParetoBarsConnected(boolean connected)
connected
- true
to join the bars,
false
to have space appear between the
bars.public int getPieDepth()
public void setPieDepth(int depth)
depth
- The depth that you want the pie or ring to appear to have.
Valid values are zero (a flat graph) to 100 (maximum
depth).public int getPieRotation()
This method applies to all pies or rings in the graph.
public void setPieRotation(int degrees)
This method applies to all pies or rings in this graph.
degrees
- The number of degrees clockwise to rotate the pie.
Valid values are zero to 359.public int getPieTilt()
public void setPieTilt(int tilt)
public int getPresentationHeight()
getPresentationHeight
in class Dataview
public int getPresentationWidth()
getPresentationWidth
in class Dataview
public boolean isScatterDataLineDisplayed()
true
, the data markers on this graph are connected by
data lines.
true
if data lines appear when this graph is a
scatter graph,
false
if data lines do not appear.DataLine
,
DataMarker
public void setScatterDataLineDisplayed(boolean yesNo)
true
to
this method, the data markers on this graph are connected by
data lines.
yesNo
- true
to display data lines,
false
to hide data lines.DataLine
,
DataMarker
public int getSeriesEffect()
GraphConstants.SE_NONE
,
GraphConstants.SE_GRADIENT
,
GraphConstants.SE_AUTO_GRADIENT
public void setSeriesEffect(int effect)
SE_GRADIENT
sets a special
gradient on data markers to make them look more polished.
This disables interaction with the SFX
of the
Series
object and turns on graphic antialiasing.
When this property is set to SE_NONE
, the markers appear
flat, you can set SFX
properties and objects, and
graphic antialiasing is turned off.
effect
- A constant that represents the series effect.
Valid constants are listed in the See Also section .GraphConstants.SE_NONE
,
GraphConstants.SE_GRADIENT
,
GraphConstants.SE_AUTO_GRADIENT
,
setGraphicAntialiasing(boolean)
,
SFX
,
Series
public int getSeriesObjectCount()
getSeriesObjectCount
in interface GraphAttribute
Series
public void setSeriesObjectCount(int count)
count
- The number of series that this graph should store properties
for before it repeats properties. Valid values are
1 - Graph.SERIESOBJECTCOUNTLIMIT
.Series
public void setThresholdObjectCount(int count)
count
- the number of thresholds that this graph should store
properties for. Valid values are 1 to
Graph.THRESHOLDOBJECTCOUNTLIMIT
.Threshold
public int getThresholdObjectCount()
Threshold
public int getSeriesTooltipLabelType()
SeriesTooltipLabelType
is
TLT_MEMBER
.
In order for the series labels to be displayed, the
MarkerTooltipType
property must be set to include text.
GraphConstants.TLT_MEMBER
,
GraphConstants.TLT_DIM_MEMBER
,
GraphConstants.TLT_NONE
,
setMarkerTooltipType(int)
public void setSeriesTooltipLabelType(int type)
SeriesTooltipLabelType
is
TLT_MEMBER
.
In order for the series labels to be displayed, the
MarkerTooltipType
property must be set to include text.
type
- A constant that represents the type of information that the
graph should display for series.GraphConstants.TLT_MEMBER
,
GraphConstants.TLT_DIM_MEMBER
,
GraphConstants.TLT_NONE
,
setMarkerTooltipType(int)
public void setSeriesRolloverBehavior(int behavior)
behavior
- The behavior for rollover of the series. Constants are
defined in GraphConstants and begin with RB_.GraphConstants.RB_NONE
,
GraphConstants.RB_HIGHLIGHT
,
GraphConstants.RB_DIM
,
GraphConstants#RB_HIGHLIGHT_DIM
public int getSeriesRolloverBehavior()
GraphConstants.RB_NONE
,
GraphConstants.RB_HIGHLIGHT
,
GraphConstants.RB_DIM
,
GraphConstants#RB_HIGHLIGHT_DIM
public int getScrollbarPresenceGroups()
getDisplayGroups
method.
Constants start with SP_.
getDisplayGroups()
,
setDisplayGroups(int)
public void setScrollbarPresenceGroups(int scroll)
getDisplayGroups
method.
Constants start with SP_.
scroll
- A constant that indicates when to have this graph graph
display scrollbars for groups.getDisplayGroups()
,
setDisplayGroups(int)
public int getScrollbarPresenceSeries()
getDisplaySeries
method.
GraphConstants.SP_ALWAYS
,
GraphConstants.SP_NEVER
,
GraphConstants.SP_AS_NEEDED
,
getDisplaySeries()
,
setDisplaySeries(int)
public void setScrollbarPresenceSeries(int scroll)
getDisplaySeries
method.
scroll
- A constant that indicates when to have this graph display
scrollbars for series. Constants are listed in the See Also section.GraphConstants.SP_ALWAYS
,
GraphConstants.SP_NEVER
,
GraphConstants.SP_AS_NEEDED
,
getDisplaySeries()
,
setDisplaySeries(int)
public int getStartGroup()
public void setStartGroup(int group)
getDisplayGroups
method returns a value greater than zero, that is, when this graph does
not display all groups of data.
group
- The index of the first group to display in this graph.
This index is zero-based.
Valid values are from zero to
Graph.GROUPANDSERIESLIMIT
.getDisplayGroups()
,
setDisplayGroups(int)
public int getStartColumn()
getStartGroup()
or by
getStartSeries()
.
public void setStartColumn(int column)
setStartGroup(int)
or by
setStartSeries(int)
DataRowShownAsASeries
is true
,
then a group encompasses two columns of data.
If DataRowShownAsASeries
is set to true
, then
call setStartGroup
to start with a group other than the
first group.
If DataRowShownAsASeries
is set to false
, then
call setStartSeries
to start with a series other than the
first series.
public int getStartSeries()
public void setStartSeries(int series)
getDisplaySeries
method returns a value greater than zero, that is, when this graph does
not display all groups of data.
group
- The index of the first series to display in this graph.
This index is zero-based.
Valid values are from zero to
Graph.GROUPANDSERIESLIMIT
.getDisplaySeries()
,
setDisplaySeries(int)
public int getStartRow()
getStartSeries()
or by
getStartGroup()
.
public void setStartRow(int row)
setStartSeries(int)
or by
setStartGroup(int)
DataRowShownAsASeries
is false
,
then a group encompasses two rows of data.
If DataRowShownAsASeries
is set to false
, then
call setStartGroup
to start with a group other than the
first group.
If DataRowShownAsASeries
is set to true
, then
call setStartSeries
to start with a series other than the
first series.
public int getToolTipDelay()
public void setToolTipDelay(int delay)
delay
- The number of milliseconds to wait before displaying the
tooltip.public int getZoomDirection()
GraphConstants.ZD_XAXIS_ONLY
,
GraphConstants.ZD_YAXIS_ONLY
,
GraphConstants.ZD_BOTH_AXES
public void setZoomDirection(int axes)
axes
- A constant that describes which axes to allow zooming on.
Constants are listed in the See Also section.GraphConstants.ZD_XAXIS_ONLY
,
GraphConstants.ZD_YAXIS_ONLY
,
GraphConstants.ZD_BOTH_AXES
public boolean isHorizontal()
O1Axis
and its tick
labels are vertical.
Otherwise, they are horizontal.
The plot area panel in the default UI calls this method in order
to translate "horizontal" and "vertical" for the end user.
true
if the graph is horizontal,
false
if it is vertical.public CustomToolTipCallback getCustomToolTipCallback()
CustomToolTipCallback
that this
Graph
uses to get text for tooltips.
CustomToolTipCallback
that provides tooltips
for this Graph
. Returns null
if
no CustomToolTipCallback
has been set.public void setCustomToolTipCallback(CustomToolTipCallback callback)
CustomToolTipCallback
that will provide
tooltip text to this Graph
.
callback
- The CustomToolTipCallback
that this
Graph
should call for tooltip text.public DataErrorTextCallback getDataErrorTextCallback()
DataErrorTextCallback
that this
Graph
uses to get text for the data error message.
If this method returns null
, then the graph uses
default text.
DataErrorTextCallback
that provides data error text
for this Graph
. Returns null
if
no DataErrorTextCallback
has been set.public void setDataErrorTextCallback(DataErrorTextCallback callback)
DataErrorTextCallback
that will provide
data error text to this Graph
.
If you do not set a custom text callback, then the graph uses default
text when there is not enough data to display a graph.
callback
- The DataErrorTextCallback
that this
Graph
should call for data error text.setDataErrorFont(java.awt.Font)
public AreaMarker getAreaMarker()
AreaMarker
component for this graph.
AreaMarker
for this graph.getSeries()
public Connector getConnector()
Connector
component for this graph.
Connector
component for this graph.public DataLine getDataLine()
DataLine
component for this graph.
DataLine
component for this graph.getSeries()
public DataMarker getDataMarker()
DataMarker
component for this graph.
DataMarker
component for this graph.getSeries()
public GraphBackground getGraphBackground()
GraphBackground
component for this graph.
GraphBackground
component for this graph.public Titles getFootnote()
GraphFootnote
component for this graph.
GraphFootnote
component for this graph.public LegendArea getLegendArea()
LegendArea
component for this graph.
LegendArea
component for this graph.public LegendTitle getLegendTitle()
LegendTitle
component for this graph.
LegendTitle
component for this graph.public LegendMarker getLegendMarker()
LegendMarker
component for this graph.
LegendMarker
component for this graph.public LegendText getLegendText()
LegendText
component for this graph.
LegendText
component for this graph.public FunnelFrame getFunnelFrame()
FunnelFrame
component for this graph.
FunnelFrame
component for this graphpublic double getFunnelViewAngle()
public void setFunnelViewAngle(double viewAngle)
viewAngle
- the view angle for a funnel chartpublic double getFunnelRotateAngle()
public void setFunnelRotateAngle(double rotateAngle)
public double getFunnelHeightRatio()
public void setFunnelHeightRatio(double heightRatio)
heightRatio
- the left to right surface height ratio for a funnel
chartpublic Fitline getFitline()
Fitline
component for this graph.
Fitline
component for this graph.public MarkerText getMarkerText()
MarkerText
component for this graph.
MarkerText
component for this graph.public O1Axis getO1Axis()
O1Axis
component for this graph.
O1Axis
component for this graph.public O1MajorTick getO1MajorTick()
O1MajorTick
component for this graph.
O1MajorTick
component for this graph.public O1TickLabel getO1TickLabel()
O1TickLabel
component for this graph.
O1TickLabel
component for this graph.public O1Title getO1Title()
01Title
component for this graph.
01Title
component for this graph.public PieFeeler getPieFeeler()
PieFeeler
component for this graph.
PieFeeler
component for this graph.public PieFrame getPieFrame()
PieFrame
component for this graph.
PieFrame
component for this graph.public PieLabel getPieLabel()
PieLabel
component for this graph.
PieLabel
component for this graph.public PlotArea getPlotArea()
PlotArea
component for this graph.
PlotArea
component for this graph.public QuadrantLine getQuadrantLine()
QuadrantLine
component for this graph.
QuadrantLine
component for this graph.public RingTotalLabel getRingTotalLabel()
RingTotalLabel
component for this graph.
RingTotalLabel
component for this graph.public Series getSeries()
Series
component for this graph.
Series
component for this graph.public UISeriesColor getUISeriesColor()
GraphAttribute
getUISeriesColor
in interface GraphAttribute
UISeriesColor
implementation that stores the
colors for the series in this graph.UISeriesColor
that specifies the
color of the series in this graph.public UIThresholdColor getUIThresholdColor()
GraphAttribute
getUIThresholdColor
in interface GraphAttribute
UIThresholdColor
implementation that stores the
colors for the thresholds in this graphUIThresholdColor
that specifies the color of
the thresholds in this graph.public Threshold getThreshold()
Threshold
component for this graph.
Threshold
component for this graphpublic Slice getSlice()
Slice
component for this graph.
Slice
component for this graph.public SliceLabel getSliceLabel()
SliceLabel
component for this graph.
SliceLabel
component for this graph.public StockMarker getStockMarker()
StockMarker
component for this graph.
StockMarker
component for this graph.public UIParetoLine getParetoLine()
UIParetoLine
interface
for this graph.
UIParetoLine
. You should program against this
interface. Do not cast it to the implementation.public ParetoMarker getParetoMarker()
ParetoMarker
component for this graph.
ParetoMarker
component for this graph.public Titles getSubtitle()
GraphSubtitle
component for this graph.
GraphSubtitle
component for this graph.public ThreeDFloor get3DFloor()
ThreeDFloor
component for this graph.
ThreeDFloor
component for this graph.public ThreeDLeftWall get3DLeftWall()
ThreeDLeftWall
component for this graph.
ThreeDLeftWall
component for this graph.public ThreeDRightWall get3DRightWall()
ThreeDRightWall
component for this graph.
ThreeDRightWall
component for this graph.public ThreeDMarker get3DMarker()
ThreeDMarker
component for this graph.
ThreeDMarker
component for this graph.public ThreeDViewMatrix get3DViewMatrix()
ThreeDViewMatrix
component for this graph.
ThreeDViewMatrix
component for this graph.public SplitDivider getSplitDivider()
SplitDivider
component for this graph.
SplitDivider
component for this graph.public TimeSelector getTimeSelector()
TimeSelector
component for this graph.
TimeSelector
component for this graph.public Titles getTitle()
GraphTitle
component for this graph.
GraphTitle
component for this graph.public TwoDMarker get2DMarker()
TwoDMarker
component for this graph.
TwoDMarker
component for this graph.public VolumeMarker getVolumeMarker()
VolumeMarker
component for this graph.
VolumeMarker
component for this graph.public X1Axis getX1Axis()
X1Axis
component for this graph.
X1Axis
component for this graph.public X1MajorTick getX1MajorTick()
X1MajorTick
component for this graph.
X1MajorTick
component for this graph.public X1TickLabel getX1TickLabel()
X1TickLabel
component for this graph.
X1TickLabel
component for this graph.public X1Title getX1Title()
X1Title
component for this graph.
X1Title
component for this graph.public XPanelGrid getXPanelGrid()
XPanelGrid
component for this graph.
XPanelGrid
component for this graph.public Y1Axis getY1Axis()
Y1Axis
component for this graph.
Y1Axis
component for this graph.public Y1MajorTick getY1MajorTick()
Y1MajorTick
component for this graph.
Y1MajorTick
component for this graph.public Y1TickLabel getY1TickLabel()
Y1TickLabel
component for this graph.
Y1TickLabel
component for this graph.public Y1Title getY1Title()
Y1Title
component for this graph.
Y1Title
component for this graph.public Y1ZeroLine getY1ZeroLine()
Y1ZeroLine
component for this graph.
Y1Title
component for this graph.public Y2Axis getY2Axis()
Y2Axis
component for this graph.
Y2Axis
component for this graph.public Y2MajorTick getY2MajorTick()
Y2MajorTick
component for this graph.
Y2MajorTick
component for this graph.public Y1BaseLine getY1BaseLine()
Y1BaseLine
component for this graph.
Y1BaseLine
component for this graph.public Y2BaseLine getY2BaseLine()
Y2BaseLine
component for this graph.
Y2BaseLine
component for this graph.public Alert getAlert(int index)
index
- index of the alert that needs to be retrieved
Alert
at the
specifed indexpublic Alert createAlert(java.lang.Object xValue, java.lang.Object yValue)
Alert
.
Alert
that could be associated with
a datapointpublic Annotation createAnnotation(int series, int group)
Annotation
.
Annotation
that could be associated with
the given Series and grouppublic void setAnnotationsVisibility(int visibility)
visibility
- an integer indicating visibility for Annotationspublic int getAnnotationsVisibility()
public ReferenceObject createReferenceObject()
ReferenceObject
. Use this object
to specify reference lines or reference areas for a graph. By default, a
reference object is associated with the Y1Axis. Use the
setAssociation
property of this component to re-associate
the object with another axis or with a series.
Note: You cannot delete individual reference objects of a graph. You can only destroy all reference objects for a specific graph.
ReferenceObject
that could be associated with
either an axis or a seriesdestroyReferenceObjects(int)
,
getReferenceObjects(int)
public ReferenceObject getReferenceObject(int id)
id
- ID of the reference object that needs
to be removed.
ReferenceObject
of the
specifed IDpublic java.util.List getReferenceObjects(int component)
Component
- ID of the graph whose reference objects you
want to retrieve.
ReferenceObject
objects for the
specified graphGraphConstants.Y1AXIS
,
GraphConstants.Y2AXIS
,
GraphConstants.X1AXIS
,
GraphConstants.SERIES
,
GraphConstants.ALL
public void destroyReferenceObject(int id)
id
- ID of the reference object that needs
to be removed.public void destroyReferenceObjects(int component)
Component
- ID of the graph whose reference objects need
to be removed.GraphConstants.Y1AXIS
,
GraphConstants.Y2AXIS
,
GraphConstants.X1AXIS
,
GraphConstants.SERIES
,
GraphConstants.ALL
public int getReferenceObjectDisplay(int component)
Component
- ID of the graph whose reference objects you
want to display.
#DISPLAY_NEVER
,
#DISPLAY_ALWAYS
,
#DISPLAY_AUTOMATIC
public void setReferenceObjectDisplay(int component, int display)
Component
- ID of the graph whose reference objects you
want to display.display
- A constant that indicates when to display
the reference object.#DISPLAY_NEVER
,
#DISPLAY_ALWAYS
,
#DISPLAY_AUTOMATIC
public ReferenceObjectMarker getReferenceObjectMarker()
ReferenceObjectMarker
component for this graph.
ReferenceObjectMarker
component for this graph.public ReferenceObjectText getReferenceObjectText()
ReferenceObjectText
component for this graph.
ReferenceObjectText
component for this graph.public Y2TickLabel getY2TickLabel()
Y2TickLabel
component for this graph.
Y2TickLabel
component for this graph.public Y2Title getY2Title()
Y2Title
component for this graph.
Y2Title
component for this graph.public Y2ZeroLine getY2ZeroLine()
Y2ZeroLine
component for this graph.
Y2ZeroLine
component for this graph.public Y3DMarkerGrid getY3DMarkerGrid()
Y3DMarkerGrid
component for this graph.
Y3DMarkerGrid
component for this graph.public YPanelGrid getYPanelGrid()
YPanelGrid
component for this graph.
YPanelGrid
component for this graph.public ZPanelGrid getZPanelGrid()
ZPanelGrid
component for this graph.
ZPanelGrid
component for this graph.public ZTickLabel getZTickLabel()
ZTickLabel
component for this graph.
ZTickLabel
component for this graph.public ZTitle getZTitle()
ZTitle
component for this graph.
ZTitle
component for this graph.public void setTickLabelCallback(TickLabelCallback callback, int axisID)
TickLabelCallback
to use for customizing tick
labels.
By default, no callback is set.
callback
- The TickLabelCallback
for customized tick
labels.axisID
- A constant that represents the axis whose tick labels
the callback customizes.
Valid constants are listed in the See Also section.GraphConstants.X1TICKLABEL
,
GraphConstants.Y1TICKLABEL
,
GraphConstants.Y2TICKLABEL
public TickLabelCallback getTickLabelCallback(int axisID)
TickLabelCallback
that has been set
for customizing tick labels.
axisID
- A constant that represents the axis whose labels the
callback customizes.
null
if
no callback has been set.GraphConstants.X1TICKLABEL
,
GraphConstants.Y1TICKLABEL
,
GraphConstants.Y2TICKLABEL
public UndefinedComponent getUndefinedComponent()
public boolean setXML(java.lang.String xmlString, int reset) throws oracle.dss.util.xml.BIIOException, oracle.dss.util.xml.BISAXException, oracle.dss.util.xml.BIParseException
Graph
, from a String
.
This method reads the XML from xmlString
and applies
its attribute settings to this Graph
.
The reset
parameter determines how much of the
Graph
to reset before applying XML.
In general, you can:
Graph
without
resetting anything to default values
Graph
Resetting returns property values in the Graph
to the
default values for the version that is specified in the XML.
setXML
in class Dataview
xmlString
- The XML to apply to this Graph
.reset
- A constant that indicates how much and how far to reset
the view before applying XML. Valid constants appear in the
See Also section.
If you pass an invalid constant, then this method logs
a message with the error handler and does not reset any
property values.
true
if the XML is successfully applied to
this Graph
,
false
if an IO exception occurs.
BIIOException
- If an error occurs in reading xmlString
.
BISAXException
- If a general SAX exception occurs in parsing the
XML.
BIParseException
- If the XML syntax is not correct, or if the
XML is not valid according to the DTD that is
specified in the XML.
oracle.dss.util.xml.BIIOException
- If an error occurs in reading xmlString
.
oracle.dss.util.xml.BISAXException
- If a general SAX exception occurs in parsing the
XML.
oracle.dss.util.xml.BIParseException
- If the XML syntax is not correct, or if the
XML is not valid according to the DTD that is
specified in the XML.DataviewConstants.RESET_NONE
,
DataviewConstants.RESET_XML_PROPERTIES
,
DataviewConstants.RESET_EVERYTHING
,
#RESET_EVERYTHING_BUT_DATASOURCE
public boolean readXML(java.io.InputStream stream, int reset) throws oracle.dss.util.xml.BIIOException, oracle.dss.util.xml.BISAXException, oracle.dss.util.xml.BIParseException
Graph
, from a String
.
This method reads the XML from xmlString
and applies
its attribute settings to this Graph
.
The reset
parameter determines how much of the
Graph
to reset before applying XML.
In general, you can:
Graph
without
resetting anything to default values
Graph
Resetting returns property values in the Graph
to the
default values for the version that is specified in the XML.
readXML
in class Dataview
stream
- The XML to apply to this Graph
.reset
- A constant that indicates how much and how far to reset
the view before applying XML. Valid constants appear in the
See Also section.
If you pass an invalid constant, then this method logs
a message with the error handler and does not reset any
property values.
true
if the XML is successfully applied to
this Graph
,
false
if an IO exception occurs.
BIIOException
- If an error occurs in reading xmlString
.
BISAXException
- If a general SAX exception occurs in parsing the
XML.
BIParseException
- If the XML syntax is not correct, or if the
XML is not valid according to the DTD that is
specified in the XML.
oracle.dss.util.xml.BIIOException
- If an error occurs in reading xmlString
.
oracle.dss.util.xml.BISAXException
- If a general SAX exception occurs in parsing the
XML.
oracle.dss.util.xml.BIParseException
- If the XML syntax is not correct, or if the
XML is not valid according to the DTD that is
specified in the XML.DataviewConstants.RESET_NONE
,
DataviewConstants.RESET_XML_PROPERTIES
,
DataviewConstants.RESET_EVERYTHING
,
#RESET_EVERYTHING_BUT_DATASOURCE
public java.util.Enumeration getImagemapEnumeration(int filter)
filter
are defined in this class, and
begin with MAP_.
The enumeration provides an ImagemapComponent
object for
each graph component.
Each ImagemapComponent
object contains the
ComponentHandle
and the Polygon
for that
graph component.
The ComponentHandle
contains information about the
component, such as its series and group.
The Polygon
contains information about the component's
position on the graph.
filter
- The kinds of graph components that you want to enumerate.
DataviewConstants.MAP_ALL
,
DataviewConstants.MAP_DATA
,
DataviewConstants.MAP_DATATEXT
,
DataviewConstants.MAP_LABELS
,
DataviewConstants.MAP_LEGEND
,
DataviewConstants.MAP_ORDINALLABELS
,
DataviewConstants.MAP_TITLES
,
se
public void writeImagemapXML(java.io.OutputStream os, int filter)
filter
are defined in this class and
begin with MAP_.
os
- The output stream where XML will be written.filter
- The kinds of graph components whose information you
want to write in XML.getImagemapEnumeration(int)
,
DataviewConstants.MAP_ALL
,
DataviewConstants.MAP_DATA
,
DataviewConstants.MAP_DATATEXT
,
DataviewConstants.MAP_LABELS
,
DataviewConstants.MAP_LEGEND
,
DataviewConstants.MAP_ORDINALLABELS
,
DataviewConstants.MAP_TITLES
public void writeImagemapXML(java.io.PrintWriter out, int filter)
filter
are defined in this class and
begin with MAP_.
out
- The print writer where XML will be written.filter
- The kinds of graph components whose information you
want to write in XML.getImagemapEnumeration(int)
,
DataviewConstants.MAP_ALL
,
DataviewConstants.MAP_DATA
,
DataviewConstants.MAP_DATATEXT
,
DataviewConstants.MAP_LABELS
,
DataviewConstants.MAP_LEGEND
,
DataviewConstants.MAP_ORDINALLABELS
,
DataviewConstants.MAP_TITLES
public void setScaleFontSizeForGIF(int scale)
mask
- A constant that represents the set of components to
scale with the graph.
Valid constants are listed in the See Also section.GraphConstants.TEXT_COMPONENTS_ALL
,
GraphConstants.TEXT_COMPONENTS_NONE
public int getScaleFontSizeForGIF()
GraphConstants.TEXT_COMPONENTS_ALL
,
GraphConstants.TEXT_COMPONENTS_NONE
public void setBackgroundTransparent(boolean transparent)
setBackgroundTransparent
in interface ThickDataview
transparent
- true
to make the graph background
transparent, otherwise false
protected void processAlertEvent(int eventID)
public void drawImage(java.awt.Image image, int x, int y, java.awt.Graphics g)
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void modelWaitDataAvailable(WaitDataAvailableEvent e)
ModelListener
modelWaitDataAvailable
in interface ModelListener
modelWaitDataAvailable
in class Dataview
e
- Information about the fetch.Application developers do not need to call this method.
public void setPieBarSeries(int series)
series
- The index of the series for which you want to show
detail. Valid values range from 0 to one less than the
number of series in the data for this graph. You can
find the maximum value by subtracting 1 from the
return value of the getSeriesObjectCount
method.
If you pass an invalid value, then this method logs
a message to the error handler and does not change
the series.getSeriesObjectCount()
public int getPieBarSeries()
public boolean isDualY()
true
if the graph has a Y2-axis,
false
if it does not.setGraphType(int)
public void setPrintOrPreviewMode(boolean bool)
public static java.lang.String convertGraphTypeToString(int value)
String
representation of a graph type constant.
This method takes a graph type constant and produces a String
that is appropriate to use as an attribute value when you use the
BI Beans persistence service and search for graphs that have
a particular graph type.
For example:
//pmMyFolder is the PersistenceManager for MyFolder BasicAttributes _attrs = new BasicAttributes(); _attrs.put(PSRConstants.Attributes.OBJECT_TYPE, PSRConstants.GRAPH); _attrs.put(Graph.GRAPH_TYPE, Graph.convertGraphTypeToString(Graph.BAR_VERT_CLUST));
value
- The graph type constant that you want to convert.
String
for the graph type.public static int convertGraphTypeToInt(java.lang.String string)
public boolean isPrintOrPreviewMode()
isPrintOrPreviewMode
in class Dataview
public void updatePageItems()
updatePageItems
in interface ThickDataview
public void applyViewFormat(ComponentHandle componentHandle, ViewFormat viewFormat)
applyViewFormat
in interface GraphAttribute
public ViewFormat getComponentViewFormat(ComponentHandle componentHandle)
getComponentViewFormat
in interface GraphAttribute
protected void firePrintBegin(java.lang.Object source)
firePrintBegin
in class Dataview
source
- source of the event.protected void firePrintEnd(java.lang.Object source)
firePrintEnd
in class Dataview
source
- source of the event.protected void updateResourceBundle()
public void setContext()
setContext
in class Dataview
protected DataviewXML getViewXML()
getViewXML
in class Dataview
protected oracle.dss.util.xml.ObjectNode getObjectNode(boolean allProperties)
getObjectNode
in class Dataview
public oracle.dss.util.xml.ObjectNode getPagingControlXML(boolean allProperties)
getPagingControlXML
in interface ThickDataview
public void setPagingControlXML(oracle.dss.util.xml.ObjectNode pagingControl, java.lang.String version, int reset)
setPagingControlXML
in interface ThickDataview
protected void setXML(oracle.dss.util.xml.ObjectNode node, int reset)
public boolean setXMLAsString(java.lang.String xml) throws oracle.dss.util.persistence.BIPersistenceException
Graph
.
The persistence service calls this method when the view is restored
from the BI Beans Catalog.
This method does not reset any properties before applying the XML to
this Graph
.
Application developers should not call this method.
To load XML from a file, call setXML
or readXML
.
setXMLAsString
in interface oracle.dss.util.persistence.StringXMLizable
setXMLAsString
in class Dataview
xml
- The XML representation of the view.
true
if the XML was successfully set,
false
if not.
BIPersistenceException
- If a problem occurs in setting the XML.
oracle.dss.util.persistence.BIPersistenceException
- If a problem occurs in setting the XML.readXML(java.io.InputStream, int)
,
setXML(java.lang.String, int)
public void setPersistableComponents(oracle.dss.util.persistence.AggregateInfo[] persistables)
setPersistableComponents
in interface oracle.dss.util.persistence.contract.AggregableContract
setPersistableComponents
in class Dataview
aggregates
- a AggregateInfo[]
value that represents the
components to assign to the graph.public oracle.dss.util.persistence.PersistableAttributes getPersistableAttributes(oracle.dss.util.persistence.PersistableAttributes oldAttrs)
Dataview
Dataview
, for searching.
This method adds the attributes that this Dataview
defines
to the attributes that the application has specified.
The attributes are used by the persistence service, when users
search the repository for components that have particular attribute
values.
getPersistableAttributes
in interface oracle.dss.util.persistence.SimplePersistable
getPersistableAttributes
in class Dataview
attrs
- a PersistableAttributes
value that represents the
searchable attributes set by the user application.
PersistableAttributes
which represent the searchable
properties of the graph (the ones passed into the method augmented
by graph-specific properties).PeristableAttibutes
(i.e.
search attributes associated with this graph) which are used for searching
for this graph in the database.public void loadCompleted() throws oracle.dss.util.persistence.BIPersistenceException
oracle.dss.util.persistence.BIPersistenceException
public boolean setTabularData(java.util.List tableRows)
Graph
, from a table of data.
Use this method to provide data row-by-row, from a file of
tab-delimited or comma-separated values, or from a JDBC
ResultSet
.
When you use this method, you extract values from the file or
ResultSet
, organize them, and then pass them all in
one call to this method.
The graph creates a grid of data from the data that you pass in, and
it uses this grid to populate itself.
For each data value in the table or result set, you construct
an array of three Objects
:
String
.
If the graph has a time axis, then this should be a Java
Date
.
Column labels appear as group labels in the graph, unless
DataRowShownAsASeries
is false
.String
. Row labels appear as
series labels in the graph (usually in the legend), unless
DataRowShownAsASeries
is false
.
In this case, if the graph has a time axis, then
this should be a Java Date
.Double
.
You add each Object
array to a List
(normally an ArrayList
or a Vector
).
You pass the complete List
to this method.
The following table shows a set of data to pass to the graph through this method:
Boston | Bowties | 97300 |
Boston | Neckties | 413812 |
Cleveland | Bowties | 48025 |
Cleveland | Neckties | 298511 |
The Object
arrays would look like this, if you want
the types of ties to appear in the legend (assuming that data rows in
the grid represent series):
Object[] tableRow1 = {"Boston", "Bowties", new Double(97300)}; Object[] tableRow2 = {"Boston", "Neckties", new Double(413812)}; Object[] tableRow3 = {"Cleveland", "Bowties", new Double(48025)}; Object[] tableRow4 = {"Cleveland", "Neckties", new Double(298511)}; // add the arrays to aList
ArrayList data = new ArrayList(); data.add(tableRow1); data.add(tableRow2); data.add(tableRow3); data.add(tableRow4); // pass theList
to this method graph.setTabularData(data);
The grid that this method constructs and feeds to the graph looks like this:
Boston | Cleveland | |
Bowties | 97300 | 48025 |
Neckties | 413812 | 298511 |
Note that the data is not interactive. If you want users to be able to rotate or drill, you will have to provide a way for them to express that intention, and you must call this method again to display the rearranged data.
tableRows
- List
of data to plot in the graph.
true
if data is successfully set on the graph,
false
if there is a data problem.isDataRowShownAsASeries()
public void applySampleData()
public boolean setGridData(java.lang.Object[] columnLabels, java.lang.Object[] rowLabels, java.lang.Object[][] data)
columnLabels
- labels for the columns of data;
typically String
srowLabels
- labels for the rows of data;
typically String
sdata
- values to be plotted in the graph, indexed
first by column, then by row; typically Double
s
and Date in case of TimeSeries graphs
true
if data is successfully set on the graph,
false
otherwiseGraph
.
Data is provided in grid form, where the number of rows and
columns are known ahead of time.public int getColumnCount() throws EdgeOutOfRangeException
EdgeOutOfRangeException
- If the data source does not support the
the column edge.
EdgeOutOfRangeException
isDataRowShownAsASeries()
public int getRowCount() throws EdgeOutOfRangeException
EdgeOutOfRangeException
- If the data source does not support the
row edge.
EdgeOutOfRangeException
isDataRowShownAsASeries()
public java.lang.Object getDataAccessSliceLabel(int edge, int slice, java.lang.String type) throws EdgeOutOfRangeException, SliceOutOfRangeException
DataAccess
for this graph.
The UI calls this method to get information about the series when it
displays the plot area panel.
edge
- The edge that you want labels for. The
oracle.dss.graph.gui.Series
class calls this
with DataAccess.ROW_EDGE
.slice
- The slice of data that you want labels for.type
- The type of data that you want from the DataAccess
.
oracle.dss.graph.gui.Series
calls this method with
MetadataMap.METADATA_LONGLABEL
as the
type
.
EdgeOutOfRangeException
- If edge
is not a valid edge.
SliceOutOfRangeException
- If slice
is not a valid slice.
EdgeOutOfRangeException
SliceOutOfRangeException
DataAccess.getSliceLabel(int, int, java.lang.String)
protected void setMetadataDrillSupported(boolean supported)
protected boolean isMetadataDrillSupported()
protected void setDataUnformattedSupported(boolean supported)
setDataUnformattedSupported
in class Dataview
protected void setMetadataLongLabelSupported(boolean supported)
setMetadataLongLabelSupported
in class Dataview
protected void setMetadataMediumLabelSupported(boolean supported)
setMetadataMediumLabelSupported
in class Dataview
protected void setMetadataShortLabelSupported(boolean supported)
setMetadataShortLabelSupported
in class Dataview
protected void setMetadataValueSupported(boolean supported)
setMetadataValueSupported
in class Dataview
protected void setMetadataDrillParentDateSupported(boolean supported)
protected boolean isMetadataDrillParentDateSupported()
protected void setMetadataDrillParentDateSpanSupported(boolean supported)
protected boolean isMetadataDrillParentDateSpanSupported()
protected void setMetadataDateSupported(boolean supported)
protected void setMetadataDateSpanSupported(boolean supported)
protected boolean isMetadataDateSpanSupported()
protected void setLayerMetaMediumLabelSupported(boolean supported)
setLayerMetaMediumLabelSupported
in class Dataview
protected void setLayerMetaShortLabelSupported(boolean supported)
setLayerMetaShortLabelSupported
in class Dataview
protected void setLayerMetaNameSupported(boolean supported)
setLayerMetaNameSupported
in class Dataview
protected void metadataLabelTypeChanged()
metadataLabelTypeChanged
in class Dataview
public void beginAxisChanges()
public void endAxisChanges()
public void setSwapAllowed(boolean swap)
SwapAllowed
is true
, then users can
click the two page items that they want to swap, in order to swap the items.
The view
will then ask the data source to perform a pivot of type
DataDirector.PIVOT_SWAP
.
When SwapAllowed
is false
, then users must
move the two page items separately, and the view will ask for two separate
pivot actions of type DataDirector.PIVOT_MOVE_BEFORE
or
DataDirector.PIVOT_MOVE_AFTER
.
By default, swapping is disabled.
setSwapAllowed
in interface ThickDataview
setSwapAllowed
in class Dataview
swap
- true
to enable swapping,
false
to disable it.isSwapAllowed()
,
DataDirector
public boolean isSwapAllowed()
true
, then users can swap items
by clicking the two items.
When this method returns false
, then users must move each
item separately.
isSwapAllowed
in interface ThickDataview
isSwapAllowed
in class Dataview
true
if swapping is enabled,
false
if it is not.setSwapAllowed(boolean)
protected void setLayerMetaLongLabelSupported(boolean supported)
setLayerMetaLongLabelSupported
in class Dataview
public void notEnoughData(NotEnoughData neData)
neData
- Information about the insufficient data condition.GraphControllerAdapter
when there is insufficient data to display the graph.
Application developers do not need to call this method.public boolean isGroupSeriesTooltipSupported(int edge)
Application developers should not need to call this method.
edge
- DataDirector.ROW_EDGE
for the row edge, or
DataDirector.COLUMN_EDGE
for the column edge.
true
If the the option is supported
false
If the option is not supported and the checkbox
should be disabled.DataDirector.COLUMN_EDGE
,
DataDirector.ROW_EDGE
public DataFilter getDataFilter()
DataFilter
interface.
DataFilter
that specifies how much of the
DataAccess
to display in this graph.protected boolean isStyleOverrideFlag(int attrID)
public void setMaxBarWidth(int width)
width
- The maximum width for bars in this graph, in virtual
coordinate units.
Pass -1 to remove limits on the widths of bars.
Any other value less than 1 is invalid.
If you pass an invalid value, then this method logs an
error with the error handler and does not set the
MaxBarWidth
property.public int getMaxBarWidth()
public void setDrillingEnabled(boolean b)
setDrillingEnabled
in interface DataviewAttributes
setDrillingEnabled
in class Dataview
b
- true
to enable drilling;
false
to disable drilling.protected void saveDrillState()
public int getMaxTickLabelAutoFontSize()
FontSizeAbsolute
property for the tick label component
is set to false
, and the
TextFittingAutomatic
is set to true
.
getMinTickLabelAutoFontSize()
,
setMaxTickLabelAutoFontSize(int)
,
setMinTickLabelAutoFontSize(int)
,
BaseLegendText.getMaxAutoFontSize()
,
BaseLegendText.getMinAutoFontSize()
,
BaseLegendText.setMaxAutoFontSize(int)
,
BaseLegendText.setMinAutoFontSize(int)
public void setMaxTickLabelAutoFontSize(int size)
FontSizeAbsolute
property for the tick label component
is set to false
, and the
TextFittingAutomatic
is set to true
.
size
- The maximum font size for autofit tick labels,
in virtual coordinate units. Valid values are from
1 to 16000. If you pass an invalid value, then this
method logs a message with the error handler and does not
change the value of the property.getMaxTickLabelAutoFontSize()
,
getMinTickLabelAutoFontSize()
,
setMinTickLabelAutoFontSize(int)
,
BaseLegendText.getMaxAutoFontSize()
,
BaseLegendText.getMinAutoFontSize()
,
BaseLegendText.setMaxAutoFontSize(int)
,
BaseLegendText.setMinAutoFontSize(int)
public int getMinTickLabelAutoFontSize()
FontSizeAbsolute
property for the tick label component
is set to false
, and the
TextFittingAutomatic
is set to true
.
getMaxTickLabelAutoFontSize()
,
setMaxTickLabelAutoFontSize(int)
,
setMinTickLabelAutoFontSize(int)
,
BaseLegendText.getMaxAutoFontSize()
,
BaseLegendText.getMinAutoFontSize()
,
BaseLegendText.setMaxAutoFontSize(int)
,
BaseLegendText.setMinAutoFontSize(int)
public void setMinTickLabelAutoFontSize(int size)
FontSizeAbsolute
property for the tick label component
is set to false
, and the
TextFittingAutomatic
is set to true
.
size
- The minimum font size for autofit tick labels,
in virtual coordinate units. Valid values are from 1 to
16000. If you pass an invalid value, then this method
logs a message with the error handler and does not change
the value of the property.getMaxTickLabelAutoFontSize()
,
getMinTickLabelAutoFontSize()
,
setMaxTickLabelAutoFontSize(int)
,
BaseLegendText.getMaxAutoFontSize()
,
BaseLegendText.getMinAutoFontSize()
,
BaseLegendText.setMaxAutoFontSize(int)
,
BaseLegendText.setMinAutoFontSize(int)
public int getLegendSeriesCount()
DisplaySeries
property takes precedence over this
property.
Automatic graph layout ignores this property.
The doAutoLayout
method sets this property to the number
of series that appear in the legend.
setLegendScrollbarPresence(int)
,
setDisplaySeries(int)
,
setAutoLayout(int)
,
doAutoLayout(int)
public void setLegendSeriesCount(int count)
Use this method, with the setLegendScrollbarPresence
method,
to make the legend scrollable.
HTML-client graphs do not support scrollable legends. Do not call this method in a thin graph.
Automatic graph layout ignores this property.
The doAutoLayout
method sets it to the number of series
that appear in the legend.
count
- The number of series to show in the legend. Pass 0 to
show all series that the graph displays. If you pass
a value less than 0, then this message logs a message
with the error handler and does not set the property.setLegendScrollbarPresence(int)
,
setAutoLayout(int)
,
doAutoLayout(int)
public int getLegendSeriesStart()
LegendSeriesCount
is
set to show a subset of the total number of series, and
DisplaySeries
is set to show all the series.
Automatic graph layout ignores this property.
The doAutoLayout
method sets it to 0.
setLegendSeriesCount(int)
,
setDisplaySeries(int)
,
setLegendScrollbarPresence(int)
,
setAutoLayout(int)
,
doAutoLayout(int)
public void setLegendSeriesStart(int start)
LegendSeriesCount
is
set to show a subset of the total number of series, and
DisplaySeries
is set to show all the series.
If you make the legend scrollable, and users scroll through the legend, then the graph automatically sets this property.
HTML-client graphs do not support scrollable legends. Do not call this method in a thin graph.
Automatic graph layout ignores this property.
The doAutoLayout
method sets it to 0.
start
- The index of the first series to display in the legend.
Valid values are from zero to GROUPANDSERIESLIMIT
.
If you pass an invalid value, then this method logs
an error with the error handler and does not set the
property.GraphConstants.GROUPANDSERIESLIMIT
,
setLegendSeriesCount(int)
,
setDisplaySeries(int)
,
setLegendScrollbarPresence(int)
,
setAutoLayout(int)
,
doAutoLayout(int)
public int getLegendScrollbarPresence()
LegendSeriesCount
property,
work to make the legend scrollable.
The ScrollbarPresenceSeries
property takes precedence over
this property.
HTML-client graphs do not support scrollable legends.
The default value is SP_AS_NEEDED
.
Automatic graph layout ignores this property.
The doAutoLayout
method sets it to SP_NEVER
.
GraphConstants.SP_ALWAYS
,
GraphConstants.SP_NEVER
,
GraphConstants.SP_AS_NEEDED
,
setScrollbarPresenceSeries(int)
,
setLegendSeriesCount(int)
,
setAutoLayout(int)
,
doAutoLayout(int)
public void setLegendScrollbarPresence(int presence)
LegendSeriesCount
property,
to make the legend scrollable.
The ScrollbarPresenceSeries
property takes precedence over
this property.
HTML-client graphs do not support scrollable legends.
In a thin graph, you should all this method to set the property
to SP_NEVER
.
The default value is SP_AS_NEEDED
.
Automatic graph layout ignores this property.
The doAutoLayout
method sets it to SP_NEVER
.
presence
- A constant that specifies when to display a scrollbar
in the legend.
Valid values begin with SP_ and are listed in the See Also
section. If you pass an invalid value, then this method
logs an error with the error handler and does not set the
property.GraphConstants.SP_ALWAYS
,
GraphConstants.SP_NEVER
,
GraphConstants.SP_AS_NEEDED
,
setScrollbarPresenceSeries(int)
,
setLegendSeriesCount(int)
,
setAutoLayout(int)
,
doAutoLayout(int)
public boolean isGroup3DPanels()
true
if all of the panels are treated as one object,
false
if the panels are treated as individual objects.public void setGroup3DPanels(boolean yesNo)
yesNo
- true
to treat all of the 3D panels as one object, false
to treat them as individual objects.public void setExplicitTimeRangeStart(java.util.Date date)
date
- explicit time range start date.public java.util.Date getExplicitTimeRangeStart()
public void setExplicitTimeRangeEnd(java.util.Date date)
date
- explicit time range end date.public java.util.Date getExplicitTimeRangeEnd()
public void setTimeRangeMode(int mode)
mode
- the time range mode.public int getTimeRangeMode()
public void setRelativeTimeRange(long time)
public long getRelativeTimeRange()
public void calculatePlacement()
public ViewStyle getComponentViewStyle(ComponentHandle componentHandle)
GraphAttribute
ViewStyle
for a selected component.
The graph supports a ViewStyle
for page items only.
getComponentViewStyle
in interface GraphAttribute
componentHandle
- The ComponentHandle
for the
component whose ViewStyle
you want.
Implementers should screen for the
PageItemComponentHandle
.
ViewStyle
for page items.PageItemComponentHandle
public void applyViewStyle(ComponentHandle componentHandle, ViewStyle viewStyle)
GraphAttribute
ViewStyle
to a page item.
applyViewStyle
in interface GraphAttribute
componentHandle
- The ComponentHandle
for the page
item that you want to format.viewStyle
- The ViewStyle
that specifies formatting
for the page item.public java.lang.String getIntlString(java.lang.String key)
getIntlString
in interface DataviewCommon
getIntlString
in class Dataview
key
- the String that needs to be translated.
public int getViewType()
Dataview
.
This method returns Dataview.VIEW_TYPE_GRAPH
.
getViewType
in interface DataviewCommon
getViewType
in interface UIView
getViewType
in class Dataview
Dataview.VIEW_TYPE_GRAPH
DataviewConstants.VIEW_TYPE_GRAPH
public java.awt.Font getDataErrorFont()
public void setDataErrorFont(java.awt.Font font)
font
- The font to use for the "not enough data" message.setDataErrorTextCallback(oracle.dss.graph.DataErrorTextCallback)
public void setDataModelType(int dataModelType)
public int getDataModelType()
public void setTimeAxisDateFormat(int element, java.lang.String format)
element
- The date element on the time axis for which to set
the format. Valid constants are
GraphConstants.YEAR
, GraphConstants.MONTH
,
GraphConstants.DAY
, and GraphConstants.TIME
.format
- The format for the given date element.
Valid constants are listed in the See Also section.
Except for NONE
and AUTOMATIC
,
the constant for an element begins with the element
constant. For example, constants for month formats
begin with MONTH_
.GraphConstants.AUTOMATIC
,
TransferHandler.NONE
,
GraphConstants.YEAR_LONG
,
GraphConstants.YEAR_LONG_WITH_COMMA
,
GraphConstants.YEAR_SHORT
,
GraphConstants.YEAR_SHORT_WITH_APOSTROPHE
,
GraphConstants.MONTH_LONG
,
GraphConstants.MONTH_SHORT
,
GraphConstants.MONTH_NUMBER
,
GraphConstants.MONTH_SINGLE_LETTER
,
GraphConstants.DAY_OF_WEEK_NUMBER
,
GraphConstants.DAY_OF_WEEK
,
GraphConstants.DAY_OF_MONTH
,
GraphConstants.DAY_OF_WEEK_ABBR
,
GraphConstants.DAY_SINGLE_LETTER
,
GraphConstants.HOUR
,
GraphConstants.HOUR24
,
GraphConstants.HOUR_MINUTE
,
GraphConstants.HOUR24_MINUTE
,
GraphConstants.HOUR_MINUTE_SECOND
,
GraphConstants.HOUR24_MINUTE_SECOND
public java.lang.String getTimeAxisDateFormat(int element)
element
- The date element on the time axis for which to get
the format; available constants are
GraphConstants.YEAR
, GraphConstants.MONTH
,
GraphConstants.DAY
, and GraphConstants.TIME
.
GraphConstants.AUTOMATIC
,
TransferHandler.NONE
,
GraphConstants.YEAR_LONG
,
GraphConstants.YEAR_LONG_WITH_COMMA
,
GraphConstants.YEAR_SHORT
,
GraphConstants.YEAR_SHORT_WITH_APOSTROPHE
,
GraphConstants.MONTH_LONG
,
GraphConstants.MONTH_SHORT
,
GraphConstants.MONTH_NUMBER
,
GraphConstants.MONTH_SINGLE_LETTER
,
GraphConstants.DAY_OF_WEEK_NUMBER
,
GraphConstants.DAY_OF_WEEK
,
GraphConstants.DAY_OF_MONTH
,
GraphConstants.DAY_OF_WEEK_ABBR
,
GraphConstants.DAY_SINGLE_LETTER
,
GraphConstants.HOUR
,
GraphConstants.HOUR24
,
GraphConstants.HOUR_MINUTE
,
GraphConstants.HOUR24_MINUTE
,
GraphConstants.HOUR_MINUTE_SECOND
,
GraphConstants.HOUR24_MINUTE_SECOND
public void setNoDataErrorText(java.lang.String text)
text
- error textpublic java.lang.String getNoDataErrorText()
public void applyFontSizes(float ratio)
protected void resetFontSizes()
public void setDirty(boolean yesNo)
yesNo
- a boolean isDirty flag of the dataCallbackpublic void setFontMetricsResolver(oracle.dss.presutil.FontMetricsResolver resolver)
resolver
- FontMetricsResolver Graph should usepublic oracle.dss.presutil.FontMetricsResolver getFontMetricsResolver()
public DataviewCommon getDataviewCommon()
getDataviewCommon
in interface ExportableGraph
public ViewStyle getMetadataStyle(java.lang.Object metaData, ViewStyle initStyle, int edge, int depth, int index)
getMetadataStyle
in interface ExportableGraph
metaData
- member metadatainitStyle
- initial ViewStyle for the memberedge
- edge member is ondepth
- layer member is inindex
- slice member is in
public ViewStyle getPagingControlViewStyle()
getPagingControlViewStyle
in interface ExportableGraph
public boolean startExport()
startExport
in interface ExportableGraph
public void endExport()
endExport
in interface ExportableGraph
public boolean isExporting()
isExporting
in interface ExportableGraph
protected boolean getDrillState(int edge, int slice)
protected boolean isPie(int graphType)
graphType
- integer representing the graph typepublic boolean isExcelOrDeskTop()
public oracle.dss.graph.pfj.ThickPFJ getThickPFJ()
getThickPFJ
in interface ThickGraph
public boolean isDrillingSupported()
isDrillingSupported
in interface DataviewAttributes
isDrillingSupported
in class Dataview
true
if drilling is supported,
false
if drilling is not supported.public int[] getDrillParameters(ComponentHandle handle)
public java.lang.String getAlternativeText(ComponentHandle handle)
protected void applyStyle(CustomStyle style, int reset, boolean isStyleDefault) throws oracle.dss.util.xml.BIIOException, oracle.dss.util.xml.BISAXException, oracle.dss.util.xml.BIParseException
oracle.dss.util.xml.BIIOException
oracle.dss.util.xml.BISAXException
oracle.dss.util.xml.BIParseException
public CustomStyle getStyle()
public void setStyle(CustomStyle style) throws oracle.dss.util.xml.BIIOException, oracle.dss.util.xml.BISAXException, oracle.dss.util.xml.BIParseException
style
- The style to set on this graph.
oracle.dss.util.xml.BIIOException
oracle.dss.util.xml.BISAXException
oracle.dss.util.xml.BIParseException
public java.lang.String getStylePath()
setStylePath
method.
null
if
setStylePath
has not been called.setStylePath(java.lang.String)
public void setStylePath(java.lang.String stylePath) throws java.io.IOException, oracle.dss.util.xml.BIIOException, oracle.dss.util.xml.BISAXException, oracle.dss.util.xml.BIParseException
StylePath
property.
Graph uses the getResourceAsStream
method of its
ClassLoader
to look for the style XML file.
The search order is described in the documentation for
java.lang.ClassLoader
.
The standard styles are packaged in bipres.jar
under
/oracle/dss/graph/styles/
.
stylePath
- The path of the XML to set as a style on this graph.
java.io.IOException
- If there is a problem loading the specified XML file.
oracle.dss.util.xml.BIIOException
- If there is a problem reading the XML file.
oracle.dss.util.xml.BISAXException
- If a general SAX exception occurs in parsing the XML.
oracle.dss.util.xml.BIParseException
- If the XML syntax is incorrect, or if the XML
is not valid according to the DTD that is specified in the XML.public CustomStyle createStyle()
public void editStyle(CustomStyle style) throws oracle.dss.util.xml.BIIOException, oracle.dss.util.xml.BISAXException, oracle.dss.util.xml.BIParseException
style
- The style to edit.
oracle.dss.util.xml.BIIOException
oracle.dss.util.xml.BISAXException
oracle.dss.util.xml.BIParseException
updateStyle(oracle.dss.util.CustomStyle)
updateStyle
method.public CustomStyle createGraphStyle()
public void updateStyle(CustomStyle style)
style
- The style to update.editStyle(oracle.dss.util.CustomStyle)
editStyle
method.public java.lang.String getStyleXML()
public CustomStyle getBaseStyle()
public void setBaseStyle(CustomStyle baseStyle)
style
- The base style for this graph.public void set3DEffect(boolean yesNo)
yesNo
- true
to set 3D effect on.public boolean is3DEffect()
public boolean exportGraphToStream(java.io.OutputStream out)
exportGraphToStream
in interface ExportableGraph
out
- OutputStream object to use in exporting the graph
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |