Java Code Examples for com.github.mikephil.charting.utils.ObjectPool

The following examples show how to use com.github.mikephil.charting.utils.ObjectPool. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: StockChart-MPAndroidChart   Source File: AnimatedMoveViewJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new AnimatedMoveViewJob(null, 0, 0, null, null, 0, 0, 0);
}
 
Example 2
Source Project: StockChart-MPAndroidChart   Source File: ZoomJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
}
 
Example 3
Source Project: StockChart-MPAndroidChart   Source File: AnimatedZoomJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new AnimatedZoomJob(null, null, null, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
 
Example 4
Source Project: StockChart-MPAndroidChart   Source File: MoveViewJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new MoveViewJob(mViewPortHandler, xValue, yValue, mTrans, view);
}
 
Example 5
Source Project: StockChart-MPAndroidChart   Source File: ObjectPoolTest.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate(){
    return new TestPoolable(0,0);
}
 
Example 6
Source Project: StockChart-MPAndroidChart   Source File: ObjectPoolTest.java    License: MIT License 4 votes vote down vote up
public static ObjectPool getPool(){
    return pool;
}
 
Example 7
Source Project: Ticket-Analysis   Source File: AnimatedMoveViewJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new AnimatedMoveViewJob(null,0,0,null,null,0,0,0);
}
 
Example 8
Source Project: Ticket-Analysis   Source File: ZoomJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
}
 
Example 9
Source Project: Ticket-Analysis   Source File: AnimatedZoomJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new AnimatedZoomJob(null,null,null,null,0,0,0,0,0,0,0,0,0,0);
}
 
Example 10
Source Project: Ticket-Analysis   Source File: MoveViewJob.java    License: MIT License 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new MoveViewJob(mViewPortHandler, xValue, yValue, mTrans, view);
}
 
Example 11
Source Project: Ticket-Analysis   Source File: ObjectPoolTest.java    License: MIT License 4 votes vote down vote up
protected ObjectPool.Poolable instantiate(){
    return new TestPoolable(0,0);
}
 
Example 12
Source Project: Ticket-Analysis   Source File: ObjectPoolTest.java    License: MIT License 4 votes vote down vote up
public static ObjectPool getPool(){
    return pool;
}
 
Example 13
Source Project: android-kline   Source File: AnimatedMoveViewJob.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new AnimatedMoveViewJob(null,0,0,null,null,0,0,0);
}
 
Example 14
Source Project: android-kline   Source File: ZoomJob.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new ZoomJob(null, 0, 0, 0, 0, null, null, null);
}
 
Example 15
Source Project: android-kline   Source File: AnimatedZoomJob.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new AnimatedZoomJob(null,null,null,null,0,0,0,0,0,0,0,0,0,0);
}
 
Example 16
Source Project: android-kline   Source File: MoveViewJob.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected ObjectPool.Poolable instantiate() {
    return new MoveViewJob(mViewPortHandler, xValue, yValue, mTrans, view);
}
 
Example 17
Source Project: android-kline   Source File: ObjectPoolTest.java    License: Apache License 2.0 4 votes vote down vote up
protected ObjectPool.Poolable instantiate(){
    return new TestPoolable(0,0);
}
 
Example 18
Source Project: android-kline   Source File: ObjectPoolTest.java    License: Apache License 2.0 4 votes vote down vote up
public static ObjectPool getPool(){
    return pool;
}