Class marimba.gui.Dash
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.Dash
java.lang.Object
|
+----marimba.gui.Dash
- public final class Dash
- extends Object
A helper class for dashing horizontal or vertical lines
of varying thicknesses. The dashes are prerendered into
an image before they are drawn to the screen.
- Version:
- 1.11, 11/09/96
- Author:
- Arthur van Hoff
-
Dash(int, int, Color, Color)
- Create a new dask of a given length, width and color combination.
-
dashLine(Graphics, int, int, int, int)
- Dash a line between two points.
-
dashRect(Graphics, int, int, int, int)
- Dash a rectangle.
-
drawFocusLine(Graphics, int, int, int, int)
- Draw a dashed focus line
-
drawFocusRect(Graphics, int, int, int, int)
- Draw a dashed focus rectangle to show input focus.
-
equals(Object)
- Equality
-
flush()
- Flush the dash cache.
-
getDash(int, int, Color, Color)
- Get a dash from the cache.
-
hashCode()
- Hash
-
toString()
- Debugging.
Dash
public Dash(int dashlen,
int linewidth,
Color c1,
Color c2)
- Create a new dask of a given length, width and color combination.
dashLine
public void dashLine(Graphics g,
int x1,
int y1,
int x2,
int y2)
- Dash a line between two points. Only horizontal and vertical
lines are supported.
dashRect
public void dashRect(Graphics g,
int x,
int y,
int w,
int h)
- Dash a rectangle. The dashes are drawn inside the coordinates.
hashCode
public int hashCode()
- Hash
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Equality
- Overrides:
- equals in class Object
toString
public String toString()
- Debugging.
- Overrides:
- toString in class Object
getDash
public static synchronized Dash getDash(int dashlen,
int linewidth,
Color c1,
Color c2)
- Get a dash from the cache.
flush
public synchronized void flush()
- Flush the dash cache.
drawFocusRect
public static synchronized void drawFocusRect(Graphics g,
int x,
int y,
int width,
int height)
- Draw a dashed focus rectangle to show input focus.
drawFocusLine
public static synchronized void drawFocusLine(Graphics g,
int x1,
int y1,
int x2,
int y2)
- Draw a dashed focus line
All Packages Class Hierarchy This Package Previous Next Index