177 lines
3.1 KiB
Java
177 lines
3.1 KiB
Java
package ch.psi.plot.xyz;
|
|
|
|
/**
|
|
* Bean to hold surface plot metadata
|
|
*/
|
|
public class SurfacePlotMetadata {
|
|
|
|
private String xAxisLabel = "";
|
|
private String yAxisLabel = "";
|
|
private String zAxisLabel = "";
|
|
|
|
private int numberOfBinsX;
|
|
private double minValueX;
|
|
private double maxValueX;
|
|
|
|
private int numberOfBinsY;
|
|
private double minValueY;
|
|
private double maxValueY;
|
|
|
|
private double scaling = 15; // Default value
|
|
private double rotationAngle = 220; // Default value
|
|
private double elevationAngle = 20; // Default value
|
|
|
|
public SurfacePlotMetadata(){
|
|
}
|
|
|
|
public SurfacePlotMetadata(String xAxisLabel, String yAxisLabel, String zAxisLabel){
|
|
this.xAxisLabel = xAxisLabel;
|
|
this.yAxisLabel = yAxisLabel;
|
|
this.zAxisLabel = zAxisLabel;
|
|
}
|
|
|
|
/**
|
|
* Get x-axis label
|
|
* @return Label x-axis
|
|
*/
|
|
public String getxAxisLabel() {
|
|
return xAxisLabel;
|
|
}
|
|
|
|
public void setxAxisLabel(String xAxisLabel) {
|
|
this.xAxisLabel = xAxisLabel;
|
|
}
|
|
|
|
/**
|
|
* Get y-axis label
|
|
* @return Label y-axis
|
|
*/
|
|
public String getyAxisLabel() {
|
|
return yAxisLabel;
|
|
}
|
|
|
|
public void setyAxisLabel(String yAxisLabel) {
|
|
this.yAxisLabel = yAxisLabel;
|
|
}
|
|
|
|
/**
|
|
* Get z-axis label
|
|
* @return Label z-axis
|
|
*/
|
|
public String getzAxisLabel() {
|
|
return zAxisLabel;
|
|
}
|
|
|
|
public void setzAxisLabel(String zAxisLabel) {
|
|
this.zAxisLabel = zAxisLabel;
|
|
}
|
|
|
|
/**
|
|
* Get scaling
|
|
* @return Scaling factor
|
|
*/
|
|
public double getScaling() {
|
|
return scaling;
|
|
}
|
|
|
|
public void setScaling(double scaling) {
|
|
this.scaling = scaling;
|
|
}
|
|
|
|
/**
|
|
* Get rotation angle
|
|
* @return Rotation angle
|
|
*/
|
|
public double getRotationAngle() {
|
|
return rotationAngle;
|
|
}
|
|
|
|
public void setRotationAngle(double rotationAngle) {
|
|
this.rotationAngle = rotationAngle;
|
|
}
|
|
|
|
/**
|
|
* Get elevation angle
|
|
* @return Elevation angle
|
|
*/
|
|
public double getElevationAngle() {
|
|
return elevationAngle;
|
|
}
|
|
|
|
public void setElevationAngle(double elevationAngle) {
|
|
this.elevationAngle = elevationAngle;
|
|
}
|
|
|
|
/**
|
|
* Get number of bins of the x-axis
|
|
* @return Number of bins of the x-axis
|
|
*/
|
|
public int getNumberOfBinsX() {
|
|
return numberOfBinsX;
|
|
}
|
|
|
|
public void setNumberOfBinsX(int numberOfBinsX) {
|
|
this.numberOfBinsX = numberOfBinsX;
|
|
}
|
|
|
|
/**
|
|
* Get lowest x-axis value
|
|
* @return
|
|
*/
|
|
public double getMinValueX() {
|
|
return minValueX;
|
|
}
|
|
|
|
public void setMinValueX(double minValueX) {
|
|
this.minValueX = minValueX;
|
|
}
|
|
|
|
/**
|
|
* Get highest x-axis value
|
|
* @return
|
|
*/
|
|
public double getMaxValueX() {
|
|
return maxValueX;
|
|
}
|
|
|
|
public void setMaxValueX(double maxValueX) {
|
|
this.maxValueX = maxValueX;
|
|
}
|
|
|
|
/**
|
|
* Get number of bins of the y-axis
|
|
* @return
|
|
*/
|
|
public int getNumberOfBinsY() {
|
|
return numberOfBinsY;
|
|
}
|
|
|
|
public void setNumberOfBinsY(int numberOfBinsY) {
|
|
this.numberOfBinsY = numberOfBinsY;
|
|
}
|
|
|
|
/**
|
|
* Get lowest number of the y-axis
|
|
* @return
|
|
*/
|
|
public double getMinValueY() {
|
|
return minValueY;
|
|
}
|
|
|
|
public void setMinValueY(double minValueY) {
|
|
this.minValueY = minValueY;
|
|
}
|
|
|
|
/**
|
|
* Get highest y-axis value
|
|
* @return
|
|
*/
|
|
public double getMaxValueY() {
|
|
return maxValueY;
|
|
}
|
|
|
|
public void setMaxValueY(double maxValueY) {
|
|
this.maxValueY = maxValueY;
|
|
}
|
|
}
|