public class FlexAxisRenderer extends FlexObject
AxisRenderer 对象继承其在封闭图表对象中的某些可视属性。标签和标题的文本格式默认为呈现器的 CSS 文本属性。您可通过指定 AxisRenderer 或封闭图表上的 axisTitleStyleName 单独控制轴标题的格式化。
Modifier | Constructor and Description |
---|---|
protected |
FlexAxisRenderer(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexAxisRenderer。
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDropLabels()
获取 AxisRenderer 是否应在必要时放置标签以正确布局。
|
boolean |
canStagger()
获取 是否可以交错两个标签行上的标签。
|
List<String> |
getColumnNames()
获取 包含数据中所有列的名称的列表。
|
int |
getFirstVisibleRow()
获取 第一个可见子级的索引。
|
double |
getHeightLimit()
获取 轴呈现器在图表上占用的最大空间(像素)。
|
double |
getLabelGap()
获取 刻度线尾部与标签顶部的间距(像素)。
|
double |
getLabelRotation()
获取 标签旋转。
|
int |
getLastVisibleRow()
获取 最后一个可见子级的索引。
|
double |
getLength()
获取 轴在屏幕坐标上的长度。
|
double |
getMinorTickLength()
获取 轴上次要刻度线的长度(像素)。
|
String |
getMinorTickPlacement()
获取 可绘制次要刻度线的值。
|
List<Double> |
getMinorTicks()
获取 指定了 Flex 在轴上的何处绘制次要刻度线的数组。
|
int |
getNumColumns()
获取 可用数据中的总列数。
|
int |
getNumRows()
获取 可用数据的总行数。
|
String |
getPlacement()
获取 显示 axisRenderer 的图表侧。
|
double |
getTickLength()
获取 轴上刻度线的长度(像素)。
|
String |
getTickPlacement()
获取 可绘制刻度线的值。
|
List<Double> |
getTicks()
获取 指定了 Flex 在轴上的何处绘制刻度线的数组。
|
List<List<String>> |
getValues(int start,
int end)
返回矩阵,其包含所有组件部分的自动化值。
|
boolean |
isShowLabels()
获取 标签是否在轴上显示。
|
boolean |
isShowLine()
获取 是否显示轴。
|
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 FlexAxisRenderer(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 FlexAxisRenderer 的句柄desktop
- 此对象所在的桌面public List<List<String>> getValues(int start, int end)
返回值是一个行数组,每个行数组是一个项目数组。
start
- 开始子级的索引。默认值为 0。end
- 结束子级的索引。默认值为 0。public boolean canDropLabels()
设为 true 会导致 AxisRenderer 在呈现时放置重叠标签。标签始终以固定间隔呈现。必要时,AxisRenderer 将每隔一个或每隔两个呈现一个标签,但从不放置两个或更多连续标签。
设为 false 会导致 AxisRenderer 使用其他方案(旋转、缩放)对标签进行布局。
如果您不明确设置此样式,AxisRenderer 将基于呈现轴的类型默认为相应值。
public boolean canStagger()
public int getFirstVisibleRow()
public double getHeightLimit()
public double getLabelGap()
public double getLabelRotation()
如果标签以设备字体呈现,则始终在水平方向绘制标签。如果此样式为任何负值,则 AxisRenderer 会确定一个最佳值以在不重叠的情况下呈现最小区域中的标签。
public int getLastVisibleRow()
public double getLength()
public double getMinorTickLength()
public String getMinorTickPlacement()
内部
、外部
、交叉
和无
。public int getNumColumns()
public int getNumRows()
public String getPlacement()
public boolean isShowLabels()
public boolean isShowLine()
public double getTickLength()
public String getTickPlacement()
内部
、外部
、交叉
和无
。Copyright 2009-2012 Micro Focus. All Rights Reserved.