public void render(Graphics graphics){
  if (getNeedToRegenerate() || getNeedToReposition() || !isVisible()) {
    if (DEBUG) {
      logger.fine("OMRasterObject.render(): need to regenerate or not visible!");
    }
    return;
  }
  Graphics g=graphics.create();
  if (colorModel == COLORMODEL_IMAGEICON && (getWidth() == -1)) {
    logger.fine("OMRasterObject.render: Attempting to draw a Image that is not ready! Image probably wasn't available.");
  }
  if (g instanceof Graphics2D && renderRotationAngle != null) {
    rotate((Graphics2D)g);
  }
  renderImage(g,bitmap,point1);
  if (isSelected() || logger.isLoggable(Level.FINER)) {
    renderShape(g);
  }
  renderLabel(graphics);
}

public void render ( Graphics graphics ) { if ( getNeedToRegenerate ( ) || getNeedToReposition ( ) || ! isVisible ( ) ) { if ( DEBUG ) { logger . fine ( "OMRasterObject.render(): need to regenerate or not visible!" ) ; } return ; } Graphics g = graphics . create ( ) ; if ( colorModel == COLORMODEL_IMAGEICON && ( getWidth ( ) == - 1 ) ) { logger . fine ( "OMRasterObject.render: Attempting to draw a Image that is not ready! Image probably wasn't available." ) ; } if ( g instanceof Graphics2D && renderRotationAngle != null ) { rotate ( ( Graphics2D ) g ) ; } renderImage ( g , bitmap , point1 ) ; if ( isSelected ( ) || logger . isLoggable ( Level . FINER ) ) { renderShape ( g ) ; } renderLabel ( graphics ) ; }
render the raster on the java . awt . graphics
