/** * Sets the Paint to use. This is the Paint object that will be used to fill the path area. If null, nothing is painted * @param p the Paint to use */ public void setFillPaint(Paint p) { Paint old = getFillPaint(); this.fillPaint = p; setDirty(true); firePropertyChange("paint", old, getFillPaint()); }
/** * Sets the Paint to use. This is the Paint object that will be used to fill the path area. If null, nothing is painted * @param p the Paint to use */ public void setFillPaint(Paint p) { Paint old = getFillPaint(); this.fillPaint = p; setDirty(true); firePropertyChange("fillPaint", old, getFillPaint()); }
/** * Sets the Paint to use. This is the Paint object that will be used to fill the path area. If null, nothing is painted * @param p the Paint to use */ public void setFillPaint(Paint p) { Paint old = getFillPaint(); this.fillPaint = p; setDirty(true); firePropertyChange("fillPaint", old, getFillPaint()); }
/** * Sets the Paint to use. This is the Paint object that will be used to fill the path area. If null, nothing is painted * @param p the Paint to use */ public void setFillPaint(Paint p) { Paint old = getFillPaint(); this.fillPaint = p; setDirty(true); firePropertyChange("fillPaint", old, getFillPaint()); }
@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.getBorderPaint(), is(nullValue())); assertThat(aap.getBorderWidth(), is(0f)); assertThat(aap.getFillPaint(), is(nullValue())); assertThat(aap.getStyle(), is(AbstractAreaPainter.Style.BOTH));
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));