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
-
diagonal
- When a line is diagonal, it can go up or down.
-
diagonalOptions
- The possible options when a line is diagonal.
-
lineWidth
- The linewidth in pixels.
-
orientation
- A line can have a horizontal, vertical or diagonal orientation.
-
orientationOptions
- The possible options for the orientation.
-
threeD
- The line can be displayed in a 3D-style
-
LineWidget()
- Constructor.
-
getDiagonal()
- Get the direction when the line is diagonal, up or down.
-
getDiagonalOptions()
- Get the possible options when a line is diagonal.
-
getLineWidth()
- Get the linewidth.
-
getOrientation()
- Get the current orientation.
-
getOrientationOptions()
- Get the possible options for the orientation.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
is3D()
- Check whether the line is three-dimensional.
-
paint(Graphics)
- Paint the line.
-
set3D(boolean)
- Toggle the 3D mode.
-
setDiagonal(int)
- Set the direction to up or down when the line is diagonal.
-
setLineWidth(int)
- Set the linewidth to the given number of pixels.
-
setOrientation(int)
- Set the orientation to horizontal, vertical or diagonal.
-
setProperties(PropertyList)
- Set the properties.
orientation
public int orientation
- A line can have a horizontal, vertical or diagonal orientation.
- See Also:
- getOrientation, setOrientation, orientationOptions
orientationOptions
public static Options orientationOptions
- The possible options for the orientation.
- See Also:
- getOrientationOptions
diagonal
public int diagonal
- When a line is diagonal, it can go up or down.
- See Also:
- getDiagonal, setDiagonal, diagonalOptions
diagonalOptions
public static Options diagonalOptions
- The possible options when a line is diagonal.
- See Also:
- getDiagonalOptions
lineWidth
public int lineWidth
- The linewidth in pixels.
- See Also:
- getLineWidth, setLineWidth
threeD
public boolean threeD
- The line can be displayed in a 3D-style
- See Also:
- is3D, set3D
LineWidget
public LineWidget()
- Constructor.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class ShapeWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties.
- Overrides:
- setProperties in class ShapeWidget
getOrientationOptions
public Options getOrientationOptions()
- Get the possible options for the orientation.
- See Also:
- orientationOptions
getOrientation
public int getOrientation()
- Get the current orientation.
- See Also:
- orientation
setOrientation
public void setOrientation(int orientation)
- Set the orientation to horizontal, vertical or diagonal.
- See Also:
- orientation
getDiagonalOptions
public Options getDiagonalOptions()
- Get the possible options when a line is diagonal.
- See Also:
- diagonalOptions
getDiagonal
public int getDiagonal()
- Get the direction when the line is diagonal, up or down.
- See Also:
- diagonal
setDiagonal
public void setDiagonal(int diagonal)
- Set the direction to up or down when the line is diagonal.
- See Also:
- diagonal
getLineWidth
public int getLineWidth()
- Get the linewidth.
- See Also:
- lineWidth
setLineWidth
public void setLineWidth(int lineWidth)
- Set the linewidth to the given number of pixels.
- See Also:
- lineWidth
is3D
public boolean is3D()
- Check whether the line is three-dimensional.
- See Also:
- threeD
set3D
public void set3D(boolean threeD)
- Toggle the 3D mode.
paint
public void paint(Graphics g)
- Paint the line.
- Overrides:
- paint in class Widget
All Packages Class Hierarchy This Package Previous Next Index