scenic
Class Pattern

java.lang.Object
  extended by scenic.SceneNode
      extended by scenic.SceneLeaf
          extended by scenic.Brush
              extended by scenic.Pattern

public class Pattern
extends Brush

This brush paints a repeating pattern. The pattern is created by repeating the given scene.


Constructor Summary
Pattern(double width, double height)
          Creates a pattern with the given width and height.
 
Method Summary
 void childChanged(java.awt.Rectangle area)
           
 double getHeight()
          Gets the height of the pattern.
 SceneNode getPattern()
          Gets the scene that defines the pattern.
 double getWidth()
          Gets the width of the pattern.
 void setHeight(double height)
          Sets the height of the pattern.
 void setPattern(SceneNode pattern)
          Sets the scene that defines the pattern.
 void setWidth(double width)
          Sets the width of the pattern.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern(double width,
               double height)
Creates a pattern with the given width and height.

Parameters:
width - the width of the pattern.
height - the height of the pattern.
Method Detail

getWidth

public double getWidth()
Gets the width of the pattern.


setWidth

public void setWidth(double width)
Sets the width of the pattern.


getHeight

public double getHeight()
Gets the height of the pattern.


setHeight

public void setHeight(double height)
Sets the height of the pattern.


getPattern

public SceneNode getPattern()
Gets the scene that defines the pattern.


setPattern

public void setPattern(SceneNode pattern)
Sets the scene that defines the pattern.


childChanged

public void childChanged(java.awt.Rectangle area)