/** * 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(); } }
/** * Called when we might new realignment. */ private void updateBestProjectors() { updateBestProjectors(getHScale(),getVScale()); }
/** * Sets the horizontal axis scaling. * @param hscale horizontal axis scaling. * @param vscale vertical axis scaling. */ @Override public PointsView setScales(AxisScale hscale, AxisScale vscale) { if(hscale!=getHScale() || vscale!=getVScale()) updateBestProjectors(hscale,vscale); return this; }
/** * 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(); }
_x3.add(copy(x3[is])); updateBestProjectors(); repaint();