本文整理汇总了Java中org.jfree.chart.plot.CategoryCrosshairState类的典型用法代码示例。如果您正苦于以下问题:Java CategoryCrosshairState类的具体用法?Java CategoryCrosshairState怎么用?Java CategoryCrosshairState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CategoryCrosshairState类属于org.jfree.chart.plot包,在下文中一共展示了CategoryCrosshairState类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateCrosshairValues
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Considers the current (x, y) coordinate and updates the crosshair point
* if it meets the criteria (usually means the (x, y) coordinate is the
* closest to the anchor point so far).
*
* @param crosshairState the crosshair state (<code>null</code> permitted,
* but the method does nothing in that case).
* @param rowKey the row key.
* @param columnKey the column key.
* @param value the data value.
* @param datasetIndex the dataset index.
* @param transX the x-value translated to Java2D space.
* @param transY the y-value translated to Java2D space.
* @param orientation the plot orientation (<code>null</code> not
* permitted).
*
* @since 1.0.11
*/
protected void updateCrosshairValues(CategoryCrosshairState crosshairState,
Comparable rowKey, Comparable columnKey, double value,
int datasetIndex,
double transX, double transY, PlotOrientation orientation) {
ParamChecks.nullNotPermitted(orientation, "orientation");
if (crosshairState != null) {
if (this.plot.isRangeCrosshairLockedOnData()) {
// both axes
crosshairState.updateCrosshairPoint(rowKey, columnKey, value,
datasetIndex, transX, transY, orientation);
}
else {
crosshairState.updateCrosshairX(rowKey, columnKey,
datasetIndex, transX, orientation);
}
}
}
示例2: updateCrosshairValues
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Considers the current (x, y) coordinate and updates the crosshair point
* if it meets the criteria (usually means the (x, y) coordinate is the
* closest to the anchor point so far).
*
* @param crosshairState the crosshair state ({@code null} permitted,
* but the method does nothing in that case).
* @param rowKey the row key.
* @param columnKey the column key.
* @param value the data value.
* @param datasetIndex the dataset index.
* @param transX the x-value translated to Java2D space.
* @param transY the y-value translated to Java2D space.
* @param orientation the plot orientation ({@code null} not
* permitted).
*
* @since 1.0.11
*/
protected void updateCrosshairValues(CategoryCrosshairState crosshairState,
Comparable rowKey, Comparable columnKey, double value,
int datasetIndex,
double transX, double transY, PlotOrientation orientation) {
Args.nullNotPermitted(orientation, "orientation");
if (crosshairState != null) {
if (this.plot.isRangeCrosshairLockedOnData()) {
// both axes
crosshairState.updateCrosshairPoint(rowKey, columnKey, value,
datasetIndex, transX, transY, orientation);
}
else {
crosshairState.updateCrosshairX(rowKey, columnKey,
datasetIndex, transX, orientation);
}
}
}
示例3: updateCrosshairValues
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Considers the current (x, y) coordinate and updates the crosshair point
* if it meets the criteria (usually means the (x, y) coordinate is the
* closest to the anchor point so far).
*
* @param crosshairState the crosshair state (<code>null</code> permitted,
* but the method does nothing in that case).
* @param rowKey the row key.
* @param columnKey the column key.
* @param value the data value.
* @param datasetIndex the dataset index.
* @param transX the x-value translated to Java2D space.
* @param transY the y-value translated to Java2D space.
* @param orientation the plot orientation (<code>null</code> not
* permitted).
*
* @since 1.0.11
*/
protected void updateCrosshairValues(CategoryCrosshairState crosshairState,
Comparable rowKey, Comparable columnKey, double value,
int datasetIndex,
double transX, double transY, PlotOrientation orientation) {
if (orientation == null) {
throw new IllegalArgumentException("Null 'orientation' argument.");
}
if (crosshairState != null) {
if (this.plot.isRangeCrosshairLockedOnData()) {
// both axes
crosshairState.updateCrosshairPoint(rowKey, columnKey, value,
datasetIndex, transX, transY, orientation);
}
else {
crosshairState.updateCrosshairX(rowKey, columnKey,
datasetIndex, transX, orientation);
}
}
}
示例4: getCrosshairState
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Returns the crosshair state, if any.
*
* @return The crosshair state (possibly <code>null</code>).
*
* @since 1.0.11
*
* @see #setCrosshairState(CategoryCrosshairState)
*/
public CategoryCrosshairState getCrosshairState() {
return this.crosshairState;
}
示例5: setCrosshairState
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Sets the crosshair state.
*
* @param state the new state (<code>null</code> permitted).
*
* @since 1.0.11
*
* @see #getCrosshairState()
*/
public void setCrosshairState(CategoryCrosshairState state) {
this.crosshairState = state;
}
示例6: getCrosshairState
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Returns the crosshair state, if any.
*
* @return The crosshair state (possibly {@code null}).
*
* @since 1.0.11
*
* @see #setCrosshairState(CategoryCrosshairState)
*/
public CategoryCrosshairState getCrosshairState() {
return this.crosshairState;
}
示例7: setCrosshairState
import org.jfree.chart.plot.CategoryCrosshairState; //导入依赖的package包/类
/**
* Sets the crosshair state.
*
* @param state the new state ({@code null} permitted).
*
* @since 1.0.11
*
* @see #getCrosshairState()
*/
public void setCrosshairState(CategoryCrosshairState state) {
this.crosshairState = state;
}