/** * Creates new painter initialized to the shape of circle and bounds of square of specified height. * @param height Painter height. */ public BusyPainter(int height) { this(getScaledDefaultPoint(height), getScaledDefaultTrajectory(height)); }
/** * Creates new painter initialized to the shape of circle and bounds of square of specified height. * @param height Painter height. */ public BusyPainter(int height) { this(getScaledDefaultPoint(height), getScaledDefaultTrajectory(height)); }
/** * Creates new painter initialized to the shape of circle and bounds of square of specified height. * @param height Painter height. */ public BusyPainter(int height) { this(getScaledDefaultPoint(height), getScaledDefaultTrajectory(height)); }
/** * Creates new painter initialized to the shape of circle and bounds of square of specified height. * @param height Painter height. */ public BusyPainter(int height) { this(getScaledDefaultPoint(height), getScaledDefaultTrajectory(height)); }
@Test @Override public void testDefaults() { super.testDefaults(); BusyPainter bp = (BusyPainter) p; assertThat(bp.getBaseColor(), is(Color.LIGHT_GRAY)); assertThat(bp.getDirection(), is(BusyPainter.Direction.RIGHT)); assertThat(bp.getFrame(), is(-1)); assertThat(bp.getHighlightColor(), is(Color.BLACK)); assertThat(bp.getPoints(), is(8)); assertThat(bp.getPointShape(), is(BusyPainter.getScaledDefaultPoint(26))); assertThat(bp.getTrailLength(), is(4)); assertThat(bp.getTrajectory(), is(BusyPainter.getScaledDefaultTrajectory(26))); assertThat(bp.isPaintCentered(), is(false)); } }