net.sourceforge.ganttproject.shape
Class ShapePaint

java.lang.Object
  |
  +--java.awt.TexturePaint
        |
        +--net.sourceforge.ganttproject.shape.ShapePaint
All Implemented Interfaces:
java.awt.Paint, java.awt.Transparency

public class ShapePaint
extends java.awt.TexturePaint


Field Summary
protected  int[] array
           
protected  java.awt.Color background
           
protected  java.awt.Color foreground
           
protected  int height
           
protected  int width
           
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
ShapePaint(int width, int height, int[] array)
          Constructor
ShapePaint(int width, int height, int[] array, java.awt.Color foreground, java.awt.Color background)
          Constructor
ShapePaint(ShapePaint pattern)
          Constructor
ShapePaint(ShapePaint pattern, java.awt.Color foreground, java.awt.Color background)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true if the two shape are the same
 int[] getarray()
          Return the array of the shape
 java.lang.String getArray()
          Return the array of the shape on a string
 java.lang.String toString()
          Return a string for the shape
 java.lang.String toString2()
          Just for debug
 
Methods inherited from class java.awt.TexturePaint
createContext, getAnchorRect, getImage, getTransparency
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

protected int width

height

protected int height

array

protected int[] array

foreground

protected java.awt.Color foreground

background

protected java.awt.Color background
Constructor Detail

ShapePaint

public ShapePaint(ShapePaint pattern)
Constructor


ShapePaint

public ShapePaint(ShapePaint pattern,
                  java.awt.Color foreground,
                  java.awt.Color background)
Constructor


ShapePaint

public ShapePaint(int width,
                  int height,
                  int[] array)
Constructor


ShapePaint

public ShapePaint(int width,
                  int height,
                  int[] array,
                  java.awt.Color foreground,
                  java.awt.Color background)
Constructor

Method Detail

equals

public boolean equals(java.lang.Object obj)
Return true if the two shape are the same

Overrides:
equals in class java.lang.Object

toString2

public java.lang.String toString2()
Just for debug


toString

public java.lang.String toString()
Return a string for the shape

Overrides:
toString in class java.lang.Object

getArray

public java.lang.String getArray()
Return the array of the shape on a string


getarray

public int[] getarray()
Return the array of the shape



${copyright}