public class LinePars extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CONTOUR |
static int |
F1D |
static int |
H1D |
static int |
H2D |
static int |
H3D |
static int |
HISTO |
static int |
LINES |
static int |
P1D |
static int |
STICKS |
Constructor and Description |
---|
LinePars()
Constructor, builds the class from default values.
|
LinePars(Color c,
float dl,
float pw,
int s,
float ss)
Constructor, builds the class from specified values.
|
LinePars(LinePars lp)
Constructor, builds the class from specified values.
|
LinePars(String s)
Constructor, builds the class from default values.
|
LinePars(String s,
Color c)
Constructor, builds the class from default values, except for an initial
color.
|
LinePars(String s,
int colorIndex)
Constructor, builds the class with a specific color
|
Modifier and Type | Method and Description |
---|---|
void |
copy(LinePars lp)
Copy operator, builds the class from specified values.
|
boolean |
dataChanged()
Informs whether the data has been modified or not.
|
boolean |
drawLegend()
Returns true if this linestyle should draw the name in the legend of the
graph, false otherwise
|
boolean |
drawLine()
Returns whether or not drawing the lines
|
boolean |
drawSymbol()
Returns whether or not drawing the symbol
|
void |
errorsFill(boolean s)
Fill area between lower and upper error
|
void |
errorsFillSys(boolean s)
Fill area between lower and upper error for system errors.
|
void |
errorsSysX(boolean s)
Show systematical errors on X
|
void |
errorsSysY(boolean s)
Show systematical errors on Y
|
void |
errorsX(boolean s)
Show errors on X
|
void |
errorsY(boolean s)
Show errors on Y
|
boolean |
fill() |
void |
fill(boolean b) |
float |
getAdditioner()
Returns the additioner for this line, which is a value to be used to
increase each value of the dataset before plotting.
|
String |
getAttributes()
Get graphical attributes in form of a string
|
Color |
getColor()
Returns the color of the pen.
|
Color |
getColorErrorsFill()
get color for fill errors
|
Color |
getColorErrorsFillSys()
get color for fill errors (systematical errors)
|
Color |
getColorErrorsSysX()
get color of sys errors on X
|
Color |
getColorErrorsSysY()
get color of sys errors on Y
|
Color |
getColorErrorsX()
get Color of errors on X
|
Color |
getColorErrorsY()
get Color of errors on Y
|
int |
getColorIndex()
Returns the index of the color
|
int |
getDashIndex()
Returns the array index of the current dash length
|
float |
getDashLength()
Returns the dash length of the pen
|
Color |
getEndColor()
Returns the end color of the pen.
|
float |
getErrorFillColorTransp()
get transparancy for the color used to fill an area with errors.
|
float |
getErrorFillColorTranspSys()
get transparancy for the color used to fill an area with system errors.
|
boolean |
getErrorsFill()
get fill area between lower and upper error
|
boolean |
getErrorsFillSys()
get Fill area between lower and upper error for system errors.
|
boolean |
getErrorsSysX()
get systematical errors on X
|
boolean |
getErrorsSysY()
get systematical errors on Y
|
boolean |
getErrorsX()
get errors on X
|
boolean |
getErrorsY()
get errors on Y
|
float |
getErrTicSize()
Return the size of small tic marked end of errors
|
Color |
getFillColor()
Returns the color used to fill an area with.
|
float |
getFillColorTransparency()
Returns the transparancy color used to fill an area with.
|
int |
getGraphStyle()
Returns the current graph style.
|
float |
getMultiplier()
Returns the multiplier for this line, a value which will be used to
multiply each value of the dataset before plotting.
|
String |
getName()
Returns the name (legend) of this line style
|
String |
getNameX()
Returns the name of the X axis
|
String |
getNameY()
Returns the name of the Y axis
|
String |
getNameZ()
Returns the name of the Z axis
|
float |
getPenWidth()
Return the width of the lines
|
float |
getPenWidthErr()
Return the width of the lines to show errors
|
float |
getPenWidthErrSys()
Return the width of the lines to show systematical errors
|
int |
getPointFrequency()
Returns the frequency used to draw points in terms of an 'every'
parameter.
|
void |
getSettings(XMLWrite xw)
This function is called when writing a script file of the current
settings.
|
Color |
getStartColor()
Returns the start color of the pen.
|
int |
getSymbol()
Returns the symbol type (symbolic constant)
|
float |
getSymbolSize()
Returns the size of the symbol in points
|
int |
getType()
Get the type of the data
|
double |
getWidthBin()
Returns the histogram bin width, in case of histogram
|
boolean |
isBarShown() |
boolean |
isDrawLine()
is draw a line?
|
boolean |
isDrawSymbol()
is draw a symbol
|
void |
nextColor(int step)
Sets the color of the pen.
|
void |
print()
Print the current parameter settings.
|
void |
print(PrintStream out)
Print the current parameter settings.
|
void |
setAdditioner(float m)
Sets the additioner for this line, a value which will be used to increase
each value of the dataset before plotting.
|
void |
setColor(Color c)
Sets the color of the pen.
|
void |
setColor(int i)
Sets the color of the pen from the swatch panel.
|
void |
setColorErrorsFill(Color col)
set color for fill errors
|
void |
setColorErrorsFillSys(Color col)
set color for fill errors (systematical errors)
|
void |
setColorErrorsSysX(Color col)
set color sys errors on X
|
void |
setColorErrorsSysY(Color col)
set color sys errors on Y
|
void |
setColorErrorsX(Color col)
set color errors on X
|
void |
setColorErrorsY(Color col)
set color errors on Y
|
void |
setDashLength(float dl)
Sets the dash length of the pen
|
void |
setDashLength(float dl,
int index)
Sets the dash length of the pen.
|
void |
setDataChanged(boolean b)
Sets to true if the data has been changed by the user.
|
void |
setDrawLegend(boolean b)
Sets whether or not this linestyle should draw the name in the legend of
the graph.
|
void |
setDrawLine(boolean b)
Sets whether or not drawing the line
|
void |
setDrawSymbol(boolean b)
Sets whether or not drawing the symbol
|
void |
setErrorFillColorTransp(float a)
Sets transparancy for the color used to fill an area with errors.
|
void |
setErrorFillColorTranspSys(float a)
Sets transparancy for the color used to fill an area with system errors.
|
void |
setErrTicSize(float tic)
Set the size of small tic marked end of errors The actual tic size is
multiplied by penWidthErr
|
void |
setFillColor(Color c)
Sets the color used to fill an area with.
|
void |
setFillColorTransparency(float a)
Sets transparancy for the color used to fill an area with.
|
void |
setGraphStyle(int s)
Sets the graph style.
|
void |
setMultiplier(float m)
Sets the multiplier for this line, a value which will be used to multiply
each value of the dataset before plotting.
|
void |
setName(String s)
Set the name of this dataset.
|
void |
setNameX(String s)
Set the name of X axis
|
void |
setNameY(String s)
Set the name of Y axis
|
void |
setNameZ(String s)
Set the name of Z axis
|
void |
setPenWidth(float pw)
Sets the width of the lines
|
void |
setPenWidthErr(float a)
Set the width of the lines to show errors
|
void |
setPenWidthErrSys(float a)
Set the width of the lines to show systematical errors
|
void |
setPointFrequency(int k)
Sets the frequency used to draw points in terms of an 'every' parameter
(every 2 data-point, every 200 data point...).
|
void |
setShowBars(boolean a)
Show histograms using bars
|
void |
setSlideColor(boolean b)
Activates the slide color option.
|
void |
setSlideColor(Color start,
Color end)
Enabled and initializes the sliding color option.
|
void |
setSymbol(int s)
Sets the symbol type (symbolic constant)
|
void |
setSymbolSize(float ss)
Sets the size of the symbol in points
|
void |
setType(int type)
Set the type of the data
|
void |
setWidthBin(double a)
Set the histogram bin width, in case of histogram
|
boolean |
slideColor() |
void |
updateSettings(XMLRead xr)
Updates the current settings with new data.
|
public static final int LINES
public static final int HISTO
public static final int CONTOUR
public static final int H1D
public static final int F1D
public static final int P1D
public static final int H2D
public static final int H3D
public static final int STICKS
public LinePars(String s)
s
- name of this datasetpublic LinePars(String s, int colorIndex)
colorIndex
- index pointing to a predefined (in 'ColorPanel') color.public LinePars(Color c, float dl, float pw, int s, float ss)
c
- colordl
- dash width of the line style (1.0f means no dash)pw
- pen width (0 means no line)s
- symbol (-1 means no symbols)ss
- symbol size (0 means no symbols)public LinePars()
public LinePars(LinePars lp)
lp
- LinePars class instancepublic int getPointFrequency()
public int getGraphStyle()
public void setGraphStyle(int s)
s
- line style (symbolic constant)public void copy(LinePars lp)
lp
- LinePars class instancepublic void print()
public void print(PrintStream out)
out
- input PrintStreampublic String getAttributes()
public void setName(String s)
s
- string which contains the name of the datasetpublic String getName()
public void setNameX(String s)
s
- string which contains the name of the datasetpublic String getNameX()
public double getWidthBin()
public void setWidthBin(double a)
public void setShowBars(boolean a)
public boolean isBarShown()
public void setNameY(String s)
s
- string which contains the name of the datasetpublic void setType(int type)
s
- spublic int getType()
s
- spublic String getNameY()
public void setNameZ(String s)
s
- string which contains the name of the datasetpublic String getNameZ()
public boolean drawLegend()
public void setDrawLegend(boolean b)
b
- boolean, true if the name should be shownpublic Color getColor()
public Color getStartColor()
public Color getEndColor()
public void setSlideColor(Color start, Color end)
start
- start colorend
- end colorpublic void setSlideColor(boolean b)
b
- true if we should slide the colorpublic boolean slideColor()
public void nextColor(int step)
public void setFillColor(Color c)
c
- fill colorpublic Color getFillColor()
public void setFillColorTransparency(float a)
a
- Alpha transparancypublic void setErrorFillColorTransp(float a)
a
- Alpha transparancypublic float getErrorFillColorTransp()
a
- Alpha transparancypublic void setErrorFillColorTranspSys(float a)
a
- Alpha transparancypublic float getErrorFillColorTranspSys()
public float getFillColorTransparency()
public boolean fill()
public void fill(boolean b)
b
- true if we should fill the polygone with a color.public int getColorIndex()
public float getDashLength()
public int getDashIndex()
public float getPenWidth()
public float getPenWidthErr()
public float getErrTicSize()
public void setErrTicSize(float tic)
tic
- sizepublic float getPenWidthErrSys()
public void setPenWidthErr(float a)
public void setPenWidthErrSys(float a)
public int getSymbol()
public void setMultiplier(float m)
m
- the multiplierpublic float getMultiplier()
public void setAdditioner(float m)
m
- the multiplierpublic float getAdditioner()
public boolean drawSymbol()
public boolean drawLine()
public float getSymbolSize()
public void setColor(Color c)
c
- colorpublic void setColor(int i)
i
- index of the color on the panel.public void setDashLength(float dl)
dl
- dash lengthpublic void setDashLength(float dl, int index)
dl
- dash lengthindex
- indexpublic void setPenWidth(float pw)
pw
- pen widthpublic void setSymbol(int s)
s
- the symbol typepublic void setDrawSymbol(boolean b)
b
- togglepublic boolean isDrawSymbol()
public void setDrawLine(boolean b)
b
- togglepublic boolean isDrawLine()
public void setSymbolSize(float ss)
ss
- the symbol size in pointspublic void errorsY(boolean s)
true
- if errors are shownpublic void errorsX(boolean s)
true
- if errors are shownpublic void errorsSysY(boolean s)
true
- if errors are shownpublic void errorsSysX(boolean s)
true
- if errors are shownpublic void errorsFill(boolean s)
true
- if errors are shownpublic boolean getErrorsFill()
public void errorsFillSys(boolean s)
true
- if errors are shownpublic boolean getErrorsFillSys()
public void setColorErrorsY(Color col)
public void setColorErrorsX(Color col)
public void setColorErrorsSysY(Color col)
public void setColorErrorsSysX(Color col)
public void setColorErrorsFill(Color col)
public Color getColorErrorsFill()
public void setColorErrorsFillSys(Color col)
public Color getColorErrorsFillSys()
public boolean getErrorsY()
public boolean getErrorsX()
public boolean getErrorsSysY()
public boolean getErrorsSysX()
public Color getColorErrorsY()
public Color getColorErrorsX()
public Color getColorErrorsSysY()
public Color getColorErrorsSysX()
public void setPointFrequency(int k)
k
- each point which should be drawn.public void getSettings(XMLWrite xw)
public boolean dataChanged()
public void setDataChanged(boolean b)
b
- true if the data has been changedpublic void updateSettings(XMLRead xr)
xr
- read object, containing all the dataJas4pp 1.5 © Java Analysis Studio for Particle Physics