Class marimba.gui.LineWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.LineWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ShapeWidget
                   |
                   +----marimba.gui.LineWidget

public class LineWidget
extends ShapeWidget
A simple line widget.
Version:
1.1, 10/01/96
Author:
Klaas Waslander

Variable Index

 o diagonal
When a line is diagonal, it can go up or down.
 o diagonalOptions
The possible options when a line is diagonal.
 o lineWidth
The linewidth in pixels.
 o orientation
A line can have a horizontal, vertical or diagonal orientation.
 o orientationOptions
The possible options for the orientation.
 o threeD
The line can be displayed in a 3D-style

Constructor Index

 o LineWidget()
Constructor.

Method Index

 o getDiagonal()
Get the direction when the line is diagonal, up or down.
 o getDiagonalOptions()
Get the possible options when a line is diagonal.
 o getLineWidth()
Get the linewidth.
 o getOrientation()
Get the current orientation.
 o getOrientationOptions()
Get the possible options for the orientation.
 o getProperties(PropertyList)
Get the properties of this widget.
 o is3D()
Check whether the line is three-dimensional.
 o paint(Graphics)
Paint the line.
 o set3D(boolean)
Toggle the 3D mode.
 o setDiagonal(int)
Set the direction to up or down when the line is diagonal.
 o setLineWidth(int)
Set the linewidth to the given number of pixels.
 o setOrientation(int)
Set the orientation to horizontal, vertical or diagonal.
 o setProperties(PropertyList)
Set the properties.

Variables

 o orientation
  public int orientation
A line can have a horizontal, vertical or diagonal orientation.
See Also:
getOrientation, setOrientation, orientationOptions
 o orientationOptions
  public static Options orientationOptions
The possible options for the orientation.
See Also:
getOrientationOptions
 o diagonal
  public int diagonal
When a line is diagonal, it can go up or down.
See Also:
getDiagonal, setDiagonal, diagonalOptions
 o diagonalOptions
  public static Options diagonalOptions
The possible options when a line is diagonal.
See Also:
getDiagonalOptions
 o lineWidth
  public int lineWidth
The linewidth in pixels.
See Also:
getLineWidth, setLineWidth
 o threeD
  public boolean threeD
The line can be displayed in a 3D-style
See Also:
is3D, set3D

Constructors

 o LineWidget
  public LineWidget()
Constructor.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ShapeWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties.
Overrides:
setProperties in class ShapeWidget
 o getOrientationOptions
  public Options getOrientationOptions()
Get the possible options for the orientation.
See Also:
orientationOptions
 o getOrientation
  public int getOrientation()
Get the current orientation.
See Also:
orientation
 o setOrientation
  public void setOrientation(int orientation)
Set the orientation to horizontal, vertical or diagonal.
See Also:
orientation
 o getDiagonalOptions
  public Options getDiagonalOptions()
Get the possible options when a line is diagonal.
See Also:
diagonalOptions
 o getDiagonal
  public int getDiagonal()
Get the direction when the line is diagonal, up or down.
See Also:
diagonal
 o setDiagonal
  public void setDiagonal(int diagonal)
Set the direction to up or down when the line is diagonal.
See Also:
diagonal
 o getLineWidth
  public int getLineWidth()
Get the linewidth.
See Also:
lineWidth
 o setLineWidth
  public void setLineWidth(int lineWidth)
Set the linewidth to the given number of pixels.
See Also:
lineWidth
 o is3D
  public boolean is3D()
Check whether the line is three-dimensional.
See Also:
threeD
 o set3D
  public void set3D(boolean threeD)
Toggle the 3D mode.
 o paint
  public void paint(Graphics g)
Paint the line.
Overrides:
paint in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index