Пример #1
0
  /* (non-Javadoc)
   * @see org.thenesis.microbackend.ui.graphics.VirtualGraphicsInterface#drawImage(org.thenesis.microbackend.ui.graphics.VirtualImage, int, int, int)
   */
  public void drawImage(VirtualImage img, int x, int y, int anchor) {

    if (Logging.TRACE_ENABLED)
      System.out.println("VirtualGraphics.drawImage(): not yet implemented");

    if (!img.render(this, x, y, anchor)) {
      throw new IllegalArgumentException("");
    }
  }
Пример #2
0
 /* (non-Javadoc)
  * @see org.thenesis.microbackend.ui.graphics.VirtualGraphicsInterface#drawRegion(org.thenesis.microbackend.ui.graphics.VirtualImage, int, int, int, int, int, int, int, int)
  */
 public void drawRegion(
     VirtualImage src,
     int x_src,
     int y_src,
     int width,
     int height,
     int transform,
     int x_dest,
     int y_dest,
     int anchor) {
   if (!src.renderRegion(this, x_src, y_src, width, height, transform, x_dest, y_dest, anchor)) {
     throw new IllegalArgumentException("");
   }
 }