com.miginfocom.util.gfx
Class SlicedImage.ImageSlice

java.lang.Object
  extended by com.miginfocom.util.gfx.SlicedImage.ImageSlice
Enclosing class:
SlicedImage

protected static class SlicedImage.ImageSlice
extends java.lang.Object


Constructor Summary
SlicedImage.ImageSlice(XtdImage slice, int type)
           
 
Method Summary
 void drawSlice(java.awt.Graphics2D g2, java.awt.Rectangle bounds, int xs, int ys)
          Draws the slice in the rectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlicedImage.ImageSlice

public SlicedImage.ImageSlice(XtdImage slice,
                              int type)
Method Detail

drawSlice

public void drawSlice(java.awt.Graphics2D g2,
                      java.awt.Rectangle bounds,
                      int xs,
                      int ys)
Draws the slice in the rectangle

Parameters:
g2 - The graphics object to draw the image in. Properties will not be chaged.
bounds - The bounds to draw the slice in. NOt null.
xs - The slice index (0..2) in the horizontal dimension
ys - The slice index (0..2) in the vertical dimension


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.