Charting code import
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
|
||||
namespace LeafWeb.Web.Charter
|
||||
{
|
||||
[Serializable]
|
||||
public class XYPoint
|
||||
{
|
||||
private double x;
|
||||
private double y;
|
||||
|
||||
public XYPoint(double x1, double y1)
|
||||
{
|
||||
x = x1;
|
||||
y = y1;
|
||||
}
|
||||
|
||||
public XYPoint(String x1, String y1)
|
||||
{
|
||||
x = Double.Parse(x1);
|
||||
y = Double.Parse(y1);
|
||||
}
|
||||
|
||||
public double getX()
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
public void setX(double x1)
|
||||
{
|
||||
x = x1;
|
||||
}
|
||||
|
||||
public double getY()
|
||||
{
|
||||
return y;
|
||||
}
|
||||
|
||||
public void setY(double y1)
|
||||
{
|
||||
y = y1;
|
||||
}
|
||||
|
||||
public bool yIsInRange(double lowEnd, double highEnd)
|
||||
{
|
||||
if ((y >= lowEnd) && (y <= highEnd))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user