当前位置: 首页>>代码示例>>Java>>正文


Java CategoryCrosshairState类代码示例

本文整理汇总了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);
        }
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:38,代码来源:AbstractCategoryItemRenderer.java

示例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);
        }
    }
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:38,代码来源:AbstractCategoryItemRenderer.java

示例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);
        }
    }
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:40,代码来源:AbstractCategoryItemRenderer.java

示例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;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:13,代码来源:CategoryItemRendererState.java

示例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;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:13,代码来源:CategoryItemRendererState.java

示例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;
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:13,代码来源:CategoryItemRendererState.java

示例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;
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:13,代码来源:CategoryItemRendererState.java


注:本文中的org.jfree.chart.plot.CategoryCrosshairState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。