예제 #1
0
 /**
  * Paints icon for the specified component at the specified location.
  *
  * @param c component to process
  * @param g graphics context
  * @param x location X coordinate
  * @param y location Y coordinate
  */
 @Override
 public void paintIcon(final Component c, final Graphics g, final int x, final int y) {
   // todo Modify this behavior so that icon is properly painted in Swing
   // components
   paintIcon((Graphics2D) g, 0, 0, c.getWidth(), c.getHeight());
 }
예제 #2
0
 /**
  * Paints icon at the specified bounds.
  *
  * @param g2d graphics context
  * @param bounds icon bounds
  */
 public void paintIcon(final Graphics2D g2d, final Rectangle bounds) {
   paintIcon(g2d, bounds.x, bounds.y, bounds.width, bounds.height);
 }
예제 #3
0
 /**
  * Paints icon for the specified component.
  *
  * @param c component to process
  * @param g graphics context
  */
 public void paintIcon(final Component c, final Graphics g) {
   paintIcon((Graphics2D) g, 0, 0, c.getWidth(), c.getHeight());
 }