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 $

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).
booleanpaintNodeContent(Context cx, int start, int end)
Fill, then stroke shape.
voidsetFill(boolean b)
voidsetStroke(boolean b)

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).

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)