diva.sketch
Class CompositeSymbol

java.lang.Object
  extended by diva.sketch.CompositeSymbol
All Implemented Interfaces:
Symbol

public class CompositeSymbol
extends Object
implements Symbol

A composite symbol that is made up of one or more symbols.

Version:
$Revision: 1.4 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu), Heloise Hse (hwawen@eecs.berkeley.edu)

Field Summary
 
Fields inherited from interface diva.sketch.Symbol
MIXED_COLOR, MIXED_LINEWIDTH
 
Constructor Summary
CompositeSymbol(Symbol[] children)
          Create a symbol for the given stroke with the color and line width information.
 
Method Summary
 Symbol[] getChildren()
          Return the stroke that's wrapped by this symbol.
 Color getFill()
          Return the fill color of the children if it is the same for all children, or Symbol.MIXED_COLOR if not.
 float getLineWidth()
          Return the linewidth of the children if it is the same for all children, or Symbol.MIXED_LINEWIDTH if not.
 Color getOutline()
          Return the outline color of the children if it is the same for all children, or Symbol.MIXED_COLOR if not.
 void setFill(Color c)
           
 void setLineWidth(float lineWidth)
           
 void setOutline(Color c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeSymbol

public CompositeSymbol(Symbol[] children)
Create a symbol for the given stroke with the color and line width information.

Method Detail

getChildren

public Symbol[] getChildren()
Return the stroke that's wrapped by this symbol.


getOutline

public Color getOutline()
Return the outline color of the children if it is the same for all children, or Symbol.MIXED_COLOR if not.

Specified by:
getOutline in interface Symbol

getFill

public Color getFill()
Return the fill color of the children if it is the same for all children, or Symbol.MIXED_COLOR if not.

Specified by:
getFill in interface Symbol

getLineWidth

public float getLineWidth()
Return the linewidth of the children if it is the same for all children, or Symbol.MIXED_LINEWIDTH if not.

Specified by:
getLineWidth in interface Symbol

setLineWidth

public void setLineWidth(float lineWidth)
Specified by:
setLineWidth in interface Symbol

setOutline

public void setOutline(Color c)
Specified by:
setOutline in interface Symbol

setFill

public void setFill(Color c)
Specified by:
setFill in interface Symbol


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.