gpt4 book ai didi

com.github.mikephil.charting.jobs.ZoomJob类的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 11:19:31 30 4
gpt4 key购买 nike

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

ZoomJob介绍

[英]Created by Philipp Jahoda on 19/02/16.
[中]由菲利普·贾霍达于2016年2月19日创作。

代码示例

代码示例来源:origin: PhilJay/MPAndroidChart

@Override
  protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
  }
}

代码示例来源:origin: PhilJay/MPAndroidChart

/**
 * Zooms in or out by the given scale factor.
 * x and y are the values (NOT PIXELS) of the zoom center..
 *
 * @param scaleX
 * @param scaleY
 * @param xValue
 * @param yValue
 * @param axis   the axis relative to which the zoom should take place
 */
public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis) {
  Runnable job = ZoomJob.getInstance(mViewPortHandler, scaleX, scaleY, xValue, yValue, getTransformer(axis), axis, this);
  addViewportJob(job);
}

代码示例来源:origin: PhilJay/MPAndroidChart

@Override
public void run() {
  Matrix save = mRunMatrixBuffer;
  mViewPortHandler.zoom(scaleX, scaleY, save);
  mViewPortHandler.refresh(save, view, false);
  float yValsInView = ((BarLineChartBase) view).getAxis(axisDependency).mAxisRange / mViewPortHandler.getScaleY();
  float xValsInView = ((BarLineChartBase) view).getXAxis().mAxisRange / mViewPortHandler.getScaleX();
  pts[0] = xValue - xValsInView / 2f;
  pts[1] = yValue + yValsInView / 2f;
  mTrans.pointValuesToPixel(pts);
  mViewPortHandler.translate(pts, save);
  mViewPortHandler.refresh(save, view, false);
  ((BarLineChartBase) view).calculateOffsets();
  view.postInvalidate();
  recycleInstance(this);
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

@Override
public void run() {
  Matrix save = mRunMatrixBuffer;
  mViewPortHandler.zoom(scaleX, scaleY, save);
  mViewPortHandler.refresh(save, view, false);
  float yValsInView = ((BarLineChartBase) view).getAxis(axisDependency).mAxisRange / mViewPortHandler.getScaleY();
  float xValsInView = ((BarLineChartBase) view).getXAxis().mAxisRange / mViewPortHandler.getScaleX();
  pts[0] = xValue - xValsInView / 2f;
  pts[1] = yValue + yValsInView / 2f;
  mTrans.pointValuesToPixel(pts);
  mViewPortHandler.translate(pts, save);
  mViewPortHandler.refresh(save, view, false);
  ((BarLineChartBase) view).calculateOffsets();
  view.postInvalidate();
  recycleInstance(this);
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

@Override
  protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
  }
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

/**
 * Zooms in or out by the given scale factor.
 * x and y are the values (NOT PIXELS) of the zoom center..
 *
 * @param scaleX
 * @param scaleY
 * @param xValue
 * @param yValue
 * @param axis   the axis relative to which the zoom should take place
 */
public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis) {
  Runnable job = ZoomJob.getInstance(mViewPortHandler, scaleX, scaleY, xValue, yValue, getTransformer(axis), axis, this);
  addViewportJob(job);
}

代码示例来源:origin: WenWangAndroid/ChartManager

@Override
public void run() {
  Matrix save = mRunMatrixBuffer;
  mViewPortHandler.zoom(scaleX, scaleY, save);
  mViewPortHandler.refresh(save, view, false);
  float yValsInView = ((BarLineChartBase) view).getAxis(axisDependency).mAxisRange / mViewPortHandler.getScaleY();
  float xValsInView = ((BarLineChartBase) view).getXAxis().mAxisRange / mViewPortHandler.getScaleX();
  pts[0] = xValue - xValsInView / 2f;
  pts[1] = yValue + yValsInView / 2f;
  mTrans.pointValuesToPixel(pts);
  mViewPortHandler.translate(pts, save);
  mViewPortHandler.refresh(save, view, false);
  ((BarLineChartBase) view).calculateOffsets();
  view.postInvalidate();
  recycleInstance(this);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

@Override
  protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
  }
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

/**
 * Zooms in or out by the given scale factor.
 * x and y are the values (NOT PIXELS) of the zoom center..
 *
 * @param scaleX
 * @param scaleY
 * @param xValue
 * @param yValue
 * @param axis   the axis relative to which the zoom should take place
 */
public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis) {
  Runnable job = ZoomJob.getInstance(mViewPortHandler, scaleX, scaleY, xValue, yValue, getTransformer(axis), axis, this);
  addViewportJob(job);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

@Override
public void run() {
  Matrix save = mRunMatrixBuffer;
  mViewPortHandler.zoom(scaleX, scaleY, save);
  mViewPortHandler.refresh(save, view, false);
  float yValsInView = ((BarLineChartBase) view).getAxis(axisDependency).mAxisRange / mViewPortHandler.getScaleY();
  float xValsInView = ((BarLineChartBase) view).getXAxis().mAxisRange / mViewPortHandler.getScaleX();
  pts[0] = xValue - xValsInView / 2f;
  pts[1] = yValue + yValsInView / 2f;
  mTrans.pointValuesToPixel(pts);
  mViewPortHandler.translate(pts, save);
  mViewPortHandler.refresh(save, view, false);
  ((BarLineChartBase) view).calculateOffsets();
  view.postInvalidate();
  recycleInstance(this);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

@Override
  protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
  }
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

/**
 * Zooms in or out by the given scale factor.
 * x and y are the values (NOT PIXELS) of the zoom center..
 *
 * @param scaleX
 * @param scaleY
 * @param xValue
 * @param yValue
 * @param axis   the axis relative to which the zoom should take place
 */
public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis) {
  Runnable job = ZoomJob.getInstance(mViewPortHandler, scaleX, scaleY, xValue, yValue, getTransformer(axis), axis, this);
  addViewportJob(job);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

@Override
public void run() {
  Matrix save = mRunMatrixBuffer;
  mViewPortHandler.zoom(scaleX, scaleY, save);
  mViewPortHandler.refresh(save, view, false);
  float yValsInView = ((BarLineChartBase) view).getAxis(axisDependency).mAxisRange / mViewPortHandler.getScaleY();
  float xValsInView = ((BarLineChartBase) view).getXAxis().mAxisRange / mViewPortHandler.getScaleX();
  pts[0] = xValue - xValsInView / 2f;
  pts[1] = yValue + yValsInView / 2f;
  mTrans.pointValuesToPixel(pts);
  mViewPortHandler.translate(pts, save);
  mViewPortHandler.refresh(save, view, false);
  ((BarLineChartBase) view).calculateOffsets();
  view.postInvalidate();
  recycleInstance(this);
}

代码示例来源:origin: WenWangAndroid/ChartManager

@Override
  protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
  }
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * Zooms in or out by the given scale factor.
 * x and y are the values (NOT PIXELS) of the zoom center..
 *
 * @param scaleX
 * @param scaleY
 * @param xValue
 * @param yValue
 * @param axis   the axis relative to which the zoom should take place
 */
public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis) {
  Runnable job = ZoomJob.getInstance(mViewPortHandler, scaleX, scaleY, xValue, yValue, getTransformer(axis), axis, this);
  addViewportJob(job);
}

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