ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.editors
Class Direction

java.lang.Object
  extended byjava.awt.Polygon
      extended bycom.elegantj.editors.Direction
All Implemented Interfaces:
java.io.Serializable, java.awt.Shape, ViewableShape

public class Direction
extends java.awt.Polygon
implements ViewableShape

See Also:
Serialized Form

Field Summary
static int DEFAULT
          DEFAULT direction is UP
static int DOWN
          DOWN direction
static int LEFT
          LEFT direction
static int RIGHT
          RIGHT direction
static int UP
          UP direction
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
Direction()
           
Direction(int nDir)
           
Direction(int x, int y, int w, int h)
           
Direction(int x, int y, int w, int h, int nDir)
           
 
Method Summary
 void adjustEndPoints(int x, int y, int w, int h)
           
 boolean contains(int x, int y)
          Determines whether a point is inside the shape boundaries
 void draw(boolean bFill, java.awt.Graphics g)
           
 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.
 int getDirection()
           
 int getMargin()
           
 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 setDirection(int nDir)
           
 void setImage(java.awt.Image image)
          Sets the image.
 void setMargin(int n)
           
 void setStretching(int nStretching)
          Sets the stretching parameter of the image.
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elegantj.editors.ViewableShape
getBounds
 

Field Detail

UP

public static final int UP
UP direction

See Also:
Constant Field Values

DOWN

public static final int DOWN
DOWN direction

See Also:
Constant Field Values

LEFT

public static final int LEFT
LEFT direction

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
RIGHT direction

See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
DEFAULT direction is UP

See Also:
Constant Field Values
Constructor Detail

Direction

public Direction()

Direction

public Direction(int nDir)

Direction

public Direction(int x,
                 int y,
                 int w,
                 int h)

Direction

public Direction(int x,
                 int y,
                 int w,
                 int h,
                 int nDir)
Method Detail

setDirection

public void setDirection(int nDir)

getDirection

public int getDirection()

setMargin

public void setMargin(int n)

getMargin

public int getMargin()

draw

public void draw(boolean bFill,
                 java.awt.Graphics g)

draw

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

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(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,
                 int x,
                 int y,
                 int w,
                 int h)
Specified by:
draw in interface ViewableShape

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)

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

setImage

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

Specified by:
setImage in interface ViewableShape

setStretching

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

Specified by:
setStretching in interface ViewableShape

adjustEndPoints

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

ElegantJ Data Entry Masks 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.