multivalent.node

Class LeafShape

public class LeafShape extends Leaf

Holds a java.awt.Shape, which is painted stroked or filled or both.

Version: $Revision: 1.3 $ $Date: 2002/09/27 23:37:04 $

Field Summary
protected booleanfill_
protected Shapeshape_
protected booleanstroke_
Constructor Summary
LeafShape(String name, Map<String,Object> attr, INode parent, Shape shape, boolean stroke, boolean fill)
Method Summary
booleaneventNode(AWTEvent e, Point rel)
Don't allow events to enter -- visual only.
booleanformatNode(int width, int height, Context cx)
ShapegetShape()
Returns shape (not a copy).
booleanisFill()
booleanisStroke()
booleanpaintNodeContent(Context cx, int start, int end)
Fill, then stroke shape.
voidsetFill(boolean b)
voidsetStroke(boolean b)

Field Detail

fill_

protected boolean fill_

shape_

protected Shape shape_

stroke_

protected boolean stroke_

Constructor Detail

LeafShape

public LeafShape(String name, Map<String,Object> attr, INode parent, Shape shape, boolean stroke, boolean fill)

Method Detail

eventNode

public boolean eventNode(AWTEvent e, Point rel)
Don't allow events to enter -- visual only.

formatNode

public boolean formatNode(int width, int height, Context cx)

getShape

public Shape getShape()
Returns shape (not a copy).

isFill

public boolean isFill()

isStroke

public boolean isStroke()

paintNodeContent

public boolean paintNodeContent(Context cx, int start, int end)
Fill, then stroke shape.

setFill

public void setFill(boolean b)

setStroke

public void setStroke(boolean b)