edu.brook.ascape.view
Class FillCellFeature

java.lang.Object
  |
  +--edu.brook.ascape.view.DrawFeature
        |
        +--edu.brook.ascape.view.DrawColorFeature
              |
              +--edu.brook.ascape.view.FillCellFeature

public class FillCellFeature
extends DrawColorFeature

A Draw feature that fills a cell with the color defined by the color feature.

Since:
1.0
Version:
1.0

Fields inherited from class edu.brook.ascape.view.DrawColorFeature
colorFeature
 
Fields inherited from class edu.brook.ascape.view.DrawFeature
name, nestedFeature
 
Constructor Summary
FillCellFeature(java.lang.String name)
          Constructs the feature with the supplied name.
FillCellFeature(java.lang.String name, ColorFeature colorFeature)
          Constructs the feature with a name and color feature.
 
Method Summary
 void draw(java.awt.Graphics g, java.lang.Object object, int width, int height)
           
 
Methods inherited from class edu.brook.ascape.view.DrawColorFeature
getColor, getColorFeature, getName, setColorFeature
 
Methods inherited from class edu.brook.ascape.view.DrawFeature
getNestedFeature, setName, setNestedFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillCellFeature

public FillCellFeature(java.lang.String name)
Constructs the feature with the supplied name.
Parameters:
the - name of this draw feature
nestedFeature - the feature to nest within this feature

FillCellFeature

public FillCellFeature(java.lang.String name,
                       ColorFeature colorFeature)
Constructs the feature with a name and color feature.
Parameters:
the - name of this draw feature
nestedFeature - the feature to nest within this feature
Method Detail

draw

public void draw(java.awt.Graphics g,
                 java.lang.Object object,
                 int width,
                 int height)
Overrides:
draw in class DrawColorFeature

(c) 1998-2000 The Brookings Insitution
Webpage