public abstract class BatikDoodle extends FlatDoodle
Details: No details available.
Modifier and Type | Field and Description |
---|---|
protected org.apache.batik.gvt.GraphicsNode |
mpGvtTree |
mToolTip, mZOrder
mParent
Modifier | Constructor and Description |
---|---|
protected |
BatikDoodle() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(AffineTransform ipTransform,
Point2D ipPoint)
Tests point for contact with doodle.
|
boolean |
draw(FigGraphics ipG)
Renders doodle.
|
Rectangle2D |
getBounds(AffineTransform ipTransform,
Rectangle2D opBounds)
Returns rectangular extent.
|
getToolTip, getZOrder, setToolTip, setZOrder
getDefaultOrigin, getParent, redraw, setParent
public boolean contains(AffineTransform ipTransform, Point2D ipPoint)
Doodle
Details:
Doodle.contains(AffineTransform, Point2D)
returns true
if the given point lies on this doodle, false
otherwise.
A provided AffineTransform
reveals the characteristics of the view where containment is being tested.
This is useful only for Doodle
s that alter their logical form in order to accommodate the view.
Most implementations will simply ignore this transform, and in some cases, this transform may be null
, indicating that the transform is not to be considered.
In any case, the point being tested is already in figure coordinates.
ipTransform
- current viewing transformipPoint
- point to testpublic boolean draw(FigGraphics ipG)
Doodle
Details:
Doodle.draw(FigGraphics)
renders this doodle using the supplied graphics environment.
When the host FigureView
is repainting itself, it will probably call this method, albeit indirectly, to redraw its figure's components.
This method returns true
if drawing was successful, false
otherwise.
ipG
- the graphics contextpublic Rectangle2D getBounds(AffineTransform ipTransform, Rectangle2D opBounds)
Doodle
Details:
This method returns the rectangular extent of this Doodle
.
The rectangle returned is in logical (i.e. figure) units, not display units.
A provided AffineTransform
reveals the characteristics of the viewing context in which the bounds will be considered.
This information is meaningful only in Doodle
s that alter their logical form to accommodate the view, such as ViewDoodle
.
Most implementations will simply ignore this transform, and in some cases, this transform may be null
, indicating that the transform is a "don't-
Optionally, the caller may pass in a pre-null
, a new rectangle will be instantiated, initialized with the result, and returned.
In either case, the rectangle containing the result is returned.
ipTransform
- the current viewing transformopBounds
- destination for resultCopyright © 2013. All Rights Reserved.