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

Constructor Index

 o Dash(int, int, Color, Color)
Create a new dask of a given length, width and color combination.

Method Index

 o dashLine(Graphics, int, int, int, int)
Dash a line between two points.
 o dashRect(Graphics, int, int, int, int)
Dash a rectangle.
 o drawFocusLine(Graphics, int, int, int, int)
Draw a dashed focus line
 o drawFocusRect(Graphics, int, int, int, int)
Draw a dashed focus rectangle to show input focus.
 o equals(Object)
Equality
 o flush()
Flush the dash cache.
 o getDash(int, int, Color, Color)
Get a dash from the cache.
 o hashCode()
Hash
 o toString()
Debugging.

Constructors

 o Dash
  public Dash(int dashlen,
              int linewidth,
              Color c1,
              Color c2)
Create a new dask of a given length, width and color combination.

Methods

 o 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.
 o dashRect
  public void dashRect(Graphics g,
                       int x,
                       int y,
                       int w,
                       int h)
Dash a rectangle. The dashes are drawn inside the coordinates.
 o hashCode
  public int hashCode()
Hash
Overrides:
hashCode in class Object
 o equals
  public boolean equals(Object obj)
Equality
Overrides:
equals in class Object
 o toString
  public String toString()
Debugging.
Overrides:
toString in class Object
 o getDash
  public static synchronized Dash getDash(int dashlen,
                                          int linewidth,
                                          Color c1,
                                          Color c2)
Get a dash from the cache.
 o flush
  public synchronized void flush()
Flush the dash cache.
 o 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.
 o 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