SVGItempublic class AbstractSVGTransformList.SVGTransformItem extends AbstractSVGTransform implements SVGItem
SVGTransform in the list.| Modifier and Type | Field | 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| Constructor | 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 | 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 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 class AbstractSVGTransformpublic void setTranslate(float tx,
float ty)
SVGTransform.setTranslate(float,float).setTranslate in class AbstractSVGTransformpublic void setScale(float sx,
float sy)
SVGTransform.setScale(float,float).setScale in class AbstractSVGTransformpublic void setRotate(float angle,
float cx,
float cy)
SVGTransform.setRotate(float,float,float).setRotate in class AbstractSVGTransformpublic void setSkewX(float angle)
SVGTransform.setSkewX(float).setSkewX in class AbstractSVGTransformpublic void setSkewY(float angle)
SVGTransform.setSkewY(float).setSkewY in class AbstractSVGTransformprotected org.w3c.dom.svg.SVGMatrix createMatrix()
SVGMatrix used to store the transform.createMatrix in class AbstractSVGTransformprotected java.lang.String getStringValue()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.