/** * Sets the border width to use for painting. If null, then the default Graphics2D * stroke will be used. The stroke will be centered on the actual shape outline. * @param s the Stroke to fillPaint with */ public void setBorderWidth(float s) { float old = getBorderWidth(); this.borderWidth = s; setDirty(true); firePropertyChange("borderWidth", old, getBorderWidth()); }
/** * Sets the border width to use for painting. If null, then the default Graphics2D * stroke will be used. The stroke will be centered on the actual shape outline. * @param s the Stroke to fillPaint with */ public void setBorderWidth(float s) { float old = getBorderWidth(); this.borderWidth = s; setDirty(true); firePropertyChange("borderWidth", old, getBorderWidth()); }
/** * Sets the border width to use for painting. If null, then the default Graphics2D * stroke will be used. The stroke will be centered on the actual shape outline. * @param s the Stroke to fillPaint with */ public void setBorderWidth(float s) { float old = getBorderWidth(); this.borderWidth = s; setDirty(true); firePropertyChange("strokeWidth", old, getBorderWidth()); }
/** * Sets the border width to use for painting. If null, then the default Graphics2D * stroke will be used. The stroke will be centered on the actual shape outline. * @param s the Stroke to fillPaint with */ public void setBorderWidth(float s) { float old = getBorderWidth(); this.borderWidth = s; setDirty(true); firePropertyChange("borderWidth", old, getBorderWidth()); }
@Test @Override public void testDefaults() { super.testDefaults(); AbstractAreaPainter aap = (AbstractAreaPainter) p; assertThat(aap.getAreaEffects(), is(new AreaEffect[0])); assertThat(aap.getBorderPaint(), is(nullValue())); assertThat(aap.getBorderWidth(), is(0f)); assertThat(aap.getFillPaint(), CoreMatchers.<Paint>is(Color.RED)); assertThat(aap.getStyle(), is(AbstractAreaPainter.Style.BOTH)); } }
assertThat(aap.getAreaEffects(), is(new AreaEffect[0])); assertThat(aap.getBorderPaint(), is(nullValue())); assertThat(aap.getBorderWidth(), is(0f)); assertThat(aap.getFillPaint(), is(nullValue())); assertThat(aap.getStyle(), is(AbstractAreaPainter.Style.BOTH));
assertThat(aap.getAreaEffects(), is(new AreaEffect[0])); assertThat(aap.getBorderPaint(), CoreMatchers.<Paint>is(Color.BLACK)); assertThat(aap.getBorderWidth(), is(1f)); assertThat(aap.getFillPaint(), CoreMatchers.<Paint>is(Color.RED)); assertThat(aap.getStyle(), is(AbstractAreaPainter.Style.BOTH));