/** * Set whether this wireframe should use antialiasing when drawing lines. May decrease performance. If you want to * enabled antialiasing, you should also use an alphastate with a source of SourceFunction.SourceAlpha and a * destination of DB_ONE_MINUS_SRC_ALPHA or DB_ONE. * * @param antialiased * true for using smoothed antialiased lines. */ public void setAntialiased(final boolean antialiased) { _antialiased = antialiased; setNeedsRefresh(true); }
/** * Set whether this wireframe should use antialiasing when drawing lines. May decrease performance. If you want to * enabled antialiasing, you should also use an alphastate with a source of SourceFunction.SourceAlpha and a * destination of DB_ONE_MINUS_SRC_ALPHA or DB_ONE. * * @param antialiased * true for using smoothed antialiased lines. */ public void setAntialiased(final boolean antialiased) { _antialiased = antialiased; setNeedsRefresh(true); }
/** * <code>setLineWidth</code> sets the width of lines the wireframe is drawn in. Attempting to set a line width * smaller than 0.0 throws an <code>IllegalArgumentException</code>. * * @param width * the line width, in pixels */ public void setLineWidth(final float width) { if (width < 0.0f) { throw new IllegalArgumentException("Line width must be positive"); } _lineWidth = width; setNeedsRefresh(true); }
/** * <code>setFace</code> sets which face will recieve the wireframe. * * @param face * which face will be rendered in wireframe. * @throws IllegalArgumentException * if face is null */ public void setFace(final Face face) { if (face == null) { throw new IllegalArgumentException("face can not be null."); } _face = face; setNeedsRefresh(true); }
/** * <code>setLineWidth</code> sets the width of lines the wireframe is drawn in. Attempting to set a line width * smaller than 0.0 throws an <code>IllegalArgumentException</code>. * * @param width * the line width, in pixels */ public void setLineWidth(final float width) { if (width < 0.0f) { throw new IllegalArgumentException("Line width must be positive"); } _lineWidth = width; setNeedsRefresh(true); }
/** * <code>setFace</code> sets which face will recieve the wireframe. * * @param face * which face will be rendered in wireframe. * @throws IllegalArgumentException * if face is null */ public void setFace(final Face face) { if (face == null) { throw new IllegalArgumentException("face can not be null."); } _face = face; setNeedsRefresh(true); }