com.github.mikephil.charting.renderer.scatter.SquareShapeRenderer Java Examples

The following examples show how to use com.github.mikephil.charting.renderer.scatter.SquareShapeRenderer. 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 File: ScatterDataSet.java    From StockChart-MPAndroidChart with MIT License 6 votes vote down vote up
public static IShapeRenderer getRendererForShape(ScatterChart.ScatterShape shape) {

        switch (shape) {
            case SQUARE:
                return new SquareShapeRenderer();
            case CIRCLE:
                return new CircleShapeRenderer();
            case TRIANGLE:
                return new TriangleShapeRenderer();
            case CROSS:
                return new CrossShapeRenderer();
            case X:
                return new XShapeRenderer();
            case CHEVRON_UP:
                return new ChevronUpShapeRenderer();
            case CHEVRON_DOWN:
                return new ChevronDownShapeRenderer();
        }

        return null;
    }
 
Example #2
Source File: RealmScatterDataSet.java    From MPAndroidChart-Realm with Apache License 2.0 6 votes vote down vote up
public static IShapeRenderer getRendererForShape(ScatterChart.ScatterShape shape) {

        switch (shape) {
            case SQUARE:
                return new SquareShapeRenderer();
            case CIRCLE:
                return new CircleShapeRenderer();
            case TRIANGLE:
                return new TriangleShapeRenderer();
            case CROSS:
                return new CrossShapeRenderer();
            case X:
                return new XShapeRenderer();
            case CHEVRON_UP:
                return new ChevronUpShapeRenderer();
            case CHEVRON_DOWN:
                return new ChevronDownShapeRenderer();
        }

        return null;
    }
 
Example #3
Source File: ScatterDataSet.java    From Ticket-Analysis with MIT License 5 votes vote down vote up
public static IShapeRenderer getRendererForShape(ScatterChart.ScatterShape shape) {

        switch (shape) {
            case SQUARE: return new SquareShapeRenderer();
            case CIRCLE: return new CircleShapeRenderer();
            case TRIANGLE: return new TriangleShapeRenderer();
            case CROSS: return new CrossShapeRenderer();
            case X: return new XShapeRenderer();
            case CHEVRON_UP: return new ChevronUpShapeRenderer();
            case CHEVRON_DOWN: return new ChevronDownShapeRenderer();
        }

        return null;
    }
 
Example #4
Source File: ScatterDataSet.java    From android-kline with Apache License 2.0 5 votes vote down vote up
public static IShapeRenderer getRendererForShape(ScatterChart.ScatterShape shape) {

        switch (shape) {
            case SQUARE: return new SquareShapeRenderer();
            case CIRCLE: return new CircleShapeRenderer();
            case TRIANGLE: return new TriangleShapeRenderer();
            case CROSS: return new CrossShapeRenderer();
            case X: return new XShapeRenderer();
            case CHEVRON_UP: return new ChevronUpShapeRenderer();
            case CHEVRON_DOWN: return new ChevronDownShapeRenderer();
        }

        return null;
    }
 
Example #5
Source File: ScatterChart.java    From NetKnight with Apache License 2.0 5 votes vote down vote up
/**
 * Init default ShapeRenderers.
 */
protected void initShapeRenderers() {
    shapeRendererList = new HashMap<>();

    shapeRendererList.put(ScatterShape.SQUARE.toString(), new SquareShapeRenderer());
    shapeRendererList.put(ScatterShape.CIRCLE.toString(), new CircleShapeRenderer());
    shapeRendererList.put(ScatterShape.TRIANGLE.toString(), new TriangleShapeRenderer());
    shapeRendererList.put(ScatterShape.CROSS.toString(), new CrossShapeRenderer());
    shapeRendererList.put(ScatterShape.X.toString(), new XShapeRenderer());
    shapeRendererList.put(ScatterShape.CHEVRON_UP.toString(), new ChevronUpShapeRenderer());
    shapeRendererList.put(ScatterShape.CHEVRON_DOWN.toString(), new ChevronDownShapeRenderer());
}