/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package net.sf.surfaceplot; /** * * @author salagarsamy */ public class ExampleSurfaceModel implements ISurfacePlotModel { public float calculateZ(float x, float y) { return (float)(x * Math.sin(y)); } public int getPlotMode() { return ISurfacePlotModel.PLOT_MODE_SPECTRUM; } public boolean isBoxed() { return true; } public boolean isMesh() { return true; } public boolean isScaleBox() { return false; } public boolean isDisplayXY() { return true; } public boolean isDisplayZ() { return true; } public boolean isDisplayGrids() { return true; } public int getCalcDivisions() { return 50; } public int getDispDivisions() { return 50; } public float getXMin() { return 0; } public float getXMax() { return 1; } public float getYMin() { return 0; } public float getYMax() { return 6; } public float getZMin() { return -1.5f; } public float getZMax() { return 1.5f; } public String getXAxisLabel() { return "X"; } public String getYAxisLabel() { return "Y"; } public String getZAxisLabel() { return "Z"; } }