-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGraphLabel.java
47 lines (36 loc) · 1 KB
/
GraphLabel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package graphy;
/**
* @author Jeremy Cerise
* @version 4/16/11
*
* A GraphLabel represents a piece of text that is displayed on on a Graph. It
* contains an x and y coordinate, and the string to draw at those coordinates.
*/
public class GraphLabel {
private String labelText;
private float xPosition;
private float yPosition;
public GraphLabel(String labelText, float xPosition, float yPosition){
this.labelText = labelText;
this.xPosition = xPosition;
this.yPosition = yPosition;
}
public void setLabelText(String labelText) {
this.labelText = labelText;
}
public void setxPosition(float xPosition) {
this.xPosition = xPosition;
}
public void setyPosition(float yPosition) {
this.yPosition = yPosition;
}
public String getLabelText() {
return labelText;
}
public float getxPosition() {
return xPosition;
}
public float getyPosition() {
return yPosition;
}
}