ElegantJ Tables Java API Specification v1.1

com.elegantj.editors
Class ImageShape

java.lang.Object
  extended bycom.elegantj.editors.ImageShape
All Implemented Interfaces:
java.io.Serializable, ViewableShape

public class ImageShape
extends java.lang.Object
implements ViewableShape

See Also:
Serialized Form

Constructor Summary
ImageShape()
           
ImageShape(int stretching)
           
 
Method Summary
 boolean contains(int x, int y)
          Determines whether a point is inside the shape boundaries
 void draw(boolean bFill, java.awt.image.ImageObserver parent, java.awt.Graphics g)
           
 void draw(boolean bFill, java.awt.image.ImageObserver parent, java.awt.Graphics g, int x, int y, int w, int h)
           
 void draw(java.awt.image.ImageObserver parent, java.awt.Graphics g)
          Draws the shape.
 void draw(java.awt.image.ImageObserver parent, java.awt.Graphics g, int x, int y, int w, int h)
          Draws the shape.
 void drawInCenter(java.awt.image.ImageObserver parent, java.awt.Graphics g)
           
 void drawInCenter(java.awt.image.ImageObserver parent, java.awt.Graphics g, int x, int y, int w, int h)
           
 java.awt.Rectangle getBounds()
          Returns the bounds held by this shape.
 java.awt.Image getScaledImage()
           
 java.awt.Image getScaledImage(java.awt.Image image, java.awt.image.ImageObserver parent, int w, int h)
           
 void setBounds(double x, double y, double w, double h)
          Sets the boundaries of the shape.
 void setBounds(int x, int y, int w, int h)
           
 void setImage(java.awt.Image image)
          Sets the image.
 void setStretching(int nStretching)
          Sets the stretching parameter of the image.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageShape

public ImageShape()

ImageShape

public ImageShape(int stretching)
Method Detail

toString

public java.lang.String toString()

getBounds

public java.awt.Rectangle getBounds()
Description copied from interface: ViewableShape
Returns the bounds held by this shape.

Specified by:
getBounds in interface ViewableShape

contains

public boolean contains(int x,
                        int y)
Description copied from interface: ViewableShape
Determines whether a point is inside the shape boundaries

Specified by:
contains in interface ViewableShape
Returns:
true if the point is inside the boundaries; false otherwise.

setBounds

public void setBounds(double x,
                      double y,
                      double w,
                      double h)
Description copied from interface: ViewableShape
Sets the boundaries of the shape.

Specified by:
setBounds in interface ViewableShape

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)

setImage

public void setImage(java.awt.Image image)
Description copied from interface: ViewableShape
Sets the image.

Specified by:
setImage in interface ViewableShape

getScaledImage

public java.awt.Image getScaledImage()

getScaledImage

public java.awt.Image getScaledImage(java.awt.Image image,
                                     java.awt.image.ImageObserver parent,
                                     int w,
                                     int h)

draw

public void draw(java.awt.image.ImageObserver parent,
                 java.awt.Graphics g)
Description copied from interface: ViewableShape
Draws the shape.

Specified by:
draw in interface ViewableShape

draw

public void draw(boolean bFill,
                 java.awt.image.ImageObserver parent,
                 java.awt.Graphics g,
                 int x,
                 int y,
                 int w,
                 int h)
Specified by:
draw in interface ViewableShape

draw

public void draw(java.awt.image.ImageObserver parent,
                 java.awt.Graphics g,
                 int x,
                 int y,
                 int w,
                 int h)
Description copied from interface: ViewableShape
Draws the shape.

Specified by:
draw in interface ViewableShape

draw

public void draw(boolean bFill,
                 java.awt.image.ImageObserver parent,
                 java.awt.Graphics g)
Specified by:
draw in interface ViewableShape

drawInCenter

public void drawInCenter(java.awt.image.ImageObserver parent,
                         java.awt.Graphics g)

drawInCenter

public void drawInCenter(java.awt.image.ImageObserver parent,
                         java.awt.Graphics g,
                         int x,
                         int y,
                         int w,
                         int h)

setStretching

public void setStretching(int nStretching)
Description copied from interface: ViewableShape
Sets the stretching parameter of the image.

Specified by:
setStretching in interface ViewableShape

ElegantJ Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.