Interface EnsureVisible
- All Known Implementing Classes:
UGraphicG2d,UGraphicNull
public interface EnsureVisible
How a driver tells the
UGraphic it draws into that a point belongs to what was just
drawn, so that the clickable area of whatever Url is currently open grows to cover it.
Only UGraphicG2d does anything with it, and only because PNG cannot carry a hyperlink:
the links of a PNG are emitted beside it as an HTML image map, whose <area coords>
rectangles have to be discovered by watching every shape drawn while a url is open. Every other
backend either writes real link markup (svg) or keeps that accounting inside its own graphics
object (eps), so none of their drivers report anything.
clip is the clip in force for the shape being reported, and is passed in rather than
read from the UGraphic: a driver is built once and then used by every copy
UGraphic#apply makes, so the instance it was built from is not the one being drawn
into, and its clip is not the one that applies. A point outside the clip was not actually
drawn and must not enlarge the link area.-
Method Summary
-
Method Details
-
ensureVisible
-