public class Signal extends Object implements WaveDataListener
Waveform,
MultiWaveform| Modifier and Type | Field and Description |
|---|---|
static int |
AT_CREATION |
static int |
CIRCLE
Circle marker
|
protected Color |
color
Color index
|
protected int |
color_idx
Color index
|
static int |
CROSS
Cross marker
|
protected double |
curr_x_yz_plot |
protected double |
curr_xmax |
protected double |
curr_xmin |
protected float |
curr_y_xz_plot |
static int |
DEFAULT_CONTOUR_LEVEL |
static int |
DO_NOT_UPDATE |
static int |
FIXED_LIMIT |
static int |
FUSO |
protected float |
gain
Gain value
|
protected boolean |
interpolate
Interpolate flag
|
protected int |
marker
Signal marker
|
protected int |
marker_step
Signal marker step
|
static String[] |
markerList
String vector of markers name.
|
static int |
MODE_CONTOUR |
static int |
MODE_IMAGE |
static int |
MODE_LINE |
static int |
MODE_NOLINE |
static int |
MODE_ONDINE |
static int |
MODE_PROFILE |
static int |
MODE_STEP |
static int |
MODE_XZ |
static int |
MODE_YZ |
protected int |
mode1D |
protected int |
mode2D |
protected String |
name
Signal name
|
boolean |
needFullUpdate |
static int |
NONE
No marker
|
protected float |
offset
Offset value
|
static int |
POINT
Point marker
|
static int |
SIMPLE |
static int |
SQUARE
Square marker
|
int |
startIndexToUpdate |
protected String |
title |
static int |
TRIANGLE
Triangle marker
|
protected int |
type |
static int |
TYPE_1D |
static int |
TYPE_2D |
protected double |
x2D_max |
protected double |
x2D_min |
protected String |
xlabel |
protected double |
y2D_max |
protected double |
y2D_min |
protected String |
ylabel |
protected double |
z2D_max |
protected double |
z2D_min |
protected String |
zlabel |
| Constructor and Description |
|---|
Signal()
Constructs a zero Signal with 100 points.
|
Signal(double[] _x,
float[] _y) |
Signal(double[] _x,
float[] _y,
int _n_points) |
Signal(float[] _x,
float[] _y)
Constructs and initialize a Signal with x and y array.
|
Signal(float[] _x,
float[] _y,
int _n_points) |
Signal(float[] _x,
float[] _y,
int _n_points,
double _xmin,
double _xmax,
double _ymin,
double _ymax)
Constructs a Signal with x and y array, with n_points in a defined
two-dimensional region.
|
Signal(float[] _x,
float[] _y,
String name)
Constructs a Signal with x and y array and name.
|
Signal(long[] _x,
float[] _y,
int _n_points) |
Signal(Signal s)
Constructs a Signal equal to argument Signal
|
Signal(Signal s,
double start_x,
double end_x,
double start_y,
double end_y)
Constructs a Signal equal to argument Signal within a defined two-dimensional
region
|
Signal(String name)
Constructs a zero Signal with name.
|
Signal(WaveData data,
double xmin,
double xmax) |
Signal(WaveData data,
WaveData x_data,
double xminVal,
double xmaxVal)
Constructs and initializes a Signal from the specified parameters.
|
Signal(WaveData data,
WaveData x_data,
double xminVal,
double xmaxVal,
WaveData lowErrData,
WaveData upErrData) |
Signal(WaveData data,
WaveData x_data,
long xminVal,
long xmaxVal) |
Signal(WaveData data,
WaveData x_data,
long xminVal,
long xmaxVal,
WaveData lowErrData,
WaveData upErrData) |
| Modifier and Type | Method and Description |
|---|---|
void |
AddAsymError(WaveData up_error,
WaveData low_error)
Add a asymmetric error bar.
|
Vector<Vector<Point2D.Double>> |
addContourLevel(double level) |
void |
AddError(WaveData in_error)
Add a symmetric error bar.
|
void |
appendValues(double[] x,
float[] y,
int[] numPoints,
float[] time) |
void |
appendValues(float[] inX,
float[] inY) |
void |
Autoscale()
Autoscale Signal.
|
void |
AutoscaleX()
Autoscale x coordinates.
|
void |
AutoscaleY()
Autoscale y coordinates.
|
void |
AutoscaleY(double min,
double max)
Autoscale y coordinates between min and max x coordinates.
|
void |
dataRegionUpdated(double[] regX,
float[] regY,
double resolution) |
void |
dataRegionUpdated(long[] regX,
float[] regY,
double resolution) |
void |
decShow() |
void |
decShowXZ() |
void |
decShowYZ() |
int |
FindClosestIdx(double curr_x,
double curr_y) |
boolean |
findNaN() |
boolean |
fullPaint() |
float |
getClosestX(double x) |
float |
getClosestY(double y) |
Color |
getColor()
Get color.
|
int |
getColorIdx()
Get color index.
|
double |
getCurrentXmax() |
double |
getCurrentXmin() |
float |
getGain()
Get gain parameter.
|
boolean |
getInterpolate()
Get interpolate flag
|
String |
getLegend() |
float[] |
getLowError() |
int |
getMarker()
Get marker type.
|
int |
getMarkerStep()
Get marker step.
|
int |
getMode1D() |
int |
getMode2D() |
String |
getName()
Get signal name.
|
int[] |
getNaNs() |
int |
getNumNaNs() |
int |
getNumPoints() |
float |
getOffset()
Get offset parameter
|
double |
getOriginalYmax() |
double |
getOriginalYmin() |
String |
getStringOfXinYZplot() |
String |
getTitlelabel() |
int |
getType() |
int |
getUpdSignalSizeInc() |
float[] |
getUpError() |
double[] |
getX() |
double |
getX(int idx) |
double[] |
getX2D() |
double |
getX2Dmax() |
double |
getX2Dmin() |
double |
getXinYZplot() |
String |
getXlabel() |
double |
getXmax() |
double |
getXmin() |
float[] |
getY() |
float |
getY(int idx) |
float[] |
getY2D() |
double |
getY2Dmax() |
double |
getY2Dmin() |
float |
getYinXZplot() |
String |
getYlabel() |
double |
getYmax() |
double |
getYmin() |
float[] |
getZ() |
float |
getZ(int idx) |
float[][] |
getZ2D() |
double |
getZ2Dmax() |
double |
getZ2Dmin() |
String |
getZlabel() |
double |
getZValue() |
boolean |
hasX() |
void |
incShow() |
void |
incShowXZ() |
void |
incShowYZ() |
void |
initContour() |
boolean |
isFullLoad() |
boolean |
isIncreasingX() |
boolean |
isLongX() |
boolean |
isLongXForLabel() |
void |
legendUpdated(String name) |
void |
mergeRegions() |
void |
ResetScales()
Reset scale, return to the initial two dimensional region
|
void |
resetSignalData() |
void |
ResetXScale()
Reset x scale, return to original x range two dimensional region
|
void |
ResetYScale()
Reset x scale, return to the initial y range two dimensional region
|
void |
setAttributes(Signal s) |
void |
setAttributes(String name,
int color_idx,
int marker,
int marker_step,
boolean interpolate)
Sets all signal attributes.
|
void |
setCalibrate(float gain,
float offset) |
void |
setColor(Color color)
Set color value
|
void |
setColorIdx(int color_idx)
Set color index.
|
void |
setFullLoad(boolean full_load) |
void |
setInterpolate(boolean interpolate)
Set interpolate flag.
|
void |
setLabels(String title,
String xlabel,
String ylabel,
String zlabel) |
void |
setLegend(String legend) |
void |
setMarker(int marker)
Set market type.
|
void |
setMarker(String name)
Set market type by name.
|
void |
setMarkerStep(int marker_step)
Set marker step.
|
void |
setMode1D(int mode) |
void |
setMode2D(int mode) |
void |
setMode2D(int mode,
double value) |
void |
setName(String name)
Set Signal name.
|
void |
setStartIndexToUpdate() |
void |
setType(int type) |
void |
setUpdSignalSizeInc(int updSignalSizeInc) |
void |
setXinYZplot(float curr_x_yz_plot) |
void |
setXLimits(double xmin,
double xmax,
int mode) |
void |
setYinXZplot(float curr_y_xz_plot) |
void |
setYlimits(double ymin,
double ymax)
Set y minimum and maximum of two-dimensional region.
|
void |
setYmax(double ymax,
int mode) |
void |
setYmin(double ymin,
int mode) |
void |
showXZ(double xd) |
void |
showXZ(int idx) |
void |
showYZ(double t) |
void |
showYZ(int idx) |
void |
StartTraslate()
Metod to call before execute a Traslate method.
|
boolean |
supportsStreaming() |
double |
surfaceValue(double x0,
double y0) |
void |
Traslate(double delta_x,
double delta_y,
boolean x_log,
boolean y_log)
Traslate signal of delta_x and delta_y
|
boolean |
updateSignal() |
boolean |
xLimitsInitialized() |
public static final int TYPE_1D
public static final int TYPE_2D
public static final int MODE_XZ
public static final int MODE_YZ
public static final int MODE_CONTOUR
public static final int MODE_IMAGE
public static final int MODE_ONDINE
public static final int MODE_PROFILE
public static final int MODE_LINE
public static final int MODE_NOLINE
public static final int MODE_STEP
public static final int DEFAULT_CONTOUR_LEVEL
public static final int FUSO
public static final String[] markerList
public static final int NONE
public static final int SQUARE
public static final int CIRCLE
public static final int CROSS
public static final int TRIANGLE
public static final int POINT
public static final int SIMPLE
public static final int AT_CREATION
public static final int FIXED_LIMIT
public static final int DO_NOT_UPDATE
protected String name
protected int marker
protected int marker_step
protected int color_idx
protected Color color
protected boolean interpolate
protected float gain
protected float offset
protected int type
protected int mode2D
protected int mode1D
protected double curr_x_yz_plot
protected float curr_y_xz_plot
protected double z2D_max
protected double z2D_min
protected double y2D_max
protected double y2D_min
protected double x2D_max
protected double x2D_min
protected double curr_xmax
protected double curr_xmin
protected String xlabel
protected String ylabel
protected String zlabel
protected String title
public int startIndexToUpdate
public boolean needFullUpdate
public Signal()
public Signal(double[] _x,
float[] _y)
public Signal(double[] _x,
float[] _y,
int _n_points)
throws IOException
IOExceptionpublic Signal(float[] _x,
float[] _y)
_x - an array of x coordinates_y - an array of y coordinatespublic Signal(float[] _x,
float[] _y,
int _n_points)
throws IOException
IOExceptionpublic Signal(float[] _x,
float[] _y,
int _n_points,
double _xmin,
double _xmax,
double _ymin,
double _ymax)
_x - an array of x coordinates_y - an array of y coordinates_n_points - number of Signal points_xmin - x minimum of region space_xmax - x maximum of region space_ymin - y minimum of region space_ymax - y maximum of region spacepublic Signal(float[] _x,
float[] _y,
String name)
_x - an array of x coordinates_y - an array of y coordinatesname - signal namepublic Signal(long[] _x,
float[] _y,
int _n_points)
public Signal(Signal s)
s - a Signalpublic Signal(Signal s, double start_x, double end_x, double start_y, double end_y)
s - Signalstart_x - x start pointend_x - x end pointstart_y - y start pointend_y - y end pointpublic Signal(String name)
public Signal(WaveData data, double xmin, double xmax) throws IOException
IOExceptionpublic Signal(WaveData data, WaveData x_data, double xminVal, double xmaxVal) throws IOException
_x - an array of x coordinates_y - an array of x coordinates_n_points - the total number of points in the SignalIOExceptionpublic Signal(WaveData data, WaveData x_data, double xminVal, double xmaxVal, WaveData lowErrData, WaveData upErrData) throws IOException
IOExceptionpublic Signal(WaveData data, WaveData x_data, long xminVal, long xmaxVal) throws IOException
IOExceptionpublic Signal(WaveData data, WaveData x_data, long xminVal, long xmaxVal, WaveData lowErrData, WaveData upErrData) throws IOException
IOExceptionpublic void AddAsymError(WaveData up_error, WaveData low_error)
_up_error - an array of y up measure error_low_error - an array of y low measure errorpublic Vector<Vector<Point2D.Double>> addContourLevel(double level)
public void AddError(WaveData in_error)
_error - an array of y measure errorpublic void appendValues(double[] x,
float[] y,
int[] numPoints,
float[] time)
public void appendValues(float[] inX,
float[] inY)
public void Autoscale()
public void AutoscaleX()
public void AutoscaleY()
public void AutoscaleY(double min,
double max)
min - x minimum coordinatesmax - x maximum coordinatespublic void dataRegionUpdated(double[] regX,
float[] regY,
double resolution)
dataRegionUpdated in interface WaveDataListenerpublic void dataRegionUpdated(long[] regX,
float[] regY,
double resolution)
dataRegionUpdated in interface WaveDataListenerpublic void decShow()
public void decShowXZ()
public void decShowYZ()
public int FindClosestIdx(double curr_x,
double curr_y)
public boolean findNaN()
public boolean fullPaint()
public float getClosestX(double x)
public float getClosestY(double y)
public Color getColor()
public int getColorIdx()
public double getCurrentXmax()
public double getCurrentXmin()
public float getGain()
public boolean getInterpolate()
public String getLegend()
public float[] getLowError()
public int getMarker()
public int getMarkerStep()
public int getMode1D()
public int getMode2D()
public String getName()
public int[] getNaNs()
public int getNumNaNs()
public int getNumPoints()
public float getOffset()
public double getOriginalYmax()
public double getOriginalYmin()
public String getStringOfXinYZplot()
public String getTitlelabel()
public int getType()
public int getUpdSignalSizeInc()
public float[] getUpError()
public double[] getX()
throws IOException
IOExceptionpublic double getX(int idx)
public double[] getX2D()
public double getX2Dmax()
public double getX2Dmin()
public double getXinYZplot()
public String getXlabel()
public double getXmax()
public double getXmin()
public float[] getY()
throws IOException
IOExceptionpublic float getY(int idx)
public float[] getY2D()
public double getY2Dmax()
public double getY2Dmin()
public float getYinXZplot()
public String getYlabel()
public double getYmax()
public double getYmin()
public float[] getZ()
public float getZ(int idx)
public float[][] getZ2D()
public double getZ2Dmax()
public double getZ2Dmin()
public String getZlabel()
public double getZValue()
public final boolean hasX()
public void incShow()
public void incShowXZ()
public void incShowYZ()
public void initContour()
public boolean isFullLoad()
public final boolean isIncreasingX()
public boolean isLongX()
public boolean isLongXForLabel()
public void legendUpdated(String name)
legendUpdated in interface WaveDataListenerpublic void mergeRegions()
public void ResetScales()
public void resetSignalData()
public void ResetXScale()
public void ResetYScale()
public void setAttributes(Signal s)
public void setAttributes(String name, int color_idx, int marker, int marker_step, boolean interpolate)
name - signal namecolor_idx - color index from an external color tablemarker - marker typemarker_step - marker stepinterpolate - interpolate flagpublic void setCalibrate(float gain,
float offset)
public void setColor(Color color)
color - color valuepublic void setColorIdx(int color_idx)
color_idx - index of the colorpublic void setFullLoad(boolean full_load)
public void setInterpolate(boolean interpolate)
interpolate - define if is a point or line signalpublic void setLegend(String legend)
public void setMarker(int marker)
marker - marker typepublic void setMarker(String name)
marker - marker type namepublic void setMarkerStep(int marker_step)
marker_step - number of signal points between two markerpublic void setMode1D(int mode)
public void setMode2D(int mode)
public void setMode2D(int mode,
double value)
public void setName(String name)
name - signal namepublic void setStartIndexToUpdate()
public void setType(int type)
public void setUpdSignalSizeInc(int updSignalSizeInc)
public void setXinYZplot(float curr_x_yz_plot)
public void setXLimits(double xmin,
double xmax,
int mode)
public void setYinXZplot(float curr_y_xz_plot)
public void setYlimits(double ymin,
double ymax)
ymin - y minimumymax - y maximumpublic void setYmax(double ymax,
int mode)
public void setYmin(double ymin,
int mode)
public void showXZ(double xd)
public void showXZ(int idx)
public void showYZ(double t)
public void showYZ(int idx)
public void StartTraslate()
public boolean supportsStreaming()
public double surfaceValue(double x0,
double y0)
public void Traslate(double delta_x,
double delta_y,
boolean x_log,
boolean y_log)
delta_x - x traslation factordelta_y - y traslation factorx_log - logaritm scale flag, if is logaritm scale truey_log - logaritm scale flag, if is logaritm scale truepublic boolean updateSignal()
public boolean xLimitsInitialized()
Copyright © 2023. All rights reserved.