public class FlexChart extends FlexObject
You typically do not use the ChartBase class directly. Instead you use one of its subclasses, such as PlotChart or BubbleChart. It acts as the base class for the common chart types provided in the mx.charts package.
This class defines a number of CSS styles and properties that provide easy access to the more common features of the framework.
A chart's minimum size is 20 x 20 pixels. A chart's maximum size is unbounded. A chart's preferred size is 400 x 400 pixels.
Modifier | Constructor and Description |
---|---|
protected |
FlexChart(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexChart with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
dragCancel()
Defines the value of the type property of the event object for a dragComplete event.
|
void |
dragCancel(ModifierKey keyModifier)
Defines the value of the type property of the event object for a dragComplete event.
|
void |
dragDrop(String draggedItem)
Defines the value of the type property of the event object for a dragDrop event.
|
void |
dragDrop(String draggedItem,
double localX)
Defines the value of the type property of the event object for a dragDrop event.
|
void |
dragDrop(String draggedItem,
double localX,
double localY)
Defines the value of the type property of the event object for a dragDrop event.
|
void |
dragDrop(String draggedItem,
double localX,
double localY,
ModifierKey keyModifier)
Defines the value of the type property of the event object for a dragDrop event.
|
void |
dragStart(String draggedItem)
Defines the value of the type property of the event object for a dragStart event.
|
void |
dragStart(String draggedItem,
double localX)
Defines the value of the type property of the event object for a dragStart event.
|
void |
dragStart(String draggedItem,
double localX,
double localY)
Defines the value of the type property of the event object for a dragStart event.
|
List<String> |
getColumnNames()
Gets a list containing the names of all columns in the data.
|
String |
getDataTipMode()
Gets how Flex displays DataTip controls for the chart.
|
String |
getDescription()
Gets a short description of the data in the chart.
|
int |
getFirstVisibleRow()
Gets the index of the first visible child.
|
String |
getFontFamily()
Gets the name of the font to use.
|
int |
getFontSize()
Gets the height of the text, in pixels.
|
int |
getLastVisibleRow()
Gets the index of the last visible child.
|
int |
getMaximumDataTipCount()
Gets the maximum number of datatips a chart will show.
|
int |
getMouseSensitivity()
Gets the distance, in pixels, that Flex considers a data point to be under the mouse pointer when the pointer moves around a chart.
|
int |
getNumColumns()
Gets the total number of columns in the data available.
|
int |
getNumRows()
Gets the total number of rows of data available.
|
int |
getPaddingBottom()
Gets the number of pixels between the chart's bottom border and its content area.
|
int |
getPaddingLeft()
Gets the number of pixels between the control's left border and the left edge of its content area.
|
int |
getPaddingRight()
Gets the number of pixels between the control's right border and the right edge of its content area.
|
int |
getPaddingTop()
Gets the number of pixels between the chart's top border and its content area.
|
int |
getSelectedChartItem()
Gets the selected ChartItem in the chart.
|
List<Integer> |
getSelectedChartItems()
Gets an array of all the selected ChartItem objects in the chart.
|
String |
getSelectionMode()
Gets whether ChartItem objects can be selected.
|
List<List<String>> |
getValues(int start,
int end)
Returns a matrix containing the automation values of all parts of the components.
|
boolean |
isClipContent()
Gets whether Flex clips the chart to the area bounded by the axes.
|
boolean |
isDragEnabled()
Gets whether you can drag items out of this chart and drop them on other controls.
|
boolean |
isDropEnabled()
Gets whether dragged items can be dropped onto the chart.
|
boolean |
isShowDataTips()
Gets whether DataTip controls for the chart show.
|
boolean |
isShowDataTipTargets()
Gets whether to show targets over the datapoints when showDataTips is set to true.
|
void |
select(List<String> selectionInfo)
Defines the value of the type property of the event object for a headerRelease event, which indicates that the user pressed and released the mouse on a column header.
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected FlexChart(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexChartdesktop
- the desktop on which this object livespublic void dragCancel()
public void dragCancel(ModifierKey keyModifier)
keyModifier
- the key modifiers (for example, the Ctrl key) to usepublic void dragDrop(String draggedItem)
draggedItem
- the item being draggedpublic void dragDrop(String draggedItem, double localX)
draggedItem
- the item being draggedlocalX
- the horizontal coordinate at which the event occurred relative to the containing spritepublic void dragDrop(String draggedItem, double localX, double localY)
draggedItem
- the item being draggedlocalX
- the horizontal coordinate at which the event occurred relative to the containing spritelocalY
- the vertical coordinate at which the event occurred relative to the containing spritepublic void dragDrop(String draggedItem, double localX, double localY, ModifierKey keyModifier)
draggedItem
- the item being draggedlocalX
- the horizontal coordinate at which the event occurred relative to the containing spritelocalY
- the vertical coordinate at which the event occurred relative to the containing spritekeyModifier
- the key modifiers (for example, the Ctrl key) to usepublic void dragStart(String draggedItem)
draggedItem
- the item being draggedpublic void dragStart(String draggedItem, double localX)
draggedItem
- the item being draggedlocalX
- the horizontal coordinate at which the event occurred relative to the containing spritepublic void dragStart(String draggedItem, double localX, double localY)
draggedItem
- the item being draggedlocalX
- the horizontal coordinate at which the event occurred relative to the containing spritelocalY
- the vertical coordinate at which the event occurred relative to the containing spritepublic List<List<String>> getValues(int start, int end)
The return value is an array of rows, each of which is an array of items.
start
- the index of the starting child. The default value is 0.end
- the index of the ending child. The default value is 0.public void select(List<String> selectionInfo)
selectionInfo
- whether the event can bubble up the display list hierarchypublic boolean isClipContent()
public List<String> getColumnNames()
public String getDataTipMode()
DataTip controls are similar to ToolTip controls, except that they display an appropriate value that represents the nearest chart data point under the mouse pointer.
Possible values include single
and multiple
. Use single
to show the data point closest to the mouse. Use multiple
to show the data tips within the range of the mouse cursor.
public String getDescription()
When accessibility is enabled, screen readers use this property to describe the chart. This string defaults to an empty string.
public boolean isDragEnabled()
If true, dragging is enabled for the chart. If the dropEnabled property is also true, you can drag items and drop them in the chart to reorder the items. The default value is false.
public boolean isDropEnabled()
If you set this property to true, the chart accepts all data formats, and assumes that the dragged data matches the format of the data in the data provider. To explicitly check the data format of the data being dragged, you must handle one or more of the drag events, such as dragOver, and call the preventDefault() method of the DragEvent to customize the way the list class accepts dropped data. When dropEnabled is set to true, Flex automatically calls the showDropFeedback() and hideDropFeedback() methods to display the drop indicator. The default value is false.
public int getFirstVisibleRow()
public String getFontFamily()
Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is Verdana
.
public int getFontSize()
public int getLastVisibleRow()
public int getMaximumDataTipCount()
If more datapoints are in range of the chart than allowed by this style, they will be prioritized by distance, with the closest showing first. The default value is NaN, which shows whatever datatips are within range.
public int getMouseSensitivity()
Flex considers any data point less than mouseSensitivity pixels away to be under the mouse pointer. This value is also used by the findDataPoints method. The default value is 5.
public int getNumColumns()
public int getNumRows()
public int getPaddingBottom()
public int getPaddingLeft()
public int getPaddingRight()
public int getPaddingTop()
public int getSelectedChartItem()
public List<Integer> getSelectedChartItems()
public String getSelectionMode()
Possible values are none, single, or multiple. Set to none to prevent chart items from being selected. Set to single to allow only one item to be selected at a time. Set to multiple to allow one or more chart items to be selected at a time. The default value is none.
public boolean isShowDataTips()
DataTip controls are similar to tool tips, except that they display an appropriate value that represents the nearest chart data point under the mouse pointer.
public boolean isShowDataTipTargets()
Copyright 2009-2012 Micro Focus. All Rights Reserved.