|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tinyline.svg.SVGNode
com.tinyline.svg.SVGGroupElem
com.tinyline.svg.SVGSVGElem
The SVGSVGElem class implements the 'svg' element.
An SVG document fragment consists of any number of SVG elements contained within an 'svg' element.
An SVG document fragment can range from an empty fragment (i.e., no content inside of the 'svg' element), to a very simple SVG document fragment containing a single SVG graphics element such as a 'rect', to a complex, deeply nested collection of container elements and graphics elements.
Attribute definitions:
| Field Summary | |
static boolean |
AUTOFIT
The hint provided by the TinyLine application to choose the viewport location and size. |
TinyString |
baseProfile
Describes the minimum SVG language profile that the author believes is necessary to correctly render the content. |
int |
preserveAspectRatio
The 'preserveAspectRatio' attribute is used for adapting the content to devices with different display aspect ratios. |
TinyString |
version
Indicates the SVG language version to which this document fragment conforms. |
SVGRect |
viewBox
The viewBox specify that a given set of graphics stretch to fit a particular container element. |
SVGRect |
viewPort
The viewport is the finite rectangular region of the canvas where actual rendering occurs. |
int |
zoomAndPan
The 'zoomAndPan' attribute defines the ability to magnify and pan. |
| Fields inherited from class com.tinyline.svg.SVGGroupElem |
showBounds, xlink_href |
| Fields inherited from class com.tinyline.svg.SVGNode |
animatedVals, bounds, children, color, display, fill, fillOpacity, fillRule, fontFamily, fontSize, fontStyle, fontWeight, helem, id, opacity, outlined, ownerDocument, parent, stopColor, stopOpacity, stroke, strokeDashArray, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, strokeOpacity, strokeWidth, textAnchor, transform, visibility, xmlSpace |
| Constructor Summary | |
SVGSVGElem()
Constructs a new empty SVGSVGElem. |
|
| Method Summary | |
int |
createOutline()
Creates an outline of this node. |
java.lang.Object |
getAttribute(int hattr)
Returns the value object for the given attribute, or null object otherwise. |
int |
getCurrentScale()
Returns the current scale factor |
int |
recalculateViewboxToViewportTransform()
Recalculates the current transform from the viewbox to the viewport |
int |
setAttribute(int hattr,
java.lang.Object value)
Assigns or modifies the value of the specified attribute. |
int |
setCurrentScale(int scale)
Sets the current scale factor |
int |
setCurrentTranslate(int tx,
int ty)
Sets the current translate to the point (tx, ty) |
| Methods inherited from class com.tinyline.svg.SVGGroupElem |
copyNode, getDevBounds, nodeHitAt, paint |
| Methods inherited from class com.tinyline.svg.SVGNode |
addChild, contains, getBounds, getCapStyle, getCurrentColor, getDashArray, getDashOffset, getDisplay, getFillColor, getFillOpacity, getFillRule, getFontFamily, getFontSize, getGlobalTransform, getJoinStyle, getLineThickness, getMiterLimit, getNodeById, getOpacity, getStopColor, getStopOpacity, getStrokeColor, getStrokeOpacity, getTextAnchor, getVisibility, intersects, isDisplay, isVisible, matchUserAgent, removeChild, resolveColor, seekAElem |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean AUTOFIT
public SVGRect viewPort
public SVGRect viewBox
public int preserveAspectRatio
In SVGT the
Value: ( SVG.NONE | SVG.XMIDYMID_MEET )
Animatable: Yes
Init: SVG.XMIDYMID_MEET
public int zoomAndPan
If disable, the user agent shall disable any magnification and panning controls and not allow the user to magnify or pan on the given document fragment.
If magnify, in environments that support user interactivity, the user agent shall provide controls to allow the user to perform a "magnify" operation on the document fragment.
Value: ( SVG.DISABLE | SVG.MAGNIFY )
Animatable: No
Init: SVG.MAGNIFY
public TinyString version
public TinyString baseProfile
| Constructor Detail |
public SVGSVGElem()
| Method Detail |
public int setAttribute(int hattr,
java.lang.Object value)
throws java.lang.Exception
setAttribute in class SVGGroupElemhattr - The attribute handle.value - The value of the attribute.
java.lang.Exception - if the value type doesn not match to the attribute handle.public java.lang.Object getAttribute(int hattr)
null object otherwise.
getAttribute in class SVGGroupElemhattr - The attribute handle.
public int createOutline()
SVGGroupElem
createOutline in class SVGGroupElempublic int setCurrentScale(int scale)
public int setCurrentTranslate(int tx,
int ty)
public int getCurrentScale()
public int recalculateViewboxToViewportTransform()
|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||