image
Class Widget

java.lang.Object
  extended by image.Image
      extended by image.Widget

public class Widget
extends Image

Represents a wrapper for Java Swing Components.


Constructor Summary
Widget(javax.swing.JComponent inner)
          Create a Widget from the given JComponent with no padding.
Widget(javax.swing.JComponent inner, double paddingX, double paddingY)
          Create a Widget from the given JComponent with the given X/Y paddings.
Widget(javax.swing.JComponent inner, int paddingX, int paddingY)
          Create a Widget from the given JComponent with the given X/Y paddings.
 
Method Summary
 int height()
          Return the Height of this Image
 void paint(java.awt.Graphics g, int x, int y)
          Paint this Scene into the given graphics
 int width()
          Return the Width of this Image
 
Methods inherited from class image.Image
flipHorizontal, flipVertical, overlay, overlay, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, rasterize, rotate, rotate, toFile, toScene, toWhiteFile, toWhiteScene
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Widget

public Widget(javax.swing.JComponent inner)
Create a Widget from the given JComponent with no padding.


Widget

public Widget(javax.swing.JComponent inner,
              int paddingX,
              int paddingY)
Create a Widget from the given JComponent with the given X/Y paddings.


Widget

public Widget(javax.swing.JComponent inner,
              double paddingX,
              double paddingY)
Create a Widget from the given JComponent with the given X/Y paddings.

Method Detail

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y)
Paint this Scene into the given graphics

Specified by:
paint in class Image

width

public int width()
Return the Width of this Image

Specified by:
width in class Image

height

public int height()
Return the Height of this Image

Specified by:
height in class Image