org.jfree.data.Range.shift()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(210)

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

Range.shift介绍

[英]Shifts the range by the specified amount.
[中]将范围移动指定的量。

代码示例

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

/**
 * Shifts the range by the specified amount.
 *
 * @param base  the base range ({@code null} not permitted).
 * @param delta  the shift amount.
 *
 * @return A new range.
 */
public static Range shift(Range base, double delta) {
  return shift(base, delta, false);
}

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

/**
 * Shifts the range by the specified amount.
 *
 * @param base  the base range (<code>null</code> not permitted).
 * @param delta  the shift amount.
 *
 * @return A new range.
 */
public static Range shift(Range base, double delta) {
  return shift(base, delta, false);
}

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

Range heightRange2 = Range.shift(heightRange, -h[0], false);
  RectangleConstraint c2 = new RectangleConstraint(widthRange,
      heightRange2);
  h[1] = size.height;
Range heightRange3 = Range.shift(heightRange, -(h[0] + h[1]));
if (this.leftBlock != null) {
  RectangleConstraint c3 = new RectangleConstraint(widthRange,
  h[2] = size.height;
Range widthRange2 = Range.shift(widthRange, -w[2], false);
if (this.rightBlock != null) {
  RectangleConstraint c4 = new RectangleConstraint(widthRange2,
Range widthRange3 = Range.shift(widthRange, -(w[2] + w[3]), false);
if (this.centerBlock != null) {
  RectangleConstraint c5 = new RectangleConstraint(widthRange3,

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

Range heightRange2 = Range.shift(heightRange, -h[0], false);
  RectangleConstraint c2 = new RectangleConstraint(widthRange,
      heightRange2);
  h[1] = size.height;
Range heightRange3 = Range.shift(heightRange, -(h[0] + h[1]));
if (this.leftBlock != null) {
  RectangleConstraint c3 = new RectangleConstraint(widthRange,
  h[2] = size.height;
Range widthRange2 = Range.shift(widthRange, -w[2], false);
if (this.rightBlock != null) {
  RectangleConstraint c4 = new RectangleConstraint(widthRange2,
Range widthRange3 = Range.shift(widthRange, -(w[2] + w[3]), false);
if (this.centerBlock != null) {
  RectangleConstraint c5 = new RectangleConstraint(widthRange3,

相关文章