Back to project page GraphView.
The source code is released under:
GNU General Public License
If you think the Android project GraphView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * GraphView//from w w w . j a v a2 s .c om * Copyright (C) 2014 Jonas Gehring * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, * with the "Linking Exception", which can be found at the license.txt * file in this program. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * with the "Linking Exception" along with this program; if not, * write to the author Jonas Gehring <g.jjoe64@gmail.com>. */ package com.jjoe64.graphview.series; import android.provider.ContactsContract; import java.util.Date; /** * default data point implementation. * This stores the x and y values. * * @author jjoe64 */ public class DataPoint implements DataPointInterface { private double x; private double y; public DataPoint(double x, double y) { this.x=x; this.y=y; } public DataPoint(Date x, double y) { this.x = x.getTime(); this.y = y; } @Override public double getX() { return x; } @Override public double getY() { return y; } @Override public String toString() { return "["+x+"/"+y+"]"; } }