org.apache.batik.gvt
public class ImageNode extends CompositeGraphicsNode
Field Summary | |
---|---|
protected boolean | hitCheckChildren |
Constructor Summary | |
---|---|
ImageNode()
Constructs a new empty ImageNode. |
Method Summary | |
---|---|
boolean | contains(Point2D p)
Returns true if the specified Point2D is inside the boundary of this
node, false otherwise.
|
boolean | getHitCheckChildren() |
GraphicsNode | getImage()
Returns the graphics node that represents the image. |
Rectangle2D | getPrimitiveBounds() |
GraphicsNode | nodeHitAt(Point2D p)
Returns the GraphicsNode containing point p if this node or one of its
children is sensitive to mouse events at p.
|
void | paint(Graphics2D g2d)
Paints this node.
|
void | setHitCheckChildren(boolean hitCheckChildren)
If hitCheckChildren is true then nodeHitAt will return
child nodes of this image. |
void | setImage(GraphicsNode newImage)
Sets the graphics node that represents the image.
|
void | setVisible(boolean isVisible) |
Parameters: p the specified Point2D in the user space
Parameters: p the specified Point2D in the user space
Parameters: g2d the Graphics2D to use
Parameters: newImage the new graphics node that represents the image