98 lines
1.7 KiB
Java
98 lines
1.7 KiB
Java
/**
|
|
*
|
|
* Copyright 2010 Paul Scherrer Institute. All rights reserved.
|
|
*
|
|
* This code is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This code 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 Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this code. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
package ch.psi.plot.plot.xy;
|
|
|
|
/**
|
|
* Bean for storing a LinePlot marker information
|
|
* @author ebner
|
|
*
|
|
*/
|
|
public class Marker {
|
|
|
|
/**
|
|
* Label of the marker
|
|
*/
|
|
private String label;
|
|
/**
|
|
* X coordinate of the marker
|
|
*/
|
|
private Double x;
|
|
/**
|
|
* Y coordinate of the marker
|
|
*/
|
|
private Double y;
|
|
|
|
|
|
/**
|
|
* Constructor
|
|
* @param label
|
|
* @param x
|
|
* @param y
|
|
*/
|
|
public Marker(String label, Double x, Double y) {
|
|
this.label = label;
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
/**
|
|
* @return the label
|
|
*/
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
/**
|
|
* @param label the label to set
|
|
*/
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
/**
|
|
* @return the x
|
|
*/
|
|
public Double getX() {
|
|
return x;
|
|
}
|
|
|
|
/**
|
|
* @param x the x to set
|
|
*/
|
|
public void setX(Double x) {
|
|
this.x = x;
|
|
}
|
|
|
|
/**
|
|
* @return the y
|
|
*/
|
|
public Double getY() {
|
|
return y;
|
|
}
|
|
|
|
/**
|
|
* @param y the y to set
|
|
*/
|
|
public void setY(Double y) {
|
|
this.y = y;
|
|
}
|
|
|
|
}
|