public class GraphSettings extends DataChangeListener implements Serializable
GraphSettings
contains the parameters which are used to draw the
graph such as number of ticks, scaling values, offset parameters, axis
lengths, colors, fonts, labels and their positions and much more. All these
parameters are settable by the GUI, and written to this class. Class
Graph
and derived friends use this class and draw the graph
based on the parameters.Modifier and Type | Field and Description |
---|---|
static int |
CONTOUR_2D
Graphtype, contour type most people want (and the default).
|
static float[] |
dashLengths |
static int |
GRAPHTYPE_2D
Graphtype, normal (classical) 2D graph.
|
static int |
GRAPHTYPE_MULTI
Graphtype, the not-very-common multi-plot graph.
|
static int |
GRAPHTYPE_PIPER
Graphtype, piper diagram (ask geochemists what that is).
|
static int |
N_AXES
Total number of axes currently known by JPlot.
|
static int |
NO_LINE
Symbolic constant used for no lines (solid or dashed).
|
static int |
NO_SYMBOL
Symbolic constant used for no symbols (points).
|
static int |
X_AXIS
Symbolic constant used to name the (bottom) X-axis of the graph.
|
static int |
Y_AXIS
Symbolic constant used to name the (left) Y-axis of the graph.
|
Constructor and Description |
---|
GraphSettings()
Principal constructor.
|
GraphSettings(JFrame frame)
Principal constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLabel(GraphLabel gl)
Adds a label to the list of graph labels.
|
void |
addPrimitive(HShape ob)
Adds a primitive to the list of graph labels.
|
boolean |
autoRange(int axis)
Returns whether or not we should use automatic scaling.
|
boolean |
drawAxis(int axis)
Returns whether an axis will be drawn or not.
|
boolean |
drawBox()
Returns whether or not to draw the bounding box arround the graph.
|
boolean |
drawGrid(int axis)
Returns true if the grid should be drawn.
|
boolean |
drawInner()
Enables the drawing of the inner triangles for a Piper diagram.
|
boolean |
drawLegend()
Returns whether or not to draw the legend box in a graph corner.
|
boolean |
drawMirrorAxis(int axis)
Returns whether the mirror of an axis will be drawn or not.
|
boolean |
drawMirrorTics(int axis)
Returns whether or not we should draw tics on the mirror axis.
|
boolean |
drawShadow()
Returns whether or not a shadow will be drawn at the panel border.
|
boolean |
drawTds()
Returns true if the tds circle should be drawn.
|
boolean |
drawTicLabels(int axis)
Returns whether or not to draw tic labels.
|
boolean |
drawTics(int axis)
Returns whether or not to draw tics (little lines on the axes).
|
boolean |
fontChanged()
Returns a flag to indicate that some of the graph-fonts have changed.
|
int |
get2DType()
Returns the current graph type.
|
boolean |
getAntiAlias()
get antialiasing
|
boolean |
getAttResizable()
is attribute resizable?
|
boolean |
getAutomaticTicks(int axis)
Get or not automatic tick calculations
|
int |
getAxesArrow()
Returns the axis arrow type.
|
Color |
getAxesColor()
Returns the actual color of the axes of the graph.
|
float |
getAxesPenTicWidth()
Returns the actual pen width of the tic axes of the graph.
|
double |
getAxesRatio()
Returns the current ratio between X- and Y-axes lengths.
|
Color |
getBackgroundColor()
Returns the actual background color of the entire graph panel.
|
double |
getBottomMargin()
Returns the distance between the bottom-border of the panel and the
bottom X-axis.
|
Color |
getBoxColor()
Returns the color used to draw the bounding box.
|
Color |
getBoxFillColor()
Returns the fill-color of the eventual bounding box arround the graph
|
float |
getBoxOffset()
Returns the offset of the bounding box.
|
int |
getColorIndex()
Returns the index of the next color of the vector of predefined colors.
|
static Color[] |
getColors()
Return colors.
|
boolean |
getContour_bar()
Show or not bars
|
int |
getContour_binsX()
How many bins for contours in X
|
int |
getContour_binsY()
How many bins for contours in Y
|
boolean |
getContour_gray()
Which color to use
|
int |
getContour_levels()
How many levels
|
Color |
getGraphBackgroundColor()
Returns the background color of the graph.
|
int |
getGraphType()
Returns the current graph type.
|
Color |
getGridColor()
Sets the color of the overall grid.
|
Color |
getInnerColor()
Returns the color used to fill the shaded triangles.
|
Vector<GraphLabel> |
getLabels()
Returns a vector with the graph labels.
|
Vector<String> |
getLabelTicks(int axis)
Return tick labels used to make plots.
|
double |
getLeftMargin()
Returns the distance between the left-border of the panel and the left
Y-axis.
|
Font |
getLegendFont()
Returns the font used by the legend.
|
double |
getLegendPosition(int axis)
Returns the x or y coordinates (defined in pixels, relative to the size
of the panel showing the graph) of the legend.
|
double |
getLegendSpacing()
Returns the vertical spacing, between each line of the legend.
|
int |
getMaxNumberOfTics()
Returns the maximum number of tics for log10 scale.
|
double |
getMaxValue(int axis)
Returns the maximum data value for the specified axis.
|
double |
getMinValue(int axis)
Returns the minimum data value for the specified axis.
|
boolean |
getNoData()
Get no data flag
|
int |
getNumberOfTics(int axis)
Returns the number of tics for the specfied axis.
|
Dimension |
getPanelSize()
Returns the dimensions of the panel used to display the graph.
|
float |
getPenWidthAxis()
Get pen width to draw axis
|
int |
getPointIndex()
Returns the index of the next point type of the vector of predefined
point types.
|
Vector<HShape> |
getPrimitives()
Returns a vector with the graph primitives.
|
double |
getRightMargin()
Returns the distance between the right-border of the panel and the right
Y-axis.
|
void |
getSettings(XMLWrite xw)
Writes the current parameter settings to a File stream.
|
double |
getSubTicLength(int axis)
Returns the subtic length of the tics.
|
int |
getSubTicNumber(int axis)
Returns the number of subtics.
|
float |
getTdsFactor()
Returns the factor used to plot a TDS circle.
|
Color |
getTicColor(int axis)
Returns the color used by the labels drawn at each tic.
|
Font |
getTicFont(int axis)
Returns the font used by the labels drawn at each tic.
|
double |
getTicLength(int axis)
Returns the length of the tics.
|
double |
getTopMargin()
Returns the distance between the top-border of the panel and the top
X-axis.
|
boolean |
gridToFront()
Flag, saying whether the grid should be drawn at the foreground or not.
|
int |
numberLabels()
No of labels
|
int |
numberPrimitives()
No of primitives
|
boolean |
primitivesToFront()
Flag, saying whether the primitives should be drawn at the foreground or
not.
|
void |
print()
Print the current parameter settings.
|
void |
print(PrintStream out)
Print the current parameter settings.
|
void |
removeLabel(int i)
Remove i-th label
|
void |
removeLabels()
Clear all labels
|
void |
removePrimitive(int i)
Remove i-th label
|
void |
removePrimitives()
Clear all primitives
|
void |
reset()
Resets the class to default values.
|
void |
resetColorIndex()
Resets the color index to the first color.
|
void |
resetLabels()
Reset the positions of all the labels.
|
void |
resetPointIndex()
Resets the point-type index to the first symbol.
|
boolean |
rotateTics(int axis)
Returns whether or not we should rotate the tics.
|
void |
set2DType(int type)
Returns the current graph type.
|
void |
setAntiAlias(boolean setit)
set antialiasing
|
void |
setAttResizable(boolean setit) |
void |
setAutomaticTicks(int axis,
boolean auto)
If set to false, we stop automatically computing ticks.
|
void |
setAutoRange(int axis,
boolean b)
Sets true or false to use automatic scaling.
|
void |
setAxesArrow(int type)
Sets the arrows for axes.
|
void |
setAxesColor(Color color)
Sets the actual color of the axes of the graph.
|
void |
setAxesPenTicWidth(float pen)
Sets the actual pen width for tic axes of the graph.
|
void |
setAxesRatio(double r)
Sets the ratio between X- and Y-axes lengths.
|
void |
setBackgroundColor(Color color)
Sets the actual background color of the entire graph panel.
|
void |
setBottomMargin(double bm)
Sets the distance between the bottom-border of the panel and the bottom
X-axis.
|
void |
setBoxColor(Color c)
Sets the color of the bounding box drawn around a graph.
|
void |
setBoxFillColor(Color c)
Sets the fill color of the bounding box drawn around a graph.
|
void |
setBoxOffset(float f)
Sets the offset of the bounding box drawn around a graph.
|
void |
setContour_bar(boolean contour_bar)
Set contour bar
|
void |
setContour_binsX(int contour_bins)
set number of bins in X
|
void |
setContour_binsY(int contour_bins)
set number of bins in Y
|
void |
setContour_gray(boolean gray)
set color
|
void |
setContour_levels(int contour_levels)
Set number of leves
|
void |
setDrawAxis(int axis,
boolean b)
Sets whether an axis will be drawn or not.
|
void |
setDrawBox(boolean b)
Sets whether or not to draw the bounding box arround the graph.
|
void |
setDrawGrid(int axis,
boolean b)
Sets whether or not using grid lines.
|
void |
setDrawInner(boolean b)
Sets whether or not to draw the filled triangles.
|
void |
setDrawLegend(boolean b)
Sets whether or not to draw the legend.
|
void |
setDrawMirrorAxis(int axis,
boolean b)
Sets whether the mirror of an axis will be drawn or not.
|
void |
setDrawMirrorTics(int axis,
boolean b)
Sets true or false to draw mirror tics
|
void |
setDrawTds(boolean b)
Sets whether the tds should be drawn or not.
|
void |
setDrawTicLabels(boolean b)
Sets whether all tic-labels will be written or not.
|
void |
setDrawTicLabels(int axis,
boolean b)
Sets whether ticlabels will be written or not.
|
void |
setDrawTics(int axis,
boolean b)
Sets whether or not to draw tics (little lines on the axes).
|
void |
setFontChanged(boolean b)
Sets a flag to indicate that some of the graph-fonts have changed.
|
void |
setGraphBackgroundColor(Color c)
Sets the background color of the graph.
|
void |
setGraphType(int type)
Sets the graph type.
|
void |
setGridColor(Color c)
Sets the color used by the grid.
|
void |
setGridToFront(boolean b)
Setting the flag to true, this will draw the grid after drawing
all the lines and point stuff, hence on the foreground.
|
void |
setInnerColor(Color c)
Sets the color used to fill the inner triangles.
|
void |
setLabel(GraphLabel gl)
Adds a label or, if already in the list, replaces a label with an
identical text (the first one uncounted) with the new one.
|
void |
setLabels(Vector<GraphLabel> labels)
Set new labels for the plot
|
void |
setLabelTicks(int axis,
Vector<String> ticklabel)
Set and overwrite the tick labels.
|
void |
setLeftMargin(double lm)
Sets the distance between the left-border of the panel and the left
Y-axis.
|
void |
setLegendFont(Font font)
Sets the actual font of the legend.
|
void |
setLegendPosition(double x,
double y)
Sets the x and y coordinates (defined relative to the actual axes values)
of the legend.
|
void |
setLegendPosition(int axis,
double coordinate)
Sets the x or y coordinates (defined relative to the data ranges on the
axes) of the legend.
|
void |
setLegendSpacing(double dy)
Sets the vertical spacing, between each line of the legend.
|
void |
setMaxNumberOfTics(int n)
Sets the maximum number of tics allowed for log scale.
|
void |
setMaxValue(int axis,
double max)
Sets the maximum data value displayed on the axis.
|
void |
setMinValue(int axis,
double min)
Sets the start-value displayed on the axis.
|
void |
setNoData(boolean b)
Set no data flag
|
void |
setNumberOfTics(int axis,
int n)
Sets the number of tics for the specified axis.
|
void |
setPanelSize(Dimension d)
Sets the dimensions of the panel of the graph.
|
void |
setPenWidthAxis(float width)
Set pen width to draw axis
|
void |
setPrimitivesToFront(boolean b)
Setting the flag to true, this will draw the primitives after
drawing all the lines and point stuff, hence on the foreground.
|
void |
setRange(int axis,
double min,
double max)
Sets the range (min-max) displayed on the axis.
|
void |
setRightMargin(double rm)
Sets the distance between the right-border of the panel and the right
Y-axis.
|
void |
setRotateTics(int axis,
boolean b)
Defines whether we should rotate tics.
|
void |
setShadow(boolean b)
Defines whether or not a shadow will be drawn at the panel border.
|
void |
setSubTicLength(int axis,
double length)
Sets the length of the subtics.
|
void |
setSubTicNumber(int axis,
int number)
Sets the number of the subtics.
|
void |
setTdsFactor(float f)
Sets the factor used to plot a TDS circle.
|
void |
setTicColor(int axis,
Color color)
Sets the color used by the labels drawn at each tic.
|
void |
setTicFont(int axis,
Font font)
Sets the font used by the labels drawn at each tic.
|
void |
setTicLength(int axis,
double length)
Sets the length of the tics.
|
void |
setTopMargin(double tm)
Sets the distance between the top-border of the panel and the top X-axis.
|
void |
setUseAxesRatio(boolean b)
Sets whether or not to use a fixed ratio between X- and Y-axes lengths.
|
void |
setUseLegendPosition(boolean b)
Sets whether or not to set the legend position in X,Y coordinates as
defined by the graph.
|
void |
setUseLogScale(int axis,
boolean b)
Sets true or false to plot on a log scale.
|
void |
setUseNumberOfTics(int axis,
boolean b)
Says whether the user fixes the number of tics for a specific axis.
|
void |
updateSettings(XMLRead xr)
Update the current settings.
|
boolean |
useAxesRatio()
Says whether we should use a fixed ratio between X- and Y-axes lengths.
|
boolean |
useLegendPosition()
Returns whether or not we use the legend coordinates.
|
boolean |
useLogScale(int axis)
Returns whether or not to plot using a logarithmic scale.
|
boolean |
useNumberOfTics(int axis)
Returns whether or not to use a fixed number of tics.
|
dataChanged, getFrame, setDataChanged, setFrame, setTitleName, setTitleString
public static final float[] dashLengths
public static final int N_AXES
public static final int X_AXIS
public static final int Y_AXIS
public static final int GRAPHTYPE_2D
public static final int CONTOUR_2D
public static final int GRAPHTYPE_PIPER
# graphtype = piper
in the header.
public static final int GRAPHTYPE_MULTI
# graph-type = multiplot
in the header. The same effect may be obtained by including several files. The graph type enables the plot of activity-activity diagrams.
public static final int NO_SYMBOL
public static final int NO_LINE
public GraphSettings(JFrame frame)
frame
- principle frame which hosts the JPlot instance. May be null if
the settings are used without the JPlot GUI.public GraphSettings()
public void setLabel(GraphLabel gl)
gl
- new labelpublic void addLabel(GraphLabel gl)
gl
- new labelpublic void addPrimitive(HShape ob)
gl
- new labelpublic void resetLabels()
public Vector<GraphLabel> getLabels()
#addLabel(GraphLabel) #resetLabels()
public void setLabels(Vector<GraphLabel> labels)
vector
- with new labelspublic Vector<HShape> getPrimitives()
#addLabel(GraphLabel) #resetLabels()
public void setGraphType(int type)
type
- graph stylepublic int getGraphType()
public int get2DType()
public void set2DType(int type)
public Vector<String> getLabelTicks(int axis)
axis
- which axis to usepublic void setLabelTicks(int axis, Vector<String> ticklabel)
axis
- which axis to usevector
- of tick labelspublic void setAutomaticTicks(int axis, boolean auto)
axis
- which axis to useauto
- true when ticks are computed.public boolean getAutomaticTicks(int axis)
axis
- axis valuepublic void reset()
public void removeLabels()
public void removePrimitives()
public void removeLabel(int i)
public void removePrimitive(int i)
public int numberLabels()
public int numberPrimitives()
public void print()
public void print(PrintStream out)
out
- input PrintStreampublic void getSettings(XMLWrite xw)
xw
- instance of the XML writing classpublic void updateSettings(XMLRead xr)
xr
- XML reader object.public Dimension getPanelSize()
setPanelSize(Dimension)
public void setPanelSize(Dimension d)
d
- dimension of the graph panelgetPanelSize()
public double getLeftMargin()
setLeftMargin(double)
public void setRightMargin(double rm)
rm
- the right margin in points.getRightMargin()
public float getPenWidthAxis()
public void setPenWidthAxis(float width)
public void setLeftMargin(double lm)
lm
- the left margin in points.getLeftMargin()
public double getRightMargin()
setRightMargin(double)
public static Color[] getColors()
public double getBottomMargin()
setBottomMargin(double)
public void setBottomMargin(double bm)
bm
- the bottom margin in points.getBottomMargin()
public double getTopMargin()
setTopMargin(double)
public void setTopMargin(double tm)
tm
- the top margin in points.getTopMargin()
public double getTicLength(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setTicLength(int,double)
public double getSubTicLength(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setSubTicLength(int,double)
public int getSubTicNumber(int axis)
public void setTicLength(int axis, double length)
public void setSubTicLength(int axis, double length)
public void setSubTicNumber(int axis, int number)
number
- of subticspublic boolean useAxesRatio()
setUseAxesRatio(boolean)
public void setUseAxesRatio(boolean b)
b
- true if the ratio is fixed and independent of the panel size.public double getAxesRatio()
setUseAxesRatio(boolean)
public void setAxesRatio(double r)
r
- the ratio Y-axisLength/X-axisLengthsetUseAxesRatio(boolean)
public void setUseNumberOfTics(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- true if you want to fix the number of tics.useNumberOfTics(int)
,
setNumberOfTics(int,int)
public boolean useNumberOfTics(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setUseNumberOfTics(int,boolean)
public int getNumberOfTics(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setUseNumberOfTics(int,boolean)
,
setNumberOfTics(int,int)
public void setNumberOfTics(int axis, int n)
axis
- defines to which axis this function applies.n
- the number of ticsuseNumberOfTics(int)
,
setNumberOfTics(int,int)
public int getMaxNumberOfTics()
setMaxNumberOfTics(int)
public void setMaxNumberOfTics(int n)
n
- the maximum allowed number of tics for log10 scalegetMaxNumberOfTics()
public double getMinValue(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.getMaxValue(int)
public void setMinValue(int axis, double min)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.min
- minimum value on the axissetMaxValue(int,double)
public double getMaxValue(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.getMinValue(int)
public void setMaxValue(int axis, double max)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.max
- maximum value on the axissetMinValue(int,double)
public void setRange(int axis, double min, double max)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.min
- minimum value on the axismax
- maximum value on the axissetMaxValue(int,double)
public boolean drawAxis(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setDrawAxis(int,boolean)
public void setDrawAxis(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the axis should be drawn.drawAxis(int)
public boolean drawMirrorAxis(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setDrawMirrorAxis(int,boolean)
public void setDrawMirrorAxis(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the mirror axis should be drawn.drawMirrorAxis(int)
public boolean drawTicLabels(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setDrawTicLabels(boolean)
,
setDrawTicLabels(int,boolean)
public void setDrawTicLabels(boolean b)
b
- toggle, true if the axis should be drawn.drawTicLabels(int)
,
setDrawTicLabels(int,boolean)
public void setDrawTicLabels(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the axis should be drawn.drawTicLabels(int)
,
setDrawTicLabels(boolean)
public boolean drawTics(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setDrawTics(int,boolean)
public void setDrawTics(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the tics should be drawn.drawTics(int)
public Color getBackgroundColor()
setBackgroundColor(Color)
,
setGraphBackgroundColor(Color)
,
setBoxFillColor(Color)
public void setBackgroundColor(Color color)
color
- new background color.getBackgroundColor()
,
setGraphBackgroundColor(Color)
,
setBoxFillColor(Color)
public Color getAxesColor()
public int getAxesArrow()
public float getAxesPenTicWidth()
public void setAxesColor(Color color)
color
- new color to draw the axes.public void setAxesArrow(int type)
type
- 0 if no arrows, 1,2 - different typepublic void setAxesPenTicWidth(float pen)
color
- new color to draw the axes.public Font getTicFont(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setTicFont(int,Font)
public void setTicFont(int axis, Font font)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.font
- the new fontgetTicFont(int)
public Color getTicColor(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setTicColor(int,Color)
public void setTicColor(int axis, Color color)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.color
- the new colorgetTicColor(int)
public Font getLegendFont()
setLegendFont(Font)
public void setLegendFont(Font font)
font
- new font to draw the legend.getLegendFont()
public boolean drawLegend()
setDrawLegend(boolean)
public void setDrawLegend(boolean b)
b
- true if you want to show the legend.drawLegend()
public double getLegendPosition(int axis)
public void setLegendPosition(int axis, double coordinate)
public void setLegendPosition(double x, double y)
x
- the x coordinate of the legend.y
- the y coordinate of the legend.public boolean useLegendPosition()
setUseLegendPosition(boolean)
public void setUseLegendPosition(boolean b)
b
- true if you want to set the positionuseLegendPosition()
public double getLegendSpacing()
setLegendSpacing(double)
public void setLegendSpacing(double dy)
dy
- vertical spacing for the legend.public boolean useLogScale(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setUseLogScale(int,boolean)
public void setUseLogScale(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the scaling is logarithmicuseLogScale(int)
public boolean autoRange(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setAutoRange(int,boolean)
public void setAutoRange(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the the automatic scaling feature is enabled.autoRange(int)
public boolean drawMirrorTics(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setDrawMirrorTics(int,boolean)
public void setDrawMirrorTics(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the we should draw mirror ticsdrawMirrorTics(int)
public void setRotateTics(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the we should rotate the ticsrotateTics(int)
public boolean rotateTics(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setRotateTics(int,boolean)
public boolean drawShadow()
public void setShadow(boolean b)
b
- toggle, true if the shadow should be drawn.for more info
public void setDrawGrid(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the the grid should be drawn.drawGrid(int)
public boolean drawGrid(int axis)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.setDrawGrid(int,boolean)
public void setGridColor(Color c)
c
- color of the grid lines.getGridColor()
public Color getGridColor()
setGridColor(Color)
public boolean gridToFront()
setGridToFront(boolean)
public boolean primitivesToFront()
public void setGridToFront(boolean b)
b
- true if the grid will be moved to the frontgridToFront()
public void setPrimitivesToFront(boolean b)
b
- true if the primitives will be moved to the frontpublic Color getInnerColor()
setInnerColor(Color)
public void setInnerColor(Color c)
c
- the color used to fill the shaded triangles.getInnerColor()
public void setDrawInner(boolean b)
b
- true if the filled triangles should be drawn.drawInner()
public boolean drawInner()
setDrawInner(boolean)
public void setDrawBox(boolean b)
b
- true if the filled triangles should be drawn.drawBox()
,
setBoxOffset(float)
,
setBoxFillColor(Color)
public void setNoData(boolean b)
public boolean getNoData()
public int getContour_binsX()
public int getContour_binsY()
public void setContour_binsX(int contour_bins)
contour_bins
- public void setContour_binsY(int contour_bins)
contour_bins
- public boolean getContour_gray()
public void setContour_gray(boolean gray)
contour_color
- public int getContour_levels()
public void setContour_levels(int contour_levels)
contour_levels
- public boolean getContour_bar()
public void setContour_bar(boolean contour_bar)
contour_bar
- public boolean drawBox()
setDrawBox(boolean)
public void setBoxOffset(float f)
f
- offset in pixels.getBoxOffset()
,
setDrawBox(boolean)
,
setBoxFillColor(Color)
public float getBoxOffset()
setBoxOffset(float)
,
setDrawBox(boolean)
public void setBoxFillColor(Color c)
c
- color.getBoxFillColor()
,
setBoxOffset(float)
,
setDrawBox(boolean)
public Color getBoxFillColor()
setBoxOffset(float)
,
setDrawBox(boolean)
,
setBoxFillColor(Color).
public void setBoxColor(Color c)
c
- drawing color.setBoxOffset(float)
,
setDrawBox(boolean)
,
setBoxFillColor(Color).
public Color getBoxColor()
public void setGraphBackgroundColor(Color c)
c
- color.public Color getGraphBackgroundColor()
public void setTdsFactor(float f)
f
- scaling factor for the TDS circle.public float getTdsFactor()
setTdsFactor(float)
public void setDrawTds(boolean b)
b
- true if the TDS circle should be drawn on a piper diagramsetTdsFactor(float)
public boolean drawTds()
public int getColorIndex()
public int getPointIndex()
public void resetColorIndex()
public void resetPointIndex()
public void setAntiAlias(boolean setit)
setit
- true if it should be setpublic void setAttResizable(boolean setit)
public boolean getAntiAlias()
public boolean getAttResizable()
public boolean fontChanged()
public void setFontChanged(boolean b)
b
- true if fontmetrics should be updated.Jas4pp 1.5 © Java Analysis Studio for Particle Physics