public static 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 java.lang.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, y
SVG_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 java.lang.String |
getStringValue()
Returns the string representation of this transform.
|
java.lang.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 java.lang.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 java.lang.String getValueAsString()
getValueAsString
in interface SVGItem
public 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.SVGTransform
setMatrix
in class AbstractSVGTransform
public void setTranslate(float tx, float ty)
SVGTransform.setTranslate(float,float)
.setTranslate
in interface org.w3c.dom.svg.SVGTransform
setTranslate
in class AbstractSVGTransform
public void setScale(float sx, float sy)
SVGTransform.setScale(float,float)
.setScale
in interface org.w3c.dom.svg.SVGTransform
setScale
in class AbstractSVGTransform
public void setRotate(float angle, float cx, float cy)
SVGTransform.setRotate(float,float,float)
.setRotate
in interface org.w3c.dom.svg.SVGTransform
setRotate
in class AbstractSVGTransform
public void setSkewX(float angle)
SVGTransform.setSkewX(float)
.setSkewX
in interface org.w3c.dom.svg.SVGTransform
setSkewX
in class AbstractSVGTransform
public void setSkewY(float angle)
SVGTransform.setSkewY(float)
.setSkewY
in interface org.w3c.dom.svg.SVGTransform
setSkewY
in class AbstractSVGTransform
protected org.w3c.dom.svg.SVGMatrix createMatrix()
SVGMatrix
used to store the transform.createMatrix
in class AbstractSVGTransform
protected java.lang.String getStringValue()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.