/** * Sets the contour line style. * The default style is solid. * @param style the line style. */ public void setLineStyle(Line style) { if (_lineStyle!=style) { _lineStyle = style; repaint(); } }
/** * Sets the contour line style for negative-valued contours. * By default, all contours share the same line style. * @param style the line style. */ public void setLineStyleNegative(Line style) { if (_lineStyleNegative!=style) { _lineStyleNegative = style; repaint(); } }
/** * Sets the contour values to the specified sampling. * If this method is called, then clips (or percentiles) are not used * to determine contour values, and readable contours are disabled. * @param cs the contour sampling. */ public void setContours(Sampling cs) { _readableContours = false; _cs = cs; _cl = null; repaint(); }
/** * Sets the number of contour values. * If readable contours are enabled, then this number is an upper bound, * and the actual number of contours may be less than this number. * Otherwise, if readable contours are disabled, then contour values * will be evenly spaced between, but not including, the minimum and * maximum clip values. The default number of contour values is 25. * @param n the number of contour values. */ public void setContours(int n) { _nc = n; _cs = null; _cl = null; repaint(); }
/** * Enables or disables automatically computed readable contour values. * Here, readable values are multiples of 1, 2, and 5 times some * power of ten. If enabled, then any specified number of contours * serves as an upper bound on the number of contour values. * Readable contour values are the default. * @param readableContours true, for readable contours; false, otherwise. */ public void setReadableContours(boolean readableContours) { if (_readableContours!=readableContours) { _readableContours = readableContours; _cs = null; _cl = null; repaint(); } }
/** * Sets the color model used to map contour values to colors. * If set, then byte 0 of the color model corresponds to the minimum * clip value, and byte 255 corresponds to the maximum clip value. * If not set, then all contour lines have the same color. * @param colorModel the color model. */ public void setColorModel(IndexColorModel colorModel) { _colorMap.setColorModel(colorModel); repaint(); }
/** * Sets the contour line width. * The default width is zero, for the thinnest lines. * @param width the line width. */ public void setLineWidth(float width) { if (_lineWidth!=width) { _lineWidth = width; updateBestProjectors(); repaint(); } }
/** * Sets the orientation of sample axes. * @param orientation the orientation. */ public void setOrientation(Orientation orientation) { if (_orientation!=orientation) { _orientation = orientation; updateArraySampling(); repaint(); } }
/** * Sets the color of each contour line to the specified color. * @param color the contour line color. */ public void setLineColor(Color color) { _colorMap.setColorModel(color); repaint(); }
/** * Sets the clips for this view. These values limit the range used * to determine contour values. Function values f(x1,x2) less than * clipMin and greater than clipMax are ignored. * <p> * Calling this method disables the computation of clips from percentiles. * Previous clip values will be forgotten. * @param clipMin the lower bound on contour values. * @param clipMax the upper bound on contour values. */ public void setClips(float clipMin, float clipMax) { _clips.setClips(clipMin,clipMax); _cs = null; _cl = null; repaint(); }
/** * Sets the percentiles used to compute clips for this view. The default * percentiles are 0 and 100, which correspond to the minimum and maximum * values of the sampled function f(x1,x2). * <p> * Calling this method enables the computation of clips from percentiles. * Any clip values specified or computed previously will be forgotten. * @param percMin the percentile corresponding to clipMin. * @param percMax the percentile corresponding to clipMax. */ public void setPercentiles(float percMin, float percMax) { _clips.setPercentiles(percMin,percMax); _cs = null; _cl = null; repaint(); }