|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--oracle.dss.dataView.Dataview
|
+--oracle.dss.graph.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 Form| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Field Summary | |
static int |
ACP_ALWAYSDeprecated. As of 2.6.0.12, replaced by AL_AS_NEEDED or by AL_ALWAYS |
static int |
ACP_NEVERDeprecated. As of 2.6.0.12, replaced by AL_NEVER |
static int |
AL_ALWAYSAutoLayout: Always layout components automatically, without checking whether it is necessary. |
static int |
AL_AS_NEEDEDAutoLayout: Layout components automatically only when necessary. |
static int |
AL_NEVERAutoLayout: Never layout components automatically. |
static int |
AREA_VERT_ABSGraph type: Absolute area graph. |
static int |
AREA_VERT_ABS_SPLIT2YGraph type: Absolute, split dual-Y area graph. |
static int |
AREA_VERT_PERCENTGraph type: Percent area graph. |
static int |
AREA_VERT_STACKGraph type: Stacked area graph. |
static int |
AREA_VERT_STACK_SPLIT2YGraph type: Stacked, split dual-Y area graph. |
static int |
AREAMARKERThe AreaMarker component. |
static int |
BACKGROUNDThe GraphBackground component. |
static int |
BAR_HORIZ_CLUSTGraph type: Clustered bar graph that is horizontal. |
static int |
BAR_HORIZ_CLUST_2YGraph type: Clustered, dual-Y bar graph that is horizontal. |
static int |
BAR_HORIZ_CLUST_SPLIT2YGraph type: Clustered, split dual-Y graph that is horizontal. |
static int |
BAR_HORIZ_STACKGraph type: Stacked bar graph that is horizontal. |
static int |
BAR_HORIZ_STACK_2YGraph type: Stacked, dual-Y bar graph that is horizontal. |
static int |
BAR_HORIZ_STACK_SPLIT2YGraph type: Stacked, split dual-Y bar graph that is horizontal. |
static int |
BAR_VERT_CLUSTGraph type: Clustered bar graph that has a vertical orientation. |
static int |
BAR_VERT_CLUST_SPLIT2YGraph type: Clustered, split dual-Y bar graph that is vertical. |
static int |
BAR_VERT_CLUST2YGraph type: Clustered, dual-Y bar graph that is vertical. |
static int |
BAR_VERT_PERCENTGraph type: Percent bar graph that is vertical. |
static int |
BAR_VERT_STACKGraph type: Stacked bar graph that is vertical. |
static int |
BAR_VERT_STACK_SPLIT2YGraph type: Stacked, split dual-Y bar graph that is vertical. |
static int |
BAR_VERT_STACK2YGraph type: Stacked, dual-Y bar graph that is vertical. |
static int |
BUBBLEGraph type: Bubble graph. |
static int |
BUBBLE_2YGraph type: Dual-Y bubble graph. |
static int |
COLOR_BY_GROUPColor Mode: Markers of the same color indicate a group of data. |
static int |
COLOR_BY_SERIESColor Mode: Markers of the same color indicate a series of data. |
static int |
CONNECTORThe Connector component. |
static int |
DATALINEThe DataLine component. |
static int |
DATAMARKERThe DataMarker component. |
static int |
DDT_CUBEData director type: The DataDirector is a CubeDataDirector, for multidimensional data. |
static int |
DDT_RELATIONALData director type: The DataDirector is a RelationalDataDirector, for relational data. |
static int |
FITLINEThe Fitline component. |
static int |
GRAPHThis graph. |
static java.lang.String |
GRAPH_TYPEThe graph type attribute for searches. |
static int |
GROUPANDSERIESLIMITThe maximum number of groups and series that this graph can display. |
static int |
HONOR_PROPERTIESdoAutoLayout: Honor the properties that automatic layout normally respects. |
static int |
LEGENDAREAThe LegendArea component. |
static int |
LEGENDMARKERThe LegendMarker component. |
static int |
LEGENDTEXTThe LegendText component. |
static int |
LINE_VERT_ABSGraph type: Absolute line graph. |
static int |
LINE_VERT_ABS_2YGraph type: Absolute, dual-Y line graph. |
static int |
LINE_VERT_ABS_SPLIT2YGraph type: Absolute, split dual-Y line graph. |
static int |
LINE_VERT_PERCENTGraph type: Percent line graph. |
static int |
LINE_VERT_STACKGraph type: Stacked line graph. |
static int |
LINE_VERT_STACK_2YGraph type: Stacked, dual-Y line graph. |
static int |
LINE_VERT_STACK_SPLIT2YGraph type: Stacked, split dual-Y line graph. |
static int |
MAP_ALLAll of the image map components that are supported by the graph. |
static int |
MAP_DATAAll of the data points in the plot area of the graph. |
static int |
MAP_DATATEXTThe data text, pie slice labels and pie labels of the graph. |
static int |
MAP_LABELSThe tick labels for the data axes of the graph. |
static int |
MAP_LEGENDThe legend text and legend markers of the graph. |
static int |
MAP_ORDINALLABELSThe labels for the ordinal axis of the graph. |
static int |
MAP_TITLESThe title, subtitle, footnote, and axis titles of the graph. |
static int |
MARKERTEXTThe MarkerText component. |
static int |
MTT_CUM_VALDisplay cumulative data value (stacked graphs only). |
static int |
MTT_NONEMarker ToolTip Type: No tooltips displayed. |
static int |
MTT_PERCENT_VALDisplay percentage data value (pie slices only). |
static int |
MTT_PERCENT_VAL_TEXTMarker text type: Display percentage data value (pie slices only) and QDR information, such as "January, Shoes". |
static int |
MTT_PERCENT_VAL_VALUESMarker text type: Display percentage data value (pie slices only) and data value or values. |
static int |
MTT_PERCENT_VAL_VALUES_TEXTMarker text type: Display percentage data value (pie slices only), data value or values, and QDR information, such as "January, Shoes". |
static int |
MTT_TEXTMarker text type: Display QDR information, such as "January, Shoes". |
static int |
MTT_VALUESMarker ToolTip Type: Display data value or values. |
static int |
MTT_VALUES_TEXTMarker text type: Display data value or values and QDR information, such as "January, Shoes." |
static int |
O1AXISThe O1Axis component. |
static int |
O1MAJORTICKThe O1MajorTick component. |
static int |
O1TICKLABELThe O1TickLabel component. |
static int |
O1TITLEThe O1Title component. |
static int |
PARETOGraph type: Pareto graph. |
static int |
PARETOLINEThe ParetoLine component. |
static int |
PIEGraph type: Pie graph. |
static int |
PIE_BARGraph type: Pie-Bar graph. |
static int |
PIE_MULTIGraph type: Multiple pie graph. |
static int |
PIEFEELERThe PieFeeler component. |
static int |
PIEFRAMEThe PieFrame component. |
static int |
PIELABELThe PieLabel component. |
static int |
PLOTAREAThe PlotArea component. |
static int |
POLARGraph type: Polar graph. |
static int |
QUADRANTLINEThe QuadrantLine component. |
static int |
RADAR_LINEGraph type: Radar graph. |
static int |
REFERENCELINEMARKERThe ReferenceLineMarker component. |
static int |
REFERENCELINETEXTThe ReferenceLineText component. |
static int |
RESET_PROPERTIESdoAutoLayout: Reset property values that can be set automatically. |
static int |
RINGGraph type: Ring graph. |
static int |
RING_BARGraph type: Ring-Bar graph. |
static int |
RING_MULTIGraph type: Multiple ring graph. |
static int |
RINGTOTALLABELThe RingTotalLabel component. |
static int |
SCATTERGraph type: Scatter graph. |
static int |
SCATTER_2YGraph type: Dual-Y scatter graph. |
static int |
SERIESThe Series component. |
static int |
SERIESOBJECTCOUNTLIMITThe maximum number of different series for which you can save properties. |
static int |
SLICEThe Slice component. |
static int |
SLICELABELThe SliceLabel component. |
static int |
SP_ALWAYSScrollbar presence: Always display scrollbars. |
static int |
SP_AS_NEEDEDScrollbar presence: Display scrollbars when they are needed. |
static int |
SP_NEVERScrollbar presence: Never display scrollbars. |
static int |
SPLITDIVIDERThe SplitDivider component. |
static int |
STOCK_CANDLEGraph type: Candle open-close stock graph. |
static int |
STOCK_CANDLE_VOLUMEGraph type: Candle open-close stock with volume. |
static int |
STOCK_HILO_CLOSEGraph type: High-low-close stock graph. |
static int |
STOCK_HILO_CLOSE_VOLUMEGraph type: High-low-close stock graph with volume. |
static int |
STOCK_OHLC_CANDLEGraph type: Candle open-high-low-close stock graph. |
static int |
STOCK_OHLC_CANDLE_VOLUMEGraph type: Candle open-high-low-close stock graph with volume. |
static int |
STOCK_OPEN_HILO_CLOSEGraph type: Open-high-low-close stock graph. |
static int |
STOCK_VOLUMEGraph type: Open-high-low-close stock graph with volume. |
static int |
STOCKMARKERThe StockMarker component. |
static int |
TEXT_COMPONENTS_ALLScale font size: Scale the font size of all text components in the graph. |
static int |
TEXT_COMPONENTS_NONEScale font size: Do not scale the font size of any text components in the graph. |
static int |
THREED_AREA_SERIESGraph type: 3-D area graph. |
static int |
THREED_BARGraph type: 3-D bar graph. |
static int |
THREED_CUBEGraph type: 3-D floating cubes. |
static int |
THREED_RIBBON_SERIESGraph type: 3-D ribbon graph. |
static int |
THREED_SURFACEGraph type: 3D surface. |
static int |
THREEDFLOORThe ThreeDFloor component. |
static int |
THREEDLEFTWALLThe ThreeDLeftWall component. |
static int |
THREEDMARKERThe ThreeDMarker component. |
static int |
THREEDRIGHTWALLThe ThreeDRightWall component. |
static int |
TLT_DIM_MEMBERTooltip label type: Display dimension names and dimension members, such as "Product: Shoes". |
static int |
TLT_MEMBERTooltip label type: Display only dimension names, such as "Product". |
static int |
TLT_NONETooltip label type: Do not display information. |
static int |
TWODMARKERThe TwoDMarker component. |
static int |
UNDEFINEDAn undefined component. |
static int |
UNDEFINEDTYPEUndetermined how to format the data value. |
static int |
VOLUMEMARKERThe VolumeMarker component. |
static int |
X1AXISThe X1Axis component. |
static int |
X1MAJORTICKThe X1MajorTick component. |
static int |
X1REFERENCELINEThe X1ReferenceLine component. |
static int |
X1TICKLABELThe X1TickLabel component. |
static int |
X1TITLEThe X1Title component. |
static int |
XPANELGRIDThe XPanelGrid component. |
static int |
XTICKLBLFormat the data value as an X tick label. |
static int |
XVALUEFormat the data value as an X value. |
static int |
Y1AXISThe Y1Axis component. |
static int |
Y1MAJORTICKThe Y1MajorTick component. |
static int |
Y1REFERENCELINEThe Y1ReferenceLine component. |
static int |
Y1TICKLABELThe Y1TickLabel component. |
static int |
Y1TICKLBLFormat the data as a Y1 tick label. |
static int |
Y1TITLEThe Y1Title component. |
static int |
Y1VALUEFormat the data value as a Y1 value. |
static int |
Y1ZEROLINEThe Y1ZeroLine component. |
static int |
Y2AXISThe Y2Axis component. |
static int |
Y2MAJORTICKThe Y2MajorTick component. |
static int |
Y2REFERENCELINEThe Y2ReferenceLine component. |
static int |
Y2TICKLABELThe Y2TickLabel component. |
static int |
Y2TICKLBLFormat the data value a Y2 tick label. |
static int |
Y2TITLEThe Y2Title component. |
static int |
Y2VALUEFormat the data value as a Y2 value. |
static int |
Y2ZEROLINEThe Y2ZeroLine component. |
static int |
Y3DMARKERGRIDThe Y3DMarkerGrid component. |
static int |
YPANELGRIDThe YPanelGrid component. |
static int |
ZPANELGRIDThe ZPanelGrid component. |
static int |
ZTICKLABELThe ZTickLabel component. |
static int |
ZTITLEThe ZTitle component. |
static int |
ZVALUEFormat the data value as a Z value. |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 |
beginAxisChanges()Prevents calculation of axis values while the user interface panel sets axis scaling properties. |
void |
calculatePlacement()Forces the graph to perform a complete calculation of its elements. |
void |
cleanUp()Clears the memory of the graph. |
static java.lang.String |
convertGraphTypeToString(int value)Generates a String representation of a graph type constant. |
ExceptionalRiser |
createExceptionalRiser(int series, int group)Creates an ExceptionalRiser. |
void |
destroyAllExceptionalRisers()Destroys all ExceptionalRiser components in this graph. |
void |
doAutoLayout(int level)Automatically places and sizes graph components once. |
void |
endAxisChanges()Re-enables calculation of axis values after the user interface panel sets axis scaling properties. |
void |
exportToGIF(java.io.OutputStream os)Exports a snapshot of the page that is currently displayed to the GIF file. |
void |
exportToGIFWithException(java.io.OutputStream os)Exports a snapshot of the page that is currently displayed to the GIF file. |
void |
exportToJPEG(java.io.OutputStream os, int quality)Exports a snapshot of the page that is currently displayed to a JPEG 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. |
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. |
AreaMarker |
getAreaMarker()Retrieves the AreaMarker component for this graph. |
int |
getAutoLayout()Retrieves information about when the graph automatically places and sizes its components. |
int |
getAutomaticComponentPlacement()Deprecated. As of 2.6.0.12, replaced by getAutoLayout() |
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. |
Connector |
getConnector()Retrieves the Connector component for this graph. |
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()Retrieves the the type of the current DataDirector, either a cube data director, for multidimensional data, or a relational data director, for relational data. |
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 DataMarkercomponent for this graph. |
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. |
java.lang.String |
getDrillDimension()Retrieves the name of the dimension that will be drilled when a drill operation is ambiguous. |
Fitline |
getFitline()Retrieves the Fitline component for this graph. |
Titles |
getFootnote()Retrieves the GraphFootnote component for this graph. |
GraphBackground |
getGraphBackground()Retrieves the GraphBackground component for this graph. |
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. |
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. |
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. |
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. |
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. |
UIParetoLine |
getParetoLine()Retrieves the implementation of the UIParetoLine interface for this graph. |
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. |
ReferenceLineMarker |
getReferenceLineMarker()Retrieves the ReferenceLineMarker component for this graph. |
ReferenceLineText |
getReferenceLineText()Retrieves the ReferenceLineText component for this graph. |
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 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 |
getSeriesObjectCount()Retrieves the number of series that this graph stores properties for. |
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. |
Titles |
getSubtitle()Retrieves the GraphSubtitle 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. |
int |
getViewType()Retrieves the specific type of subclass of this Dataview. |
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. |
X1ReferenceLine |
getX1ReferenceLine()Retrieves the X1ReferenceLine 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. |
Y1ReferenceLine |
getY1ReferenceLine()Retrieves the Y1ReferenceLine 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. |
Y2ReferenceLine |
getY2ReferenceLine()Retrieves the Y2ReferenceLine 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. |
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 |
isDataRowShownAsASeries()Indicates whether rows of data appear as series or as groups. |
boolean |
isFitToContainer()Indicates whether the graph automatically resizes itself to fit its container. |
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 |
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()Indicates whether legend markers are shaped like their corresponding data markers or 2-D markers. |
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. |
boolean |
isScatterDataLineDisplayed()Indicates whether data lines appear on a scatter graph. |
boolean |
isSwapAllowed()Indicates whether swapping is allowed in this view. |
boolean |
isTextAntialiasing()Indicates whether text appears in a graph as smooth or more jagged. |
boolean |
readXML(java.io.InputStream stream, boolean reset)Deprecated. As of 1.7.0.12, replaced by readXML(InputStream, int) |
boolean |
readXML(java.io.InputStream stream, int reset)Applies XML to this Graph, from a String. |
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 |
resetToDefault()Deprecated. As of 1.7.0.12, replaced by resetToDefault(int) |
void |
resetToDefault(int reset)Resets properties of this Graph to their default values. |
boolean |
selectObject(ComponentHandle id)Selects a graph component. |
void |
setAutoLayout(int auto)Specifies when the graph automatically places and sizes its components. |
void |
setAutomaticComponentPlacement(int placement)Deprecated. As of 2.6.0.12, replaced by setAutoLayout(int) |
void |
setColorMode(int mode)Specifies whether markers of the same color comprise a group of data or a series of data. |
void |
setCustomToolTipCallback(CustomToolTipCallback callback)Specifies the CustomToolTipCallback that will provide tooltip text to this Graph. |
void |
setDataDirectorType(int type)Specifies the the type of DataDirector, either a cube data director, for multidimensional data, or a relational data director, for relational data. |
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 |
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. |
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 |
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 |
setDrillDimension(java.lang.String dim)Specifies the name of a dimension that should be used when a drill operation is ambiguous. |
void |
setFitToContainer(boolean fitToContainer)Specifies whether the graph resizes itself automatically to fit its container. |
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 |
setGraphicAntialiasing(boolean yesNo)Specifies whether lines in a graph appear more smooth or more jagged. |
void |
setGraphType(int type)Specifies the graph type for this graph. |
void |
setGraphTypeConverter(GraphTypeConverter converter)Specifies the GraphTypeConverter for the graph type to use. |
void |
setGroupTooltipLabelType(int type)Specifies the type of information about groups that this graph displays in tooltips. |
void |
setImageSize(java.awt.Dimension d)Specifies a size for this graph. |
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)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. |
void |
setMinTickLabelAutoFontSize(int size)Specifies the minimum font size for tick labels that are automatically sized to fit in this graph. |
void |
setMouseMovingEnabled(boolean yesNo)Specifies whether a selected component can be moved and resized with the mouse. |
void |
setParetoBarsConnected(boolean connected)Specifies whether the pareto bars are connected to each other. |
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 |
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 GIF 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 |
setSeriesObjectCount(int count)Specifies the number of series that this graph stores properties for. |
void |
setSeriesTooltipLabelType(int type)Specifies the type of information about series that this graph displays in tooltips. |
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 |
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 |
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. |
boolean |
setXML(java.lang.String xmlString, boolean reset)Deprecated. As of 1.7.0.12, replaced by setXML(String, int) |
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 |
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, getUIClassID, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.dss.graph.UIGraph |
getUIX1ReferenceLine, getUIY1ReferenceLine, getUIY2ReferenceLine, isPagingControlVisible, setPagingControlVisible |
| Methods inherited from interface oracle.dss.dataView.UIDataview |
addControllerListener, getDataviewFootnote, getDataviewSubtitle, getDataviewTitle, getLocale, getTokenSubstitution, removeControllerListener, setTokenSubstitution |
| Methods inherited from interface oracle.dss.dataView.GraphAttribute |
applyViewStyle, getComponentViewStyle, getUISeriesColor |
| Methods inherited from interface oracle.dss.rules.ComponentTypeConverter |
convertComponentTypeToInteger, convertComponentTypeToString |
| Methods inherited from interface oracle.dss.util.persistence.Persistable |
initialize, setPersistableComponents |
| Methods inherited from interface oracle.dss.dataView.DataviewCommon |
getErrorHandler |
| Field Detail |
public static final java.lang.String GRAPH_TYPE
Attributes.convertGraphTypeToString(int)public static final int GRAPH
public static final int AREAMARKER
AreaMarker component.AreaMarker, Seriespublic static final int BACKGROUND
GraphBackground component.GraphBackgroundpublic static final int CONNECTOR
Connector component.Connectorpublic static final int DATALINE
DataLine component.DataLinepublic static final int DATAMARKER
DataMarker component.DataMarkerpublic static final int FITLINE
Fitline component.Fitlinepublic static final int LEGENDAREA
LegendArea component.LegendAreapublic static final int LEGENDMARKER
LegendMarker component.LegendMarkerpublic static final int LEGENDTEXT
LegendText component.LegendTextpublic static final int MARKERTEXT
MarkerText component.MarkerTextpublic static final int O1AXIS
O1Axis component.O1Axispublic static final int O1MAJORTICK
O1MajorTick component.O1MajorTickpublic static final int O1TICKLABEL
O1TickLabel component.O1TickLabelpublic static final int O1TITLE
O1Title component.O1Titlepublic static final int PIEFEELER
PieFeeler component.PieFeelerpublic static final int PIEFRAME
PieFrame component.PieFramepublic static final int PIELABEL
PieLabel component.PieLabelpublic static final int PLOTAREA
PlotArea component.PlotAreapublic static final int QUADRANTLINE
QuadrantLine component.QuadrantLinepublic static final int SERIES
Series component.Seriespublic static final int SLICE
Slice component.Slicepublic static final int SLICELABEL
SliceLabel component.SliceLabelpublic static final int SPLITDIVIDER
SplitDivider component.SplitDividerpublic static final int STOCKMARKER
StockMarker component.StockMarkerpublic static final int THREEDFLOOR
ThreeDFloor component.ThreeDFloorpublic static final int THREEDLEFTWALL
ThreeDLeftWall component.ThreeDLeftWallpublic static final int THREEDMARKER
ThreeDMarker component.ThreeDMarkerpublic static final int THREEDRIGHTWALL
ThreeDRightWall component.ThreeDRightWallpublic static final int TWODMARKER
TwoDMarker component.TwoDMarkerpublic static final int X1AXIS
X1Axis component.X1Axispublic static final int X1MAJORTICK
X1MajorTick component.X1MajorTickpublic static final int X1TICKLABEL
X1TickLabel component.X1TickLabelpublic static final int X1TITLE
X1Title component.X1Titlepublic static final int XPANELGRID
XPanelGrid component.XPanelGridpublic static final int Y1AXIS
Y1Axis component.Y1Axispublic static final int Y1MAJORTICK
Y1MajorTick component.Y1MajorTickpublic static final int Y1TICKLABEL
Y1TickLabel component.Y1TickLabelpublic static final int Y1TITLE
Y1Title component.Y1Titlepublic static final int Y1ZEROLINE
Y1ZeroLine component.Y1ZeroLinepublic static final int Y2AXIS
Y2Axis component.Y2Axispublic static final int Y2MAJORTICK
Y2MajorTick component.Y2MajorTickpublic static final int Y2TICKLABEL
Y2TickLabel component.Y2TickLabelpublic static final int Y2TITLE
Y2Title component.Y2Titlepublic static final int Y2ZEROLINE
Y2ZeroLine component.Y2ZeroLinepublic static final int Y3DMARKERGRID
Y3DMarkerGrid component.Y3DMarkerGridpublic static final int YPANELGRID
YPanelGrid component.YPanelGridpublic static final int ZPANELGRID
ZPanelGrid component.ZPanelGridpublic static final int ZTICKLABEL
ZTickLabel component.ZTickLabelpublic static final int ZTITLE
ZTitle component.ZTitlepublic static final int VOLUMEMARKER
VolumeMarker component.VolumeMarkerpublic static final int RINGTOTALLABEL
RingTotalLabel component.RingTotalLabelpublic static final int PARETOLINE
ParetoLine component.ParetoLinepublic static final int X1REFERENCELINE
X1ReferenceLine component.X1ReferenceLinepublic static final int Y1REFERENCELINE
Y1ReferenceLine component.Y1ReferenceLinepublic static final int Y2REFERENCELINE
Y2ReferenceLine component.Y2ReferenceLinepublic static final int UNDEFINED
public static final int REFERENCELINEMARKER
ReferenceLineMarker component.ReferenceLineMarkerpublic static final int REFERENCELINETEXT
ReferenceLineText component.ReferenceLineTextpublic static final int MAP_DATA
getImagemapEnumeration method and writeImagemapXML method, you get a report of the data points that are currently present and visible in the graph.getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int MAP_LEGEND
getImagemapEnumeration method and writeImagemapXML method, you get a report of the legend text and legend markers that are currently present and visible in the graph.getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int MAP_DATATEXT
getImagemapEnumeration method and writeImagemapXML method, you get a report of the data text, pie slice labels and pie labels that are currently present and visible in the graph.getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int MAP_ORDINALLABELS
getImagemapEnumeration method and writeImagemapXML method, you get a report of the ordinal axis tick labels that are currently present and visible in the graph.getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int MAP_LABELS
getImagemapEnumeration method and writeImagemapXML method, you get a report of the data-axis tick labels that are currently present and visible in the graph.getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int MAP_TITLES
getImagemapEnumeration and writeImagemapXML methods, you will get a report of the title components of the graph that are currently present and visible.getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int MAP_ALL
getImagemapEnumeration method and writeImagemapXML method, you get a report of the tick labels for the data axes, tick labels for the ordinal axis, title, subtitle, footnote, and axis titles, legend text and legend markers, data text, pie slice labels and pie labels that are currently present and visible in the graph.
writeImagemapXML(MAP_ALL) is equivalent to writeImagemapXML(MAP_DATA|MAP_LEGEND|MAP_DATATEXT| MAP_ORDINALLABELS|MAP_LABELS|MAP_TITLES).
getImagemapEnumeration(int), writeImagemapXML(java.io.OutputStream, int)public static final int THREED_BAR
Series appear along the left edge of the graph. Groups appear long the right edge of the graph.
public static final int THREED_CUBE
Series appear along the left edge of the graph. Groups appear long the right edge of the graph.
public static final int THREED_AREA_SERIES
Series appear along the left edge of the graph. Groups appear long the right edge of the graph.
public static final int THREED_RIBBON_SERIES
Series appear along the left edge of the graph. Groups appear long the right edge of the graph.
public static final int THREED_SURFACE
public static final int BAR_VERT_CLUST
Bars of the same color represent a series. Each cluster of bars represents a group.
public static final int BAR_VERT_STACK
Bars of the same color represent a series. Each stack of bars represents a group.
public static final int BAR_VERT_CLUST2Y
Bars of the same color represent a series. Each cluster of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_VERT_STACK2Y
Bars of the same color represent a series. Each stack of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_VERT_CLUST_SPLIT2Y
Bars of the same color represent a series. Each cluster of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_VERT_STACK_SPLIT2Y
Bars of the same color represent a series. Each stack of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_VERT_PERCENT
Bars of the same color represent a series. Each stack of bars represents the total data value for the group.
This graph type is not appropriate for data that includes negative numbers.
public static final int BAR_HORIZ_CLUST
Bars of the same color represent a series. Each cluster of bars represents a group.
public static final int BAR_HORIZ_STACK
Bars of the same color represent a series. Each stack of bars represents a group.
public static final int BAR_HORIZ_CLUST_2Y
Bars of the same color represent a series. Each cluster of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_HORIZ_STACK_2Y
Bars of the same color represent a series. Each stack of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_HORIZ_CLUST_SPLIT2Y
Bars of the same color represent a series. Each cluster of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int BAR_HORIZ_STACK_SPLIT2Y
Bars of the same color represent a series. Each stack of bars represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int AREA_VERT_ABS
Each area marker represents a series. Each column of points along the ordinal axis represents a group.
public static final int AREA_VERT_STACK
Each area marker represents a series. Each column of points along the ordinal axis represents a group.
public static final int AREA_VERT_ABS_SPLIT2Y
Use dual-Y graphs to compare measures that have different magnitudes. In a split dual-Y graph, each Y-axis occupies a different segment of the graph.
Each area marker represents a series. Each column of points along the ordinal axis represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int AREA_VERT_STACK_SPLIT2Y
Use dual-Y graphs to compare measures that have different magnitudes. In a split dual-Y graph, each axis occupies a different segment of the graph.
Each area marker represents a series. Each column of points along the ordinal axis represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int AREA_VERT_PERCENT
Each area marker represents a series. Each column of points along the ordinal axis represents a group.
public static final int LINE_VERT_ABS
Each line represents a series. Each column of points along the ordinal axis represents a group.
The default UI for the BI Beans presents point graphs. These point graphs are line graphs in which the lines are not displayed.
isLineDataLineDisplayed()public static final int LINE_VERT_STACK
Each line represents a series. Each column of points along the ordinal axis represents a group.
public static final int LINE_VERT_ABS_2Y
Use dual-Y graphs to compare measures that have different magnitudes.
Each line represents a series. Each column of points along the ordinal axis represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
The default UI for the BI Beans presents point graphs. These point graphs are line graphs in which the lines are not displayed.
isLineDataLineDisplayed()public static final int LINE_VERT_STACK_2Y
Each line represents a series. Each column of points along the ordinal axis represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int LINE_VERT_ABS_SPLIT2Y
Each line represents a series. Each column of points along the ordinal axis represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
The default UI for the BI Beans presents point graphs. These point graphs are line graphs in which the lines are not displayed.
isLineDataLineDisplayed()public static final int LINE_VERT_STACK_SPLIT2Y
Each line represents a series. Each column of points along the ordinal axis represents a group.
Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents. This graph type requires at least two series of data.
public static final int LINE_VERT_PERCENT
Each line represents a series. Each column of points along the ordinal axis represents a group.
This graph type is not appropriate for data that includes negative numbers.
public static final int PIE
This graph type is not appropriate for data that includes negative numbers.
public static final int RING
Each slice represents a series. The ring represents a group.
This graph type is not appropriate for data that includes negative numbers.
public static final int PIE_MULTI
Slices of the same color represent a series. Each pie represents a group.
This graph type is not appropriate for data that includes negative numbers.
public static final int RING_MULTI
Slices of the same color represent a series. Each ring represents a group.
This graph type is not appropriate for data that includes negative numbers.
public static final int SCATTER
Markers of the same color represent a series. The location of the marker along the X-axis represents one group value. The location of the marker along the Y-axis represents the other group value.
This graph type requires at least two groups of data, one for each data axis.
public static final int SCATTER_2Y
Markers of the same color represent a series. The location of the marker along the X-axis represents one group value. The location of the marker along a Y-axis represents the other group value.
Dual-Y graphs show measures of different magnitudes. Assign each series either to the Y1-axis or to the Y2-axis, according to the measure that the series represents.
This graph type requires at least two series of data (one for each Y-axis) and two groups of data (one for the X-axis and one for a Y-axis).
public static final int POLAR
public static final int RADAR_LINE
public static final int STOCK_OHLC_CANDLE
public static final int STOCK_OHLC_CANDLE_VOLUME
public static final int STOCK_CANDLE
public static final int STOCK_HILO_CLOSE
public static final int STOCK_OPEN_HILO_CLOSE
public static final int STOCK_VOLUME
public static final int STOCK_CANDLE_VOLUME
public static final int STOCK_HILO_CLOSE_VOLUME
public static final int BUBBLE
public static final int BUBBLE_2Y
public static final int PIE_BAR
This graph type is not appropriate for data that includes negative numbers.
public static final int RING_BAR
This graph type is not appropriate for data that includes negative numbers.
public static final int PARETO
This graph type is not appropriate for data that includes negative numbers.
public static final int UNDEFINEDTYPE
public static final int XVALUE
public static final int Y1VALUE
public static final int Y2VALUE
public static final int ZVALUE
public static final int XTICKLBL
public static final int Y1TICKLBL
public static final int Y2TICKLBL
public static final int MTT_NONE
public static final int MTT_VALUES
public static final int MTT_CUM_VAL
public static final int MTT_PERCENT_VAL
public static final int MTT_TEXT
public static final int MTT_PERCENT_VAL_VALUES
public static final int MTT_PERCENT_VAL_TEXT
public static final int MTT_PERCENT_VAL_VALUES_TEXT
public static final int MTT_VALUES_TEXT
public static final int SP_NEVER
public static final int SP_AS_NEEDED
setDisplayGroups(int), setDisplaySeries(int)public static final int SP_ALWAYS
public static final int DDT_CUBE
DataDirector is a CubeDataDirector, for multidimensional data.DataDirectorpublic static final int DDT_RELATIONAL
DataDirector is a RelationalDataDirector, for relational data.DataDirectorpublic static final int ACP_NEVER
AL_NEVERsetAutomaticComponentPlacement is deprecated; call setAutoLayout(AL_NEVER) to prevent the graph from placing and sizing components automatically.AL_NEVER, setAutoLayout(int)public static final int ACP_ALWAYS
AL_AS_NEEDED or by AL_ALWAYSsetAutomaticComponentPlacement is deprecated; call setAutoLayout(AL_ALWAYS) to have the graph always calculate automatic placement and sizing of components. Call setAutoLayout(AL_AS_NEEDED) to have the graph place and size components only when adjustments are needed, such as when components overlap each other or when legend text extends beyond the legend area.
An AutomaticComponentPlacement setting of AL_ALWAYS is treated as an AutoLayout setting of AL_AS_NEEDED.
AL_ALWAYS, AL_AS_NEEDED, setAutoLayout(int)public static final int AL_NEVER
public static final int AL_AS_NEEDED
Use this setting if your application handles layout, but you want to ensure that overlap does not occur in case the user displays a set of data that you did not account for in your layout code.
public static final int AL_ALWAYS
public static final int COLOR_BY_SERIES
public static final int COLOR_BY_GROUP
public static final int TLT_NONE
public static final int TLT_MEMBER
public static final int TLT_DIM_MEMBER
public static final int GROUPANDSERIESLIMIT
setStartGroup(int), setStartSeries(int), setStartRow(int), setStartColumn(int)public static final int SERIESOBJECTCOUNTLIMIT
setSeriesObjectCount(int)public static final int TEXT_COMPONENTS_ALL
public static final int TEXT_COMPONENTS_NONE
public static final int HONOR_PROPERTIES
doAutoLayout: Honor the properties that automatic layout normally respects. When you pass this value to the doAutoLayout method, then the automatic layout code respects the settings of properties that are set manually.
For example, tick label skipping is automatic by default, but you can specify BaseGraphComponent.TLS_MANUAL as the TickLabelSkipMode property. If you do this, then automatic layout code respects the values of the TickLabelSkipCount and TickLabelSkipFirst properties of the O1Axis.
The doAutoLayout code also respects these properties, if you set HONOR_PROPERTIES as the level. Using this value limits the strategies that the automatic layout code can use in placing components.
When you use this level, the doAutoLayout method honors:
TickLabelSkipMode property of the O1TickLabel.AutomaticRotation property of theO1TickLabel.TextRotation property of theO1TickLabel.AutomaticPlacement property of the LegendArea.Now matter how these properties are set before you call doAutoLayout, the doAutoLayout method always sets these properties to their manual settings, so that you can tweak the layout afterward by setting the related properties.
RESET_PROPERTIES, doAutoLayout(int), setAutoLayout(int)public static final int RESET_PROPERTIES
doAutoLayout: Reset property values that can be set automatically. When you pass this value to the doAutoLayout method, then the automatic layout code treats as automatic any property that can be set automatically.
For example, tick label skipping is automatic by default, but you can specify BaseGraphComponent.TLS_MANUAL as the TickLabelSkipMode property. If you do this, then automatic layout code respects the values of the TickLabelSkipCount and TickLabelSkipFirst properties of the O1Axis.
If you set RESET_PROPERTIES as the level for doAutoLayout, then doAutoLayout treats the properties as if they were set to their automatic values. Using this value allows the automatic layout code more flexibility in placing components.
When you use this level, the doAutoLayout method:
TickLabelSkipMode property of the O1TickLabel as if it were set to BaseGraphComponent.TLS_AUTOMATIC.AutomaticRotation property of the O1TickLabel as if it were set to BaseGraphComponent.AR_HORIZ_ROTATE_270.TextRotation property of the O1TickLabel as if it were set to BaseGraphComponent.AR_HORIZ.AutomaticPlacement property of the LegendArea as if it were BaseGraphComponent.AP_ALWAYS.The doAutoLayout method always sets these properties to their manual settings, so that you can tweak the layout by setting the related properties.
HONOR_PROPERTIES, doAutoLayout(int), setAutoLayout(int)| 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 sectionDDT_CUBE, DDT_RELATIONALpublic Graph(ErrorHandler errorHandler)
ErrorHandler.errorHandler - The ErrorHandler to use.| Method Detail |
public void resetToDefault()
resetToDefault(int)resetToDefault method that takes an int gives you control over how much and how far to reset values. To replicate the behavior of this deprecated method, pass RESET_EVERYTHING to the resetToDefault(int) method.resetToDefault in class Dataviewpublic 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 Dataviewreset - 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.Dataview.RESET_XML_PROPERTIES, Dataview.RESET_EVERYTHINGpublic boolean setVersion(java.lang.String version)
version - The graph version to which the properties should be reset.public void cleanUp()
cleanUp in class Dataviewpublic 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.Componentl - The awt mouse motion listener to add.ViewMouseMotionListener, Controller.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.Componentl - 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.Componentl - The awt mouse listener to add.ViewMouseListener, ViewMouseEvent, Controller.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.Componentl - 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.Componentl - The awt key listener to add.ViewKeyListener, ViewKeyEvent, Controller.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.Componentl - 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 exportToJPEG(java.io.OutputStream os,
int quality)
os - The OutputStream that specifies the location and name of the JPEG file.quality - The JPEG quality. Valid values are from 0 (worst quality) to 100 (good quality).public void exportToGIF(java.io.OutputStream os)
Before it exports to GIF, this method calls the DataAccess.forceFetch method to fetch all of the data on the current logical page.
os - The OutputStream that specifies the location and name of the GIF file.
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.
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.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. This method scales font sizes in the exported file based on the value of the ScaleFontSizeForGIF property.
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. This method scales font sizes in the exported file based on the value of the ScaleFontSizeForGIF property.
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.exportToPNG(java.io.OutputStream), setScaleFontSizeForGIF(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 GraphController getGraphController()
GraphController for this graph.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.ViewFormatpublic GraphStyleManager getGraphStyleManager()
GraphStyleManager for this graph.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 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 UIDataviewgetSelectedObject in class Dataviewpublic 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 class Dataviewds - The DataSource for this graph to use.public boolean selectObject(ComponentHandle id)
selectObject in class Dataviewid - 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 GraphTypeConverter getGraphTypeConverter()
GraphTypeConverter that this graph uses. The GraphTypeConverter translates the base graph types for a user interface (UI). For example, the default UI 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 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.
getGraphTypeConverter in interface UIGraphGraphTypeConverter 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.
setGraphTypeConverter in interface UIGraphconverter - The GraphTypeConverter for this graph to use.public void setLocale(java.util.Locale loc)
Locale for this Graph.setLocale in class Dataviewloc - 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.DataComponentHandlepublic 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.
ExceptionalRiserpublic int getAutomaticComponentPlacement()
getAutoLayout()getAutoLayout method returns information about when the graph automatically sets properties to lay out graph components.ACP_ALWAYS, ACP_NEVERpublic void setAutomaticComponentPlacement(int placement)
setAutoLayout(int)setAutoLayout method to specify when the graph sets properties to lay out graph components. setAutomaticComponentPlacement(AL_ALWAYS) maps to setAutoLayout(AL_AS_NEEDED).placement - A constant that represents when to have the graph place components. Constants are listed in the See Also section.ACP_ALWAYS, ACP_NEVER, AL_AS_NEEDEDpublic 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.AL_ALWAYS, AL_AS_NEEDED, AL_NEVER, doAutoLayout(int), setMouseMovingEnabled(boolean)public int getAutoLayout()
getAutoLayout in interface UIGraphAL_ALWAYS, AL_AS_NEEDED, AL_NEVERpublic 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_NEVERFrameSizeAutomatic -- Set to trueThis method sets the following properties of the LegendArea component:
AutomaticPlacement -- Set to BaseGraphComponent.AP_NEVERMarkersPerRowAutomatic -- Set to falseLegendMarkersPerRow -- Set as neededLegendTextPosition -- Set to LTP_ON_RIGHTLegendOrientation -- Set as neededRect -- Set as neededThis method sets the following properties of the O1TickLabel component:
TickLabelSkipMode -- Set to BaseGraphComponent.TLS_MANUALTickLabelSkipCount -- Set as needed only if level is Graph.RESET_PROPERTIES or if TickLabelSkipMode is TLS_AUTOMATIC.TickLabelSkipFirst -- Set as needed only iflevel is Graph.RESET_PROPERTIES or if TickLabelSkipMode is TLS_AUTOMATIC.TickLabelStaggered -- Set as neededTextRotation -- Set as needed only if level is Graph.RESET_PROPERTIESAutomaticRotation -- Set as needed only if level is Graph.RESET_PROPERTIESHorizontalAlignment -- Set as neededThis 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 textlevel - 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.HONOR_PROPERTIES, RESET_PROPERTIES, setDisplaySeries(int), setLegendSeriesCount(int), setLegendSeriesStart(int), setLegendScrollbarPresence(int), setFrameSizeAutomatic(boolean), BaseFrame.setRect(java.awt.Rectangle), LegendMarker.setMaxSize(int), 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), BaseTickLabel.setHorizontalAlignment(int), GraphBaseTitle#setRectpublic 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.COLOR_BY_SERIES, COLOR_BY_GROUPpublic int getColorMode()
GraphType is THREED_SURFACE.
The default value for ColorMode is COLOR_BY_SERIES.
COLOR_BY_SERIES, COLOR_BY_GROUPpublic int getDataDirectorType()
DataDirector, either a cube data director, for multidimensional data, or a relational data director, for relational data.DDT_CUBE, DDT_RELATIONAL, DataDirectorpublic 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.DDT_CUBE, DDT_RELATIONAL, DataDirectorpublic 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.isDataRowShownAsASeries in interface UIGraphoracle.dss.graph.UIGraphtrue 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.setDataRowShownAsASeries in interface UIGraphyesNo - 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. The value can be any positive integer up to and including 10,000,000.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 isFitToContainer()
false, the graph uses the ImageSize property to determine its size. If the graph is larger than the container, then only part of the graph is visible.true if the graph automatically resizes to fit its container, false if it does not.setImageSize(java.awt.Dimension)public void setFitToContainer(boolean fitToContainer)
false is helpful when you want to design a graph that has size constraints. For example, when you design a graph for a portlet, you may want to see the graph only at the size it will be in the portlet.
If you set this property to false, then set the ImageSize property to set the size of the graph.
fitToContainer - true to have the graph automatically resize when the container changes size, false to have the graph remain the same size.setImageSize(java.awt.Dimension)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 UIGraphsetGraphType(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 - A constant that represents the graph type for this graph.BAR_VERT_CLUST, BAR_VERT_CLUST2Y, BAR_VERT_CLUST_SPLIT2Y, BAR_VERT_STACK, BAR_VERT_STACK2Y, BAR_VERT_STACK_SPLIT2Y, BAR_VERT_PERCENT, BAR_HORIZ_CLUST, BAR_HORIZ_CLUST_2Y, BAR_HORIZ_CLUST_SPLIT2Y, BAR_HORIZ_STACK, BAR_HORIZ_STACK_2Y, BAR_HORIZ_STACK_SPLIT2Y, AREA_VERT_ABS, AREA_VERT_ABS_SPLIT2Y, AREA_VERT_STACK, AREA_VERT_STACK_SPLIT2Y, AREA_VERT_PERCENT, LINE_VERT_ABS, LINE_VERT_ABS_2Y, LINE_VERT_ABS_SPLIT2Y, LINE_VERT_STACK, LINE_VERT_STACK_2Y, LINE_VERT_STACK_SPLIT2Y, LINE_VERT_PERCENT, RADAR_LINE, PIE, PIE_MULTI, RING, RING_MULTI, PARETO, PIE_BAR, RING_BAR, SCATTER, SCATTER_2Y, POLAR, BUBBLE, BUBBLE_2Y, STOCK_OHLC_CANDLE, STOCK_OHLC_CANDLE_VOLUME, STOCK_HILO_CLOSE, STOCK_HILO_CLOSE_VOLUME, THREED_BAR, THREED_CUBE, THREED_AREA_SERIES, THREED_RIBBON_SERIES, THREED_SURFACE, isLineDataLineDisplayed(), Series.getMarkerType(int)public int getGroupTooltipLabelType()
GroupTooltipLabelType is TLT_MEMBER.getGroupTooltipLabelType in interface UIGraphTLT_DIM_MEMBER, TLT_MEMBER, TLT_NONEpublic void setGroupTooltipLabelType(int type)
GroupTooltipLabelType is TLT_MEMBER.setGroupTooltipLabelType in interface UIGraphtype - A constant that represents the type of information that the graph should display for groups. Constants are listed in the See Also section.TLT_DIM_MEMBER, TLT_MEMBER, TLT_NONEpublic java.awt.Dimension getImageSize()
Dimension object.public void setImageSize(java.awt.Dimension d)
FitToContainer property is set to false.d - The size to make the graph.setFitToContainer(boolean), exportToGIF(java.io.OutputStream), exportToGIFWithException(java.io.OutputStream), exportToJPEG(java.io.OutputStream, int), 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()
isLineDataLineDisplayed in interface UIGraphtrue if a line graph displays lines, false if the line graph does not display lines.setMarkerDisplayed(boolean)public void setLineDataLineDisplayed(boolean yesNo)
false, then you should make sure that the MarkerDisplayed property is set to true. If both properties are false, then the graph will not display data.setLineDataLineDisplayed in interface UIGraphyesNo - 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()
isMarkerDisplayed in interface UIGraphtrue if the line graph displays data markers, false if it does not.DataMarkerpublic 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.
setMarkerDisplayed in interface UIGraphyesNo - true to display data markers, false to hide data markers.setLineDataLineDisplayed(boolean), DataMarker, Series.setMarkerShape(int, int), BaseGraphComponent.MS_NONEpublic boolean isMarkerShapeInLegend()
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)
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 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.
getMarkerTooltipType in interface UIGraphMTT_TEXT, MTT_VALUES, MTT_NONE, MTT_PERCENT_VAL, 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.
setMarkerTooltipType in interface UIGraphtype - 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 (|).MTT_TEXT, MTT_VALUES, MTT_NONE, MTT_PERCENT_VAL, MTT_CUM_VAL, setGroupTooltipLabelType(int), setSeriesTooltipLabelType(int)public 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 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 Dataviewpublic int getPresentationWidth()
getPresentationWidth in class Dataviewpublic 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, DataMarkerpublic 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, DataMarkerpublic int getSeriesObjectCount()
getSeriesObjectCount in interface UIGraphSeriespublic 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.Seriespublic int getSeriesTooltipLabelType()
SeriesTooltipLabelType is TLT_MEMBER.
In order for the series labels to be displayed, the MarkerTooltipType property must be set to include text.
getSeriesTooltipLabelType in interface UIGraphTLT_MEMBER, TLT_DIM_MEMBER, 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.
setSeriesTooltipLabelType in interface UIGraphtype - A constant that represents the type of information that the graph should display for series.TLT_MEMBER, TLT_DIM_MEMBER, TLT_NONE, setMarkerTooltipType(int)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.SP_ALWAYS, SP_NEVER, 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.SP_ALWAYS, SP_NEVER, 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().getStartColumn in class Dataviewpublic 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.
setStartColumn in class Datavieworacle.dss.dataView.Dataviewc - The first column of data to display.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().getStartRow in class Dataviewpublic 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.
setStartRow in class Datavieworacle.dss.dataView.Dataviewr - The first row of data to display.public int getToolTipDelay()
public void setToolTipDelay(int delay)
delay - The number of milliseconds to wait before displaying the tooltip.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.isHorizontal in interface UIGraphtrue 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()
DataMarkercomponent for this graph.DataMarkercomponent 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 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 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 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.getParetoLine in interface UIGraphUIParetoLine. You should program against this interface. Do not cast it to the implementation.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 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 X1ReferenceLine getX1ReferenceLine()
X1ReferenceLine component for this graph.X1ReferenceLine component for this graph.public Y1ReferenceLine getY1ReferenceLine()
Y1ReferenceLine component for this graph.Y1ReferenceLine component for this graph.public Y2ReferenceLine getY2ReferenceLine()
Y2ReferenceLine component for this graph.Y2ReferenceLine component for this graph.public ReferenceLineMarker getReferenceLineMarker()
ReferenceLineMarker component for this graph.ReferenceLineMarker component for this graph.public ReferenceLineText getReferenceLineText()
ReferenceLineText component for this graph.ReferenceLineText 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 boolean setXML(java.lang.String xmlString,
boolean reset)
throws BIIOException,
BISAXException,
BIParseException
setXML(String, int)setXML method that takes an int for the reset parameter allows you to specify how much and how far to reset the view before you apply XML.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.
public boolean setXML(java.lang.String xmlString,
int reset)
throws BIIOException,
BISAXException,
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 valuesGraphResetting returns property values in the Graph to the default values for the version that is specified in the XML.
setXML in class DataviewxmlString - 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.Dataview.RESET_NONE, Dataview.RESET_XML_PROPERTIES, Dataview.RESET_EVERYTHING
public boolean readXML(java.io.InputStream stream,
boolean reset)
throws BIIOException,
BISAXException,
BIParseException
readXML(InputStream, int)readXML method that takes an int for the reset parameter allows you to specify how much and how far to reset the view before you apply XML.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.
public boolean readXML(java.io.InputStream stream,
int reset)
throws BIIOException,
BISAXException,
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 valuesGraphResetting returns property values in the Graph to the default values for the version that is specified in the XML.
readXML in class Dataviewstream - 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.Dataview.RESET_NONE, Dataview.RESET_XML_PROPERTIES, Dataview.RESET_EVERYTHINGpublic 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.MAP_ALL, MAP_DATA, MAP_DATATEXT, MAP_LABELS, MAP_LEGEND, MAP_ORDINALLABELS, MAP_TITLES, ImagemapComponent
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), MAP_ALL, MAP_DATA, MAP_DATATEXT, MAP_LABELS, MAP_LEGEND, MAP_ORDINALLABELS, 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), MAP_ALL, MAP_DATA, MAP_DATATEXT, MAP_LABELS, MAP_LEGEND, MAP_ORDINALLABELS, MAP_TITLESpublic 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.TEXT_COMPONENTS_ALL, TEXT_COMPONENTS_NONEpublic int getScaleFontSizeForGIF()
TEXT_COMPONENTS_ALL, TEXT_COMPONENTS_NONEpublic 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 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 boolean setXMLAsString(java.lang.String xml)
throws 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 class Dataviewxml - 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.readXML(java.io.InputStream, boolean), setXML(java.lang.String, boolean)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 a List
ArrayList data = new ArrayList();
data.add(tableRow1);
data.add(tableRow2);
data.add(tableRow3);
data.add(tableRow4);
// pass the List 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 int getColumnCount()
throws EdgeOutOfRangeException
getColumnCount in interface UIGraphEdgeOutOfRangeException - If the data source does not support the the column edge.isDataRowShownAsASeries()
public int getRowCount()
throws EdgeOutOfRangeException
getRowCount in interface UIGraphEdgeOutOfRangeException - If the data source does not support the row edge.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.getDataAccessSliceLabel in interface UIGraphedge - 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.DataAccess.getSliceLabel(int, int, java.lang.String)public void beginAxisChanges()
ValueAxis class calls this method before it applies the settings of axis scaling options.beginAxisChanges in interface UIGraphValueAxispublic void endAxisChanges()
ValueAxis class calls this method after it applies the settings of axis scaling options.endAxisChanges in interface UIGraphValueAxispublic 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 class Dataviewswap - true to enable swapping, false to disable it.isSwapAllowed(), DataDirectorpublic 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 class Dataviewtrue if swapping is enabled, false if it is not.setSwapAllowed(boolean)public boolean isGroupSeriesTooltipSupported(int edge)
Application developers should not need to call this method.
isGroupSeriesTooltipSupported in interface UIGraphedge - 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_EDGEpublic DataFilter getDataFilter()
DataFilter interface.getDataFilter in interface UIGraphDataFilter that specifies how much of the DataAccess to display in this graph.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 setDrillDimension(java.lang.String dim)
dim - The name of the dimension to drill.public java.lang.String getDrillDimension()
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.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.
SP_ALWAYS, SP_NEVER, 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.SP_ALWAYS, SP_NEVER, SP_AS_NEEDED, setScrollbarPresenceSeries(int), setLegendSeriesCount(int), setAutoLayout(int), doAutoLayout(int)public void calculatePlacement()
public int getViewType()
Dataview. This method returns Dataview.VIEW_TYPE_GRAPH.getViewType in interface UIDataviewgetViewType in class DataviewDataview.VIEW_TYPE_GRAPHDataview.VIEW_TYPE_GRAPHpublic 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)
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||