org.jfree.chart.plot.XYPlot.isDomainCrosshairVisible()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(62)

本文整理了Java中org.jfree.chart.plot.XYPlot.isDomainCrosshairVisible()方法的一些代码示例,展示了XYPlot.isDomainCrosshairVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYPlot.isDomainCrosshairVisible()方法的具体详情如下:
包路径:org.jfree.chart.plot.XYPlot
类名称:XYPlot
方法名:isDomainCrosshairVisible

XYPlot.isDomainCrosshairVisible介绍

[英]Returns a flag indicating whether or not the domain crosshair is visible.
[中]返回一个标志,指示域十字线是否可见。

代码示例

代码示例来源:origin: jfree/jfreechart

/**
 * Sets the domain crosshair value and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners (provided that the
 * domain crosshair is visible).
 *
 * @param value  the new value.
 * @param notify  notify listeners?
 *
 * @see #getDomainCrosshairValue()
 */
public void setDomainCrosshairValue(double value, boolean notify) {
  this.domainCrosshairValue = value;
  if (isDomainCrosshairVisible() && notify) {
    fireChangeEvent();
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets the domain crosshair value and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners (provided that the
 * domain crosshair is visible).
 *
 * @param value  the new value.
 * @param notify  notify listeners?
 *
 * @see #getDomainCrosshairValue()
 */
public void setDomainCrosshairValue(double value, boolean notify) {
  this.domainCrosshairValue = value;
  if (isDomainCrosshairVisible() && notify) {
    fireChangeEvent();
  }
}

代码示例来源:origin: jfree/jfreechart

if (isDomainCrosshairVisible()) {
  double x = getDomainCrosshairValue();
  Paint paint = getDomainCrosshairPaint();

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

if (isDomainCrosshairVisible()) {
  double x = getDomainCrosshairValue();
  Paint paint = getDomainCrosshairPaint();

相关文章

微信公众号

最新文章

更多

XYPlot类方法