public class SurfaceModelCanvas extends Object implements SurfaceModel
Modifier and Type | Class and Description |
---|---|
static interface |
SurfaceModelCanvas.Plotter |
class |
SurfaceModelCanvas.PlotterImpl
Parses defined functions and calculates surface vertices
|
SurfaceModel.PlotColor, SurfaceModel.PlotType
Constructor and Description |
---|
SurfaceModelCanvas() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener ol) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
autoScale() |
double |
ceil(double d,
int digits) |
void |
exportCSV(File file) |
double |
floor(double d,
int digits) |
float |
get2DScaling() |
boolean |
getAutoScaleXY() |
Color |
getAxesFontColor() |
Font |
getAxisFont() |
int |
getCalcDivisions() |
SurfaceColor |
getColorModel() |
int |
getContourLines() |
int |
getDispDivisions() |
boolean |
getDisplayXY() |
boolean |
getDisplayZ() |
float |
getDistance() |
float |
getElevationAngle() |
Color |
getFontColorLabel() |
float |
getFrameScale() |
float |
getInitScaling() |
JPoint[] |
getJPoints()
Return points for plotting
|
Color |
getLabelColor() |
Font |
getLabelFont() |
double |
getLabelOffsetX() |
double |
getLabelOffsetY() |
double |
getLabelOffsetZ() |
float |
getPenWidth() |
SurfaceModel.PlotColor |
getPlotColor() |
SurfaceModelCanvas.PlotterImpl |
getPlotter() |
SurfaceModel.PlotType |
getPlotType() |
Projector |
getProjector() |
float |
getRotationAngle() |
SurfaceVertex[][] |
getSurfaceVertex() |
Font |
getTicFont() |
float |
getTicOffset() |
String |
getXlabel() |
float |
getXMax() |
float |
getXMin() |
String |
getYlabel() |
float |
getYMax() |
float |
getYMin() |
String |
getZlabel() |
float |
getZMax() |
float |
getZMin() |
boolean |
isAutoScaleZ() |
boolean |
isBarsType() |
boolean |
isBothFunction() |
boolean |
isBoxed()
Determines whether to show bounding box.
|
boolean |
isContourType() |
boolean |
isDataAvailable()
Sets data availability flag
|
boolean |
isDensityType() |
boolean |
isDisplayGrids()
Determines whether to show face grids.
|
boolean |
isDisplayXY()
Determines whether to show x-y ticks.
|
boolean |
isDisplayZ()
Determines whether to show z ticks.
|
boolean |
isDualShadeMode() |
boolean |
isEmpty() |
boolean |
isExpectDelay()
Determines whether the delay regeneration checkbox is checked.
|
boolean |
isFirstFunctionOnly() |
boolean |
isFogMode() |
boolean |
isGrayScaleMode() |
boolean |
isH2F2() |
boolean |
isHiddenMode() |
boolean |
isMesh()
Determines whether to show x-y mesh.
|
boolean |
isP2D()
Is this P2D object?
|
boolean |
isP3D()
Is this P3D object?
|
boolean |
isPlotFunction1()
Determines whether the first function is selected.
|
boolean |
isPlotFunction2()
Determines whether the first function is selected.
|
boolean |
isScaleBox()
Determines whether to scale axes and bounding box.
|
boolean |
isSecondFunctionOnly() |
boolean |
isSpectrumMode() |
boolean |
isSurfaceType() |
boolean |
isWireframeType() |
SurfaceModelCanvas.Plotter |
newPlotter(int calcDivisions) |
void |
removeChangeListener(ChangeListener ol) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
rotationStarts()
Called when automatic rotation starts.
|
void |
rotationStops()
Called when automatic rotation stops
|
void |
set2DScaling(float d) |
void |
setAutoScaleXY(boolean b) |
void |
setAutoScaleZ(boolean v) |
void |
setAxesFontColor(Color fontColorAxes) |
void |
setAxisFont(Font fontAxis) |
void |
setBarsType(boolean val) |
void |
setBothFunction(boolean val) |
void |
setBoxed(boolean v) |
void |
setCalcDivisions(int v) |
void |
setContourLines(int v) |
void |
setContourType(boolean val) |
void |
setDensityType(boolean val) |
void |
setDispDivisions(int v) |
void |
setDisplayGrids(boolean v) |
void |
setDisplayXY(boolean v) |
void |
setDisplayZ(boolean v) |
void |
setDistance(float d) |
void |
setDualShadeMode(boolean val) |
void |
setElevationAngle(float d) |
void |
setExpectDelay(boolean v) |
void |
setFirstFunctionOnly(boolean val) |
void |
setFogMode(boolean val) |
void |
setFontColorLabel(Color fontColorLabel) |
void |
setFrameScale(float a) |
void |
setGrayScaleMode(boolean val) |
void |
setHiddenMode(boolean val) |
void |
setInitScaling(float scaling) |
void |
setLabelColor(Color a) |
void |
setLabelFont(Font a) |
void |
setLabelOffsetX(float a) |
void |
setLabelOffsetY(float a) |
void |
setLabelOffsetZ(float a) |
void |
setMesh(boolean v) |
void |
setMessage(String text)
Sets the text of status line
|
void |
setPenWidth(float w) |
void |
setPlotColor(SurfaceModel.PlotColor v) |
void |
setPlotFunction1(boolean v) |
void |
setPlotFunction12(boolean p1,
boolean p2) |
void |
setPlotFunction2(boolean v) |
void |
setPlotType(SurfaceModel.PlotType v) |
void |
setRotationAngle(float d) |
void |
setScaleBox(boolean v) |
void |
setSecondFunctionOnly(boolean val) |
void |
setSpectrumMode(boolean val) |
void |
setSurfaceType(boolean val) |
void |
setSurfaceVertex(SurfaceVertex[][] v) |
void |
setTicFont(Font a) |
void |
setTicOffset(float a) |
void |
setWireframeType(boolean val) |
void |
setXlabel(String a) |
void |
setXMax(float v) |
void |
setXMin(float v) |
void |
setYlabel(String a) |
void |
setYMax(float v) |
void |
setYMin(float v) |
void |
setZlabel(String a) |
void |
setZMax(float v) |
void |
setZMin(float v) |
void |
toggleAutoScaleZ() |
void |
toggleBoxed() |
void |
toggleDisplayGrids() |
void |
toggleDisplayXY() |
void |
toggleDisplayZ() |
void |
toggleExpectDelay() |
void |
toggleMesh() |
void |
togglePlotFunction1() |
void |
togglePlotFunction2() |
void |
toggleScaleBox() |
public final String X_MIN_PROPERTY
public final String Y_MIN_PROPERTY
public final String Z_MIN_PROPERTY
public final String X_MAX_PROPERTY
public final String Y_MAX_PROPERTY
public final String Z_MAX_PROPERTY
public final String EXPECT_DELAY_PROPERTY
public final String BOXED_PROPERTY
public final String MESH_PROPERTY
public final String SCALE_BOX_PROPERTY
public final String DISPLAY_Z_PROPERTY
public final String DISPLAY_GRIDS_PROPERTY
public final String PLOT_FUNCTION_1_PROPERTY
public final String PLOT_FUNCTION_2_PROPERTY
public final String DATA_AVAILABLE_PROPERTY
public final String DISPLAY_X_Y_PROPERTY
public final String CALC_DIVISIONS_PROPERTY
public final String CONTOUR_LINES_PROPERTY
public final String DISP_DIVISIONS_PROPERTY
public final String SURFACE_VERTEX_PROPERTY
public final String AUTO_SCALE_Z_PROPERTY
public final String PLOT_TYPE_PROPERTY
public final String PLOT_COLOR_PROPERTY
public final String COLOR_MODEL_PROPERTY
public ColorModelSet colorModel
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface SurfaceModel
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener
in interface SurfaceModel
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface SurfaceModel
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener
in interface SurfaceModel
public boolean isAutoScaleZ()
isAutoScaleZ
in interface SurfaceModel
public void setAutoScaleZ(boolean v)
public void toggleAutoScaleZ()
public void autoScale()
public SurfaceModel.PlotType getPlotType()
getPlotType
in interface SurfaceModel
public void setPlotType(SurfaceModel.PlotType v)
public SurfaceModel.PlotColor getPlotColor()
getPlotColor
in interface SurfaceModel
public void setPlotColor(SurfaceModel.PlotColor v)
public boolean isEmpty()
isEmpty
in interface SurfaceModel
public boolean isHiddenMode()
public void setHiddenMode(boolean val)
public boolean isSpectrumMode()
public void setSpectrumMode(boolean val)
public boolean isGrayScaleMode()
public void setGrayScaleMode(boolean val)
public boolean isDualShadeMode()
public void setDualShadeMode(boolean val)
public boolean isFogMode()
public void setFogMode(boolean val)
public boolean isWireframeType()
public void setWireframeType(boolean val)
public boolean isSurfaceType()
public void setSurfaceType(boolean val)
public boolean isContourType()
public void setContourType(boolean val)
public boolean isDensityType()
public void setDensityType(boolean val)
public boolean isBarsType()
public void setBarsType(boolean val)
public boolean isFirstFunctionOnly()
public void setFirstFunctionOnly(boolean val)
public boolean isSecondFunctionOnly()
public void setSecondFunctionOnly(boolean val)
public boolean isBothFunction()
public void setBothFunction(boolean val)
public SurfaceVertex[][] getSurfaceVertex()
getSurfaceVertex
in interface SurfaceModel
public void setSurfaceVertex(SurfaceVertex[][] v)
public Projector getProjector()
getProjector
in interface SurfaceModel
public void setDistance(float d)
public void set2DScaling(float d)
public void setRotationAngle(float d)
public void setElevationAngle(float d)
public float getDistance()
public float get2DScaling()
public float getRotationAngle()
public float getElevationAngle()
public int getCalcDivisions()
getCalcDivisions
in interface SurfaceModel
public void setCalcDivisions(int v)
public int getContourLines()
getContourLines
in interface SurfaceModel
public void setContourLines(int v)
public void setDispDivisions(int v)
public int getDispDivisions()
getDispDivisions
in interface SurfaceModel
public float getXMin()
getXMin
in interface SurfaceModel
public void setXMin(float v)
public float getYMin()
getYMin
in interface SurfaceModel
public void setYMin(float v)
public float getZMin()
getZMin
in interface SurfaceModel
public void setZMin(float v)
public float getXMax()
getXMax
in interface SurfaceModel
public void setXMax(float v)
public float getYMax()
getYMax
in interface SurfaceModel
public void setYMax(float v)
public float getZMax()
getZMax
in interface SurfaceModel
public void setZMax(float v)
public SurfaceColor getColorModel()
getColorModel
in interface SurfaceModel
public void setMessage(String text)
text
- new text to be displayedpublic void rotationStarts()
public void rotationStops()
public void exportCSV(File file) throws IOException
IOException
public SurfaceModelCanvas.Plotter newPlotter(int calcDivisions)
public SurfaceModelCanvas.PlotterImpl getPlotter()
getPlotter
in interface SurfaceModel
public JPoint[] getJPoints()
getJPoints
in interface SurfaceModel
public double floor(double d, int digits)
public double ceil(double d, int digits)
public boolean isExpectDelay()
SurfaceModel
isExpectDelay
in interface SurfaceModel
true
if the checkbox is checked,
false
otherwisepublic void setExpectDelay(boolean v)
public void toggleExpectDelay()
public boolean isBoxed()
SurfaceModel
isBoxed
in interface SurfaceModel
true
if to show bounding boxpublic void setBoxed(boolean v)
public void toggleBoxed()
public boolean isMesh()
SurfaceModel
isMesh
in interface SurfaceModel
true
if to show x-y meshpublic void setMesh(boolean v)
public void toggleMesh()
public boolean isScaleBox()
SurfaceModel
isScaleBox
in interface SurfaceModel
true
if to scale bounding boxpublic void setScaleBox(boolean v)
public void toggleScaleBox()
public boolean isDisplayXY()
SurfaceModel
isDisplayXY
in interface SurfaceModel
true
if to show x-y tickspublic void setDisplayXY(boolean v)
public boolean getDisplayXY()
public boolean getDisplayZ()
public void toggleDisplayXY()
public boolean isDisplayZ()
SurfaceModel
isDisplayZ
in interface SurfaceModel
true
if to show z tickspublic void setDisplayZ(boolean v)
public void toggleDisplayZ()
public boolean isDisplayGrids()
SurfaceModel
isDisplayGrids
in interface SurfaceModel
true
if to show face gridspublic void setDisplayGrids(boolean v)
public void toggleDisplayGrids()
public boolean isPlotFunction1()
SurfaceModel
isPlotFunction1
in interface SurfaceModel
true
if the first function is checked,
false
otherwisepublic void setPlotFunction1(boolean v)
public void setPlotFunction12(boolean p1, boolean p2)
public void togglePlotFunction1()
public void togglePlotFunction2()
public boolean isPlotFunction2()
SurfaceModel
isPlotFunction2
in interface SurfaceModel
true
if the first function is checked,
false
otherwisepublic void setPlotFunction2(boolean v)
public boolean isP2D()
isP2D
in interface SurfaceModel
public boolean isP3D()
isP3D
in interface SurfaceModel
public boolean isDataAvailable()
SurfaceModel
isDataAvailable
in interface SurfaceModel
public void addChangeListener(ChangeListener ol)
addChangeListener
in interface SurfaceModel
public void removeChangeListener(ChangeListener ol)
removeChangeListener
in interface SurfaceModel
public boolean isH2F2()
isH2F2
in interface SurfaceModel
public void setLabelOffsetX(float a)
setLabelOffsetX
in interface SurfaceModel
public Font getLabelFont()
getLabelFont
in interface SurfaceModel
public void setLabelOffsetZ(float a)
setLabelOffsetZ
in interface SurfaceModel
public void setLabelOffsetY(float a)
setLabelOffsetY
in interface SurfaceModel
public void setTicOffset(float a)
setTicOffset
in interface SurfaceModel
public float getTicOffset()
getTicOffset
in interface SurfaceModel
public void setAxesFontColor(Color fontColorAxes)
setAxesFontColor
in interface SurfaceModel
public Color getAxesFontColor()
getAxesFontColor
in interface SurfaceModel
public void setFontColorLabel(Color fontColorLabel)
setFontColorLabel
in interface SurfaceModel
public Color getFontColorLabel()
getFontColorLabel
in interface SurfaceModel
public double getLabelOffsetX()
getLabelOffsetX
in interface SurfaceModel
public double getLabelOffsetY()
getLabelOffsetY
in interface SurfaceModel
public double getLabelOffsetZ()
getLabelOffsetZ
in interface SurfaceModel
public void setPenWidth(float w)
setPenWidth
in interface SurfaceModel
public float getPenWidth()
getPenWidth
in interface SurfaceModel
public void setXlabel(String a)
setXlabel
in interface SurfaceModel
public void setYlabel(String a)
setYlabel
in interface SurfaceModel
public void setZlabel(String a)
setZlabel
in interface SurfaceModel
public void setLabelFont(Font a)
setLabelFont
in interface SurfaceModel
public void setAxisFont(Font fontAxis)
setAxisFont
in interface SurfaceModel
public Font getAxisFont()
getAxisFont
in interface SurfaceModel
public void setLabelColor(Color a)
setLabelColor
in interface SurfaceModel
public void setTicFont(Font a)
setTicFont
in interface SurfaceModel
public Font getTicFont()
getTicFont
in interface SurfaceModel
public Color getLabelColor()
getLabelColor
in interface SurfaceModel
public float getFrameScale()
getFrameScale
in interface SurfaceModel
public void setFrameScale(float a)
setFrameScale
in interface SurfaceModel
public String getXlabel()
getXlabel
in interface SurfaceModel
public String getYlabel()
getYlabel
in interface SurfaceModel
public String getZlabel()
getZlabel
in interface SurfaceModel
public void setInitScaling(float scaling)
setInitScaling
in interface SurfaceModel
public float getInitScaling()
getInitScaling
in interface SurfaceModel
public void setAutoScaleXY(boolean b)
public boolean getAutoScaleXY()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics