/** * {@inheritDoc} */ @Override protected void doPaint(Graphics2D g, Object component, int width, int height) { Shape shape = provideShape(g, component,width,height); switch (getStyle()) { case BOTH: drawBackground(g,shape,width,height); drawBorder(g,shape,width,height); break; case FILLED: drawBackground(g,shape,width,height); break; case OUTLINE: drawBorder(g,shape,width,height); break; case NONE: break; default: break; } }
/** * {@inheritDoc} */ @Override protected void doPaint(Graphics2D g, Object component, int width, int height) { Shape shape = provideShape(g, component,width,height); switch (getStyle()) { case BOTH: drawBackground(g,shape,width,height); drawBorder(g,shape,width,height); break; case FILLED: drawBackground(g,shape,width,height); break; case OUTLINE: drawBorder(g,shape,width,height); break; case NONE: break; default: break; } }
/** * {@inheritDoc} */ @Override protected void doPaint(Graphics2D g, Object component, int width, int height) { Shape shape = provideShape(g, component,width,height); switch (getStyle()) { case BOTH: drawBackground(g,shape,width,height); drawBorder(g,shape,width,height); break; case FILLED: drawBackground(g,shape,width,height); break; case OUTLINE: drawBorder(g,shape,width,height); break; case NONE: break; default: break; } }
/** * {@inheritDoc} */ protected void doPaint(Graphics2D g, Object component, int width, int height) { if (img == null && imageURL != null) { loadImage(); } Shape shape = provideShape(g, component,width,height); switch (getStyle()) { case BOTH: drawBackground(g,shape,width,height); drawBorder(g,shape,width,height); break; case FILLED: drawBackground(g,shape,width,height); break; case OUTLINE: drawBorder(g,shape,width,height); break; case NONE: break; } }