All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.diirt.datasource.graphene.Graph2DResult Maven / Gradle / Ivy

There is a newer version: 3.1.7
Show newest version
/**
 * Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
 * All rights reserved. Use is subject to license terms. See LICENSE.TXT
 */
package org.diirt.datasource.graphene;

import org.diirt.vtype.VImage;
import org.diirt.vtype.VType;

/**
 *
 * @author carcassi
 */
public class Graph2DResult {
    private final VType data;
    private final VImage image;
    private final GraphDataRange xRange;
    private final GraphDataRange yRange;
    private final int focusDataIndex;
    private final VType selectedData;

    Graph2DResult(VType data, VImage image, GraphDataRange xRange, GraphDataRange yRange, int focusDataIndex) {
        this(data, image, xRange, yRange, focusDataIndex, null);
    }

    Graph2DResult(VType data, VImage image, GraphDataRange xRange, GraphDataRange yRange, int focusDataIndex, VType selectedData) {
        this.data = data;
        this.image = image;
        this.xRange = xRange;
        this.yRange = yRange;
        this.focusDataIndex = focusDataIndex;
        this.selectedData = selectedData;
    }
    
    public VType getData() {
        return data;
    }
    
    public int focusDataIndex() {
        return focusDataIndex;
    }

    public VImage getImage() {
        return image;
    }

    public GraphDataRange getxRange() {
        return xRange;
    }

    public GraphDataRange getyRange() {
        return yRange;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy