scenic
Class FilledPath

java.lang.Object
  extended by scenic.SceneNode
      extended by scenic.SceneLeaf
          extended by scenic.Shape
              extended by scenic.FilledPath

public class FilledPath
extends Shape

FilledPath class fills the area inside the given path.


Constructor Summary
FilledPath(Path path)
          Constructs a filled path using the given path.
 
Method Summary
 int getFillRule()
          Gets the fill rule.
 Path getPath()
          Gets the path to be filled.
 void setFillRule(int rule)
          Sets the fill rule used when filling the path.
 void setPath(Path path)
          Sets the path to be filled.
 
Methods inherited from class scenic.Shape
getColor, setColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilledPath

public FilledPath(Path path)
Constructs a filled path using the given path.

Parameters:
path - the path to be filled.
Method Detail

setPath

public void setPath(Path path)
Sets the path to be filled.

Parameters:
path - the path to be filled.

getPath

public Path getPath()
Gets the path to be filled.

Returns:
the path to be filled.

setFillRule

public void setFillRule(int rule)
Sets the fill rule used when filling the path. The fill rule must be one of the constants defined in the FillRule interface.

Parameters:
rule - the fill rule.

getFillRule

public int getFillRule()
Gets the fill rule.