2 |
26 Feb 07 |
jari |
1 |
/* |
2 |
26 Feb 07 |
jari |
Copyright @ 1999-2003, The Institute for Genomic Research (TIGR). |
2 |
26 Feb 07 |
jari |
All rights reserved. |
2 |
26 Feb 07 |
jari |
4 |
*/ |
2 |
26 Feb 07 |
jari |
5 |
/* |
2 |
26 Feb 07 |
jari |
* $RCSfile: GraphPoint.java,v $ |
2 |
26 Feb 07 |
jari |
* $Revision: 1.2 $ |
2 |
26 Feb 07 |
jari |
* $Date: 2004/02/06 22:46:02 $ |
2 |
26 Feb 07 |
jari |
* $Author: braisted $ |
2 |
26 Feb 07 |
jari |
* $State: Exp $ |
2 |
26 Feb 07 |
jari |
11 |
*/ |
2 |
26 Feb 07 |
jari |
12 |
|
2 |
26 Feb 07 |
jari |
13 |
package org.tigr.graph; |
2 |
26 Feb 07 |
jari |
14 |
|
2 |
26 Feb 07 |
jari |
15 |
import java.awt.Color; |
2 |
26 Feb 07 |
jari |
16 |
|
2 |
26 Feb 07 |
jari |
17 |
public class GraphPoint extends GraphElement { |
2 |
26 Feb 07 |
jari |
18 |
private double x, y; |
2 |
26 Feb 07 |
jari |
19 |
private Color color; |
2 |
26 Feb 07 |
jari |
20 |
private int pointSize; |
2 |
26 Feb 07 |
jari |
21 |
|
2 |
26 Feb 07 |
jari |
22 |
public GraphPoint(double x, double y, Color color, int pointSize) { |
2 |
26 Feb 07 |
jari |
23 |
this.x = x; |
2 |
26 Feb 07 |
jari |
24 |
this.y = y; |
2 |
26 Feb 07 |
jari |
25 |
this.color = color; |
2 |
26 Feb 07 |
jari |
26 |
this.pointSize = pointSize; |
2 |
26 Feb 07 |
jari |
27 |
} |
2 |
26 Feb 07 |
jari |
28 |
|
2 |
26 Feb 07 |
jari |
29 |
public GraphPoint(double x, double y) { |
2 |
26 Feb 07 |
jari |
30 |
this.x = x; |
2 |
26 Feb 07 |
jari |
31 |
this.y = y; |
2 |
26 Feb 07 |
jari |
32 |
this.color = Color.black; |
2 |
26 Feb 07 |
jari |
33 |
this.pointSize = 1; |
2 |
26 Feb 07 |
jari |
34 |
} |
2 |
26 Feb 07 |
jari |
35 |
|
2 |
26 Feb 07 |
jari |
36 |
public void setX(double x) {this.x = x;} |
2 |
26 Feb 07 |
jari |
37 |
public double getX() {return this.x;} |
2 |
26 Feb 07 |
jari |
38 |
public void setY(double y) {this.y = y;} |
2 |
26 Feb 07 |
jari |
39 |
public double getY() {return this.y;} |
2 |
26 Feb 07 |
jari |
40 |
public void setColor(Color color) {this.color = color;} |
2 |
26 Feb 07 |
jari |
41 |
public Color getColor() {return this.color;} |
2 |
26 Feb 07 |
jari |
42 |
public void setPointSize(int pointSize) {this.pointSize = pointSize;} |
2 |
26 Feb 07 |
jari |
43 |
public int getPointSize() {return this.pointSize;} |
2 |
26 Feb 07 |
jari |
44 |
} |