org.apache.batik.dom.svg

Class AbstractSVGTransformList.SVGTransformItem

protected class AbstractSVGTransformList.SVGTransformItem extends AbstractSVGTransform implements SVGItem

An SVGTransform in the list.
Field Summary
protected booleanangleOnly
Whether the rotation transform value specifies only an angle.
protected StringitemStringValue
String representation of the item.
protected AbstractSVGListparent
List the item belongs to.
protected booleanxOnly
Whether the transform value specifies only an x value, no y value.
Constructor Summary
protected SVGTransformItem()
Creates a new, uninitialized SVGTransformItem.
protected SVGTransformItem(SVGTransform transform)
Creates a new SVGTransformItem from the given SVGTransform.
Method Summary
voidassign(SVGTransform transform)
Copies the values from the given SVGTransform into this SVGTransformItem.
protected SVGMatrixcreateMatrix()
Creates the SVGMatrix used to store the transform.
AbstractSVGListgetParent()
Returns the parent list of this item.
protected StringgetStringValue()
Returns the string representation of this transform.
StringgetValueAsString()
Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.
protected voidmatrix(float a, float b, float c, float d, float e, float f)
Sets the transform to be a matrix transform.
protected voidresetAttribute()
Notifies the parent list that this item has changed.
protected voidrotate(float angle)
Sets the transform to be rotation.
protected voidscale(float x)
Sets the transform to be an x scale.
voidsetMatrix(SVGMatrix matrix)
DOM: Implements SVGTransform#setMatrix(SVGMatrix).
voidsetParent(AbstractSVGList list)
Assigns a parent list to this item.
voidsetRotate(float angle, float cx, float cy)
DOM: Implements SVGTransform#setRotate(float,float,float).
voidsetScale(float sx, float sy)
DOM: Implements SVGTransform#setScale(float,float).
voidsetSkewX(float angle)
DOM: Implements SVGTransform#setSkewX(float).
voidsetSkewY(float angle)
DOM: Implements SVGTransform#setSkewY(float).
voidsetTranslate(float tx, float ty)
DOM: Implements SVGTransform#setTranslate(float,float).
protected voidtranslate(float x)
Sets the transform to be an x translation.

Field Detail

angleOnly

protected boolean angleOnly
Whether the rotation transform value specifies only an angle.

itemStringValue

protected String itemStringValue
String representation of the item. This is a cached representation of the item while it is not changed.

parent

protected AbstractSVGList parent
List the item belongs to.

xOnly

protected boolean xOnly
Whether the transform value specifies only an x value, no y value.

Constructor Detail

SVGTransformItem

protected SVGTransformItem()
Creates a new, uninitialized SVGTransformItem.

SVGTransformItem

protected SVGTransformItem(SVGTransform transform)
Creates a new SVGTransformItem from the given SVGTransform.

Method Detail

assign

public void assign(SVGTransform transform)
Copies the values from the given SVGTransform into this SVGTransformItem.

createMatrix

protected SVGMatrix createMatrix()
Creates the SVGMatrix used to store the transform.

getParent

public AbstractSVGList getParent()
Returns the parent list of this item.

getStringValue

protected String getStringValue()
Returns the string representation of this transform.

getValueAsString

public String getValueAsString()
Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.

matrix

protected void matrix(float a, float b, float c, float d, float e, float f)
Sets the transform to be a matrix transform.

resetAttribute

protected void resetAttribute()
Notifies the parent list that this item has changed. This also discards the cached representation of the item.

rotate

protected void rotate(float angle)
Sets the transform to be rotation.

scale

protected void scale(float x)
Sets the transform to be an x scale.

setMatrix

public void setMatrix(SVGMatrix matrix)
DOM: Implements SVGTransform#setMatrix(SVGMatrix).

setParent

public void setParent(AbstractSVGList list)
Assigns a parent list to this item.

Parameters: list The list the item belongs.

setRotate

public void setRotate(float angle, float cx, float cy)
DOM: Implements SVGTransform#setRotate(float,float,float).

setScale

public void setScale(float sx, float sy)
DOM: Implements SVGTransform#setScale(float,float).

setSkewX

public void setSkewX(float angle)
DOM: Implements SVGTransform#setSkewX(float).

setSkewY

public void setSkewY(float angle)
DOM: Implements SVGTransform#setSkewY(float).

setTranslate

public void setTranslate(float tx, float ty)
DOM: Implements SVGTransform#setTranslate(float,float).

translate

protected void translate(float x)
Sets the transform to be an x translation.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.