All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.LinesGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.LinesGadget

public class LinesGadget
extends Gadget
LinesGadget


Variable Index

 o points

Constructor Index

 o LinesGadget()
LinesGadget
 o LinesGadget(int)
LinesGadget
 o LinesGadget(int[], int[], int)
LinesGadget

Method Index

 o contains(int, int, Gadget)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.
 o getDashOffLen()
returns the setting
 o getDashOnLen()
returns the setting
 o getMinimumSize()
gets the minimum size
 o getThickness()
gets the thickness of the line
 o setDashOffLen(int)
The line is solid if dashOffLen == 0.
 o setDashOnLen(int)
This is ignored if dashOffLen == 0.
 o setThickness(int)
sets the thickness of the line
 o update(GadgetGraphics)
update

Variables

 o points
 public DrawLines points

Constructors

 o LinesGadget
 public LinesGadget()
LinesGadget

 o LinesGadget
 public LinesGadget(int npoints)
LinesGadget

Parameters:
npoints - number of points in line
 o LinesGadget
 public LinesGadget(int xpoints[],
                    int ypoints[],
                    int npoints)
LinesGadget

Parameters:
xpoints[] - array of x coordinates of points in line
ypoints[] - array of y coordinates of points in line

Methods

 o getMinimumSize
 public Dimension getMinimumSize()
gets the minimum size

Returns:
Dimension
Overrides:
getMinimumSize in class Gadget
 o setThickness
 public void setThickness(int thickness)
sets the thickness of the line

Parameters:
thickness - thickness of line
 o getThickness
 public int getThickness()
gets the thickness of the line

Returns:
thickness of line
 o setDashOnLen
 public void setDashOnLen(int len)
This is ignored if dashOffLen == 0. Otherwise, it's the approximate number of pixels in length to draw a dash in the line.

Parameters:
len - approximate number of pixels in a dash of the line.
 o getDashOnLen
 public int getDashOnLen()
returns the setting

Returns:
dashOnLen
 o setDashOffLen
 public void setDashOffLen(int len)
The line is solid if dashOffLen == 0. Otherwise, this is the approximate number of pixels in length to skip between dashes.

Parameters:
setDashOffLen - approximate number of pixels to skip between dashes.
 o getDashOffLen
 public int getDashOffLen()
returns the setting

Returns:
dashOffLen
 o update
 public void update(GadgetGraphics g)
update

Parameters:
g - GadgetGraphics object for drawing
Overrides:
update in class Gadget
 o contains
 public boolean contains(int x,
                         int y,
                         Gadget exclude)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.

Parameters:
x - - the x coordinate
y - - the y coordinate
exclude - Gadget to exclude from search
Returns:
this component does/does not contain the point
Overrides:
contains in class Gadget
See Also:
getGadgetAt

All Packages  Class Hierarchy  This Package  Previous  Next  Index