public class AbstractSVGTransformList.SVGTransformItem extends AbstractSVGTransform implements SVGItem
SVGTransform in the list.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
angleOnly
Whether the rotation transform value specifies only an angle.
|
protected String |
itemStringValue
String representation of the item.
|
protected AbstractSVGList |
parent
List the item belongs to.
|
protected boolean |
xOnly
Whether the transform value specifies only an x value, no y value.
|
affineTransform, angle, type, x, ySVG_TRANSFORM_MATRIX, SVG_TRANSFORM_ROTATE, SVG_TRANSFORM_SCALE, SVG_TRANSFORM_SKEWX, SVG_TRANSFORM_SKEWY, SVG_TRANSFORM_TRANSLATE, SVG_TRANSFORM_UNKNOWN| Constructor and Description |
|---|
SVGTransformItem()
Creates a new, uninitialized SVGTransformItem.
|
SVGTransformItem(org.w3c.dom.svg.SVGTransform transform)
Creates a new SVGTransformItem from the given
SVGTransform. |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(org.w3c.dom.svg.SVGTransform transform)
Copies the values from the given
SVGTransform into this
AbstractSVGTransformList.SVGTransformItem. |
protected org.w3c.dom.svg.SVGMatrix |
createMatrix()
Creates the
SVGMatrix used to store the transform. |
AbstractSVGList |
getParent()
Returns the parent list of this item.
|
protected String |
getStringValue()
Returns the string representation of this transform.
|
String |
getValueAsString()
Returns the cached representation of the item if valid, otherwise
recomputes the String representation of the item.
|
protected void |
matrix(float a,
float b,
float c,
float d,
float e,
float f)
Sets the transform to be a matrix transform.
|
protected void |
resetAttribute()
Notifies the parent list that this item has changed.
|
protected void |
rotate(float angle)
Sets the transform to be rotation.
|
protected void |
scale(float x)
Sets the transform to be an x scale.
|
void |
setMatrix(org.w3c.dom.svg.SVGMatrix matrix)
DOM: Implements
SVGTransform.setMatrix(SVGMatrix). |
void |
setParent(AbstractSVGList list)
Assigns a parent list to this item.
|
void |
setRotate(float angle,
float cx,
float cy)
DOM: Implements
SVGTransform.setRotate(float,float,float). |
void |
setScale(float sx,
float sy)
DOM: Implements
SVGTransform.setScale(float,float). |
void |
setSkewX(float angle)
DOM: Implements
SVGTransform.setSkewX(float). |
void |
setSkewY(float angle)
DOM: Implements
SVGTransform.setSkewY(float). |
void |
setTranslate(float tx,
float ty)
DOM: Implements
SVGTransform.setTranslate(float,float). |
protected void |
translate(float x)
Sets the transform to be an x translation.
|
protected boolean xOnly
protected boolean angleOnly
protected AbstractSVGList parent
protected String itemStringValue
public SVGTransformItem()
public SVGTransformItem(org.w3c.dom.svg.SVGTransform transform)
SVGTransform.protected void resetAttribute()
public void setParent(AbstractSVGList list)
public AbstractSVGList getParent()
public String getValueAsString()
getValueAsString in interface SVGItempublic void assign(org.w3c.dom.svg.SVGTransform transform)
SVGTransform into this
AbstractSVGTransformList.SVGTransformItem.protected void translate(float x)
protected void rotate(float angle)
protected void scale(float x)
protected void matrix(float a,
float b,
float c,
float d,
float e,
float f)
public void setMatrix(org.w3c.dom.svg.SVGMatrix matrix)
SVGTransform.setMatrix(SVGMatrix).setMatrix in interface org.w3c.dom.svg.SVGTransformsetMatrix in class AbstractSVGTransformpublic void setTranslate(float tx,
float ty)
SVGTransform.setTranslate(float,float).setTranslate in interface org.w3c.dom.svg.SVGTransformsetTranslate in class AbstractSVGTransformpublic void setScale(float sx,
float sy)
SVGTransform.setScale(float,float).setScale in interface org.w3c.dom.svg.SVGTransformsetScale in class AbstractSVGTransformpublic void setRotate(float angle,
float cx,
float cy)
SVGTransform.setRotate(float,float,float).setRotate in interface org.w3c.dom.svg.SVGTransformsetRotate in class AbstractSVGTransformpublic void setSkewX(float angle)
SVGTransform.setSkewX(float).setSkewX in interface org.w3c.dom.svg.SVGTransformsetSkewX in class AbstractSVGTransformpublic void setSkewY(float angle)
SVGTransform.setSkewY(float).setSkewY in interface org.w3c.dom.svg.SVGTransformsetSkewY in class AbstractSVGTransformprotected org.w3c.dom.svg.SVGMatrix createMatrix()
SVGMatrix used to store the transform.createMatrix in class AbstractSVGTransformprotected String getStringValue()
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.