org.apache.batik.bridge
public class CursorManager extends Object implements SVGConstants, ErrorConstants
| Field Summary | |
|---|---|
| static Cursor | ANCHOR_CURSOR
Cursor used over anchors |
| protected BridgeContext | ctx
BridgeContext associated with this CursorManager |
| protected CursorManager.CursorCache | cursorCache
Cache used to hold references to cursors |
| protected static Map | cursorMap
Maps SVG Cursor Values to Java Cursors |
| static Cursor | DEFAULT_CURSOR
Default cursor when value is not found |
| static int | DEFAULT_PREFERRED_HEIGHT |
| static int | DEFAULT_PREFERRED_WIDTH
Default preferred cursor size, used for SVG images |
| static Cursor | TEXT_CURSOR
Cursor used over text |
| Constructor Summary | |
|---|---|
| CursorManager(BridgeContext ctx)
Creates a new CursorManager object.
| |
| Method Summary | |
|---|---|
| Cursor | convertBuiltInCursor(Element e, String cursorStr) |
| Cursor | convertCursor(Element e)
Returns the Cursor corresponding to the input element's cursor property
|
| Cursor | convertSVGCursor(Element e, Value l)
Returns a cursor for the given value list. |
| Cursor | convertSVGCursorElement(Element cursorElement)
Returns a cursor for a given element |
| protected Filter | cursorHrefToFilter(Element cursorElement, ParsedURL purl, Point2D hotSpot)
Converts the input ParsedURL into a Filter and transforms the
input hotSpot point (in image space) to cursor space |
| static Cursor | getPredefinedCursor(String cursorName)
Returns a Cursor object for a given cursor value. |
| protected Image | renderedImageToImage(RenderedImage ri)
Implementation helper: converts a RenderedImage to an Image |
Parameters: ctx the BridgeContext associated to this CursorManager
Parameters: e the element on which the cursor property is set