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
-
points
-
-
LinesGadget()
- LinesGadget
-
LinesGadget(int)
- LinesGadget
-
LinesGadget(int[], int[], int)
- LinesGadget
-
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.
-
getDashOffLen()
- returns the setting
-
getDashOnLen()
- returns the setting
-
getMinimumSize()
- gets the minimum size
-
getThickness()
- gets the thickness of the line
-
setDashOffLen(int)
- The line is solid if dashOffLen == 0.
-
setDashOnLen(int)
- This is ignored if dashOffLen == 0.
-
setThickness(int)
- sets the thickness of the line
-
update(GadgetGraphics)
- update
points
public DrawLines points
LinesGadget
public LinesGadget()
- LinesGadget
LinesGadget
public LinesGadget(int npoints)
- LinesGadget
- Parameters:
- npoints - number of points in line
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
getMinimumSize
public Dimension getMinimumSize()
- gets the minimum size
- Returns:
- Dimension
- Overrides:
- getMinimumSize in class Gadget
setThickness
public void setThickness(int thickness)
- sets the thickness of the line
- Parameters:
- thickness - thickness of line
getThickness
public int getThickness()
- gets the thickness of the line
- Returns:
- thickness of line
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.
getDashOnLen
public int getDashOnLen()
- returns the setting
- Returns:
- dashOnLen
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.
getDashOffLen
public int getDashOffLen()
- returns the setting
- Returns:
- dashOffLen
update
public void update(GadgetGraphics g)
- update
- Parameters:
- g - GadgetGraphics object for drawing
- Overrides:
- update in class Gadget
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