/** * Sets the line style. * The default style is solid. * @param style the line style. */ public void setLineStyle(Line style) { _lineStyle = style; repaint(); }
/** * Sets the format used for text labels. * The default format is "%1.4G". * @param format the text format. */ public void setTextFormat(String format) { _textFormat = format; repaint(); }
/** * Sets the line color. * The default line color is the tile foreground color. * That default is used if the specified line color is null. * @param color the line color; null, for tile foreground color. */ public void setLineColor(Color color) { if (!equalColors(_lineColor,color)) { _lineColor = color; repaint(); } }
/** * Sets the mark size. * The default mark size is half the tile font size. * The default is used if the specified mark size is zero. * @param size the mark size. */ public void setMarkSize(float size) { if (_markSize!=size) { _markSize = size; updateBestProjectors(); repaint(); } }
/** * Sets the orientation of (x1,x2) axes. * @param orientation the orientation. */ public void setOrientation(Orientation orientation) { if (_orientation!=orientation) { _orientation = orientation; updateBestProjectors(); repaint(); } }
/** * Sets the 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 mark style. * The default mark style is none, for no marks. * @param style the mark style. */ public void setMarkStyle(Mark style) { if (_markStyle!=style) { _markStyle = style; updateBestProjectors(); repaint(); } }
/** * Sets the mark color. * The default mark color is the tile foreground color. * That default is used if the specified mark color is null. * @param color the mark color. */ public void setMarkColor(Color color) { if (!equalColors(_markColor,color)) { _markColor = color; repaint(); } }
/** * Sets arrays of (x1,x2,x3) coordinates for a single plot segment. * The lengths of the specified arrays x1 and x2 must be equal. * If x3 is not null, its length must equal that of x1 and x2. * @param x1 array of x1 coordinates. * @param x2 array of x2 coordinates. * @param x3 array of x3 coordinates; null, if none. */ public void set(float[] x1, float[] x2, float[] x3) { Check.argument(x1.length==x2.length,"x1.length equals x2.length"); if (x3!=null) Check.argument(x1.length==x3.length,"x1.length equals x3.length"); _ns = 1; _nx.clear(); _x1.clear(); _x2.clear(); _x3.clear(); _nxmax = x1.length; _nx.add(x1.length); _x1.add(copy(x1)); _x2.add(copy(x2)); if (x3!=null) _x3.add(copy(x3)); updateBestProjectors(); repaint(); }