| java.lang.Object com.sun.perseus.model.ModelNode com.sun.perseus.model.CompositeNode com.sun.perseus.model.Viewport
All known Subclasses: com.sun.perseus.model.DocumentNode,
Viewport | abstract public class Viewport extends CompositeNode implements Transformable(Code) | | A Viewport describes a ModelNode into which
rendering may happen.
A ViewportNode has a width and height
which a child SVG uses to compute the viewbox to viewport
transform.
In addition, a Viewport has a user transform limited to
its scale and translation components.
The Viewport is the root of any SVG fragment hierarchy.
version: $Id: Viewport.java,v 1.9 2006/06/29 10:47:36 ln156897 Exp $ |
DEFAULT_VIEWPORT_HEIGHT | final public static int DEFAULT_VIEWPORT_HEIGHT(Code) | | Default height for viewports
|
DEFAULT_VIEWPORT_WIDTH | final public static int DEFAULT_VIEWPORT_WIDTH(Code) | | Default width for viewports.
|
ZOOM_PAN_DISABLE | final public static int ZOOM_PAN_DISABLE(Code) | | As in the SVG 1.1 specification
|
ZOOM_PAN_MAGNIFY | final public static int ZOOM_PAN_MAGNIFY(Code) | | As in the SVG 1.1 specification
|
ZOOM_PAN_UNKNOWN | final public static int ZOOM_PAN_UNKNOWN(Code) | | As in the SVG 1.1 specification
|
height | protected int height(Code) | | Viewport height
|
inverseTxf | protected Transform inverseTxf(Code) | | The inverse of the Transform applied to this node.
|
transform | protected Transform transform(Code) | | The Transform applied to this node.
|
width | protected int width(Code) | | Viewport width
|
zoomAndPan | protected int zoomAndPan(Code) | | The zoomAndPan setting
|
Viewport | public Viewport()(Code) | | Default constructor
|
appendTransform | protected Transform appendTransform(Transform tx, Transform workTx)(Code) | | Appends this node's transform, if it is not null.
Parameters: tx - the Transform to apply additional node transforms to. This may be null. Parameters: workTx - a Transform which can be re-used if a new Transform needs to be created and workTxis not the same instance as tx. a transform with this node's transform added. |
getHeight | public int getHeight()(Code) | | the viewport height |
getInverseTransformState | public Transform getInverseTransformState()(Code) | | this node's cached inverse transform. |
getTransform | public Transform getTransform()(Code) | | This Transformable 's transform. |
getTransformState | public Transform getTransformState()(Code) | | this node's cached transform. |
getWidth | public int getWidth()(Code) | | the viewport width |
getZoomAndPan | public int getZoomAndPan()(Code) | | The zoomAndPan setting for this viewport (read-only) |
nodeHitAt | public ModelNode nodeHitAt(float[] pt)(Code) | | Returns the ModelNode , if any, hit by the
point at coordinate x/y.
Parameters: pt - the x/y coordinate. Should never be null and beof size two. If not, the behavior is unspecified.The coordinates are in viewport space. the ModelNode hit at the given point or nullif none was hit. |
recomputeTransformState | protected void recomputeTransformState(Transform parentTransform)(Code) | | Recomputes the transform cache, if one exists. This should recursively
call recomputeTransformState on children node or expanded content, if
any.
By default, because a ModelNode has no transform and no cached transform,
this only does a pass down.
Parameters: parentTransform - the Transform applied to this node's parent. |
setSize | public void setSize(int newWidth, int newHeight)(Code) | | Sets the viewport size
Parameters: newWidth - the new viewport width. Should be greater than 0 Parameters: newHeight - the new viewport height. Should be greater than 0. |
setTransform | public void setTransform(Transform newTransform)(Code) | | Parameters: newTransform - The new Transformable 's transform. |
setZoomAndPan | public void setZoomAndPan(int newZoomAndPan)(Code) | | Parameters: newZoomAndPan - the new value for the zoom and pan setting |
Methods inherited from com.sun.perseus.model.ModelNode | Box addBBox(Box bbox, Transform t)(Code)(Java Doc) static Box addBBox(Box bbox, float x, float y, float width, float height)(Code)(Java Doc) public void addEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc) Box addNodeBBox(Box bbox, Transform t)(Code)(Java Doc) static Box addShapeBBox(Box bbox, Path path, Transform t)(Code)(Java Doc) static Box addTransformedBBox(Box bbox, float x, float y, float width, float height, Transform m)(Code)(Java Doc) protected Transform appendTransform(Transform tx, Transform workTx)(Code)(Java Doc) protected void clearLastRenderedTile()(Code)(Java Doc) abstract protected void clearLayouts()(Code)(Java Doc) void clearLayouts(ModelNode node)(Code)(Java Doc) final void computeCanRenderDisplayBit(boolean display)(Code)(Java Doc) final void computeCanRenderEmptyPathBit(Path path)(Code)(Java Doc) final void computeCanRenderEmptyViewBoxBit(float[][] viewBox)(Code)(Java Doc) final void computeCanRenderFontSizeBit(float fontSize)(Code)(Java Doc) final void computeCanRenderHeightBit(float height)(Code)(Java Doc) final void computeCanRenderRequiredExtensionsBit(String[] requiredExtensions)(Code)(Java Doc) final void computeCanRenderRequiredFeaturesBit(String[] requiredFeatures)(Code)(Java Doc) final void computeCanRenderSystemLanguageBit(String[] systemLanguage)(Code)(Java Doc) final void computeCanRenderTransformBit(Transform transform)(Code)(Java Doc) final void computeCanRenderWidthBit(float width)(Code)(Java Doc) protected void computeRenderingTile(Tile tile)(Code)(Java Doc) protected boolean contributeBBox()(Code)(Java Doc) public void dispatchEvent(ModelEvent evt)(Code)(Java Doc) abstract public ModelNode getFirstChildNode()(Code)(Java Doc) abstract ModelNode getFirstComputedExpandedChild()(Code)(Java Doc) abstract ModelNode getFirstExpandedChild()(Code)(Java Doc) protected float getFloatPropertyState(int propertyIndex)(Code)(Java Doc) final protected float getInheritedFloatPropertyState(int propertyIndex)(Code)(Java Doc) final protected int getInheritedPackedPropertyState(int propertyIndex)(Code)(Java Doc) final protected Object getInheritedPropertyState(int propertyIndex)(Code)(Java Doc) Transform getInverseTransformState()(Code)(Java Doc) abstract public ModelNode getLastChildNode()(Code)(Java Doc) abstract ModelNode getLastExpandedChild()(Code)(Java Doc) protected Tile getLastRenderedTile()(Code)(Java Doc) public ModelNode getNextSiblingNode()(Code)(Java Doc) public DocumentNode getOwnerDocument()(Code)(Java Doc) protected int getPackedPropertyState(int propertyIndex)(Code)(Java Doc) boolean getPaintNeedsLoad()(Code)(Java Doc) public ModelNode getParent()(Code)(Java Doc) public ModelNode getPreviousSiblingNode()(Code)(Java Doc) protected Object getPropertyState(int propertyIndex)(Code)(Java Doc) protected Tile getRenderingTile()(Code)(Java Doc) public SVGMatrix getScreenCTM()(Code)(Java Doc) public Transform getTransformState()(Code)(Java Doc) protected String getURIBase()(Code)(Java Doc) protected UpdateListener getUpdateListener()(Code)(Java Doc) public boolean hasDescendants()(Code)(Java Doc) protected boolean hasNodeRendering()(Code)(Java Doc) boolean inDocumentTree()(Code)(Java Doc) protected boolean isFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc) protected boolean isInDocumentTree()(Code)(Java Doc) final public boolean isLoaded()(Code)(Java Doc) protected boolean isPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc) protected boolean isPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc) protected void modifiedNode()(Code)(Java Doc) protected void modifyingNode()(Code)(Java Doc) protected void modifyingNodeRendering()(Code)(Java Doc) public ModelNode nodeHitAt(float[] pt)(Code)(Java Doc) final protected ModelNode nodeHitAt(ModelNode node, float[] pt)(Code)(Java Doc) protected static void nodeInserted(ModelNode node)(Code)(Java Doc) protected void nodeRendered()(Code)(Java Doc) void onHookedInDocumentTree()(Code)(Java Doc) void onUnhookedFromDocumentTree()(Code)(Java Doc) static void paint(ModelNode node, RenderGraphics rg)(Code)(Java Doc) public void paint(RenderGraphics rg)(Code)(Java Doc) protected void propagateCanRenderState(int oldCanRenderState, int newCanRenderState)(Code)(Java Doc) protected void propagateFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc) protected void propagatePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc) protected void propagatePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc) protected void recomputeFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc) void recomputeInheritedProperties()(Code)(Java Doc) protected void recomputePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc) protected void recomputePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc) protected void recomputeTransformState()(Code)(Java Doc) protected void recomputeTransformState(Transform parentTransform)(Code)(Java Doc) void recomputeTransformState(Transform parentTransform, ModelNode node)(Code)(Java Doc) final protected Transform recycleTransform(Transform tx, Transform workTx)(Code)(Java Doc) public void removeEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc) protected void setFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc) public void setLoaded(boolean isLoaded)(Code)(Java Doc) protected void setPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc) protected void setParent(ModelNode newParent)(Code)(Java Doc) protected void setParentQuiet(ModelNode newParent)(Code)(Java Doc) protected void setPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc) abstract protected void unhookChildrenQuiet()(Code)(Java Doc) abstract protected void unhookExpandedQuiet()(Code)(Java Doc) final protected void unhookQuiet(ModelNode node)(Code)(Java Doc)
|
|
|