gpt4 book ai didi

org.jfree.chart.renderer.xy.XYBlockRenderer.updateOffsets()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 04:38:40 27 4
gpt4 key购买 nike

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

XYBlockRenderer.updateOffsets介绍

[英]Updates the offsets to take into account the block width, height and anchor.
[中]更新偏移以考虑块的宽度、高度和定位。

代码示例

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

/**
 * Creates a new {@code XYBlockRenderer} instance with default
 * attributes.
 */
public XYBlockRenderer() {
  updateOffsets();
  this.paintScale = new LookupPaintScale();
  this.drawOutlines = true;
  this.useOutlinePaint = false; // use item paint by default
}

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

/**
 * Creates a new <code>XYBlockRenderer</code> instance with default
 * attributes.
 */
public XYBlockRenderer() {
  updateOffsets();
  this.paintScale = new LookupPaintScale();
}

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

/**
 * Sets the height of the blocks used to represent each data item and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param height  the new height, in data/axis units (must be &gt; 0.0).
 *
 * @see #getBlockHeight()
 */
public void setBlockHeight(double height) {
  if (height <= 0.0) {
    throw new IllegalArgumentException(
        "The 'height' argument must be > 0.0");
  }
  this.blockHeight = height;
  updateOffsets();
  fireChangeEvent();
}

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

/**
 * Sets the height of the blocks used to represent each data item and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param height  the new height, in data/axis units (must be > 0.0).
 *
 * @see #getBlockHeight()
 */
public void setBlockHeight(double height) {
  if (height <= 0.0) {
    throw new IllegalArgumentException(
        "The 'height' argument must be > 0.0");
  }
  this.blockHeight = height;
  updateOffsets();
  fireChangeEvent();
}

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

/**
 * Sets the width of the blocks used to represent each data item and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param width  the new width, in data/axis units (must be &gt; 0.0).
 *
 * @see #getBlockWidth()
 */
public void setBlockWidth(double width) {
  if (width <= 0.0) {
    throw new IllegalArgumentException(
        "The 'width' argument must be > 0.0");
  }
  this.blockWidth = width;
  updateOffsets();
  fireChangeEvent();
}

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

/**
 * Sets the width of the blocks used to represent each data item and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param width  the new width, in data/axis units (must be > 0.0).
 *
 * @see #getBlockWidth()
 */
public void setBlockWidth(double width) {
  if (width <= 0.0) {
    throw new IllegalArgumentException(
        "The 'width' argument must be > 0.0");
  }
  this.blockWidth = width;
  updateOffsets();
  fireChangeEvent();
}

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

/**
 * Sets the anchor point used to align a block at its (x, y) location and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param anchor  the anchor.
 *
 * @see #getBlockAnchor()
 */
public void setBlockAnchor(RectangleAnchor anchor) {
  if (anchor == null) {
    throw new IllegalArgumentException("Null 'anchor' argument.");
  }
  if (this.blockAnchor.equals(anchor)) {
    return;  // no change
  }
  this.blockAnchor = anchor;
  updateOffsets();
  fireChangeEvent();
}

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

/**
 * Sets the anchor point used to align a block at its (x, y) location and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param anchor  the anchor.
 *
 * @see #getBlockAnchor()
 */
public void setBlockAnchor(RectangleAnchor anchor) {
  Args.nullNotPermitted(anchor, "anchor");
  if (this.blockAnchor.equals(anchor)) {
    return;  // no change
  }
  this.blockAnchor = anchor;
  updateOffsets();
  fireChangeEvent();
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com