|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGTransform
org.apache.batik.dom.svg.AbstractSVGTransformList.SVGTransformItem
public class AbstractSVGTransformList.SVGTransformItem
An SVGTransform in the list.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.apache.batik.dom.svg.AbstractSVGTransform |
|---|
affineTransform, angle, type, x, y |
| Fields inherited from interface org.w3c.dom.svg.SVGTransform |
|---|
SVG_TRANSFORM_MATRIX, SVG_TRANSFORM_ROTATE, SVG_TRANSFORM_SCALE, SVG_TRANSFORM_SKEWX, SVG_TRANSFORM_SKEWY, SVG_TRANSFORM_TRANSLATE, SVG_TRANSFORM_UNKNOWN |
| Constructor Summary | |
|---|---|
AbstractSVGTransformList.SVGTransformItem()
Creates a new, uninitialized SVGTransformItem. |
|
AbstractSVGTransformList.SVGTransformItem(org.w3c.dom.svg.SVGTransform transform)
Creates a new SVGTransformItem from the given SVGTransform. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.batik.dom.svg.AbstractSVGTransform |
|---|
assign, getAngle, getMatrix, getType, getX, getY, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean xOnly
protected boolean angleOnly
protected AbstractSVGList parent
protected String itemStringValue
| Constructor Detail |
|---|
public AbstractSVGTransformList.SVGTransformItem()
public AbstractSVGTransformList.SVGTransformItem(org.w3c.dom.svg.SVGTransform transform)
SVGTransform.
| Method Detail |
|---|
protected void resetAttribute()
public void setParent(AbstractSVGList list)
setParent in interface SVGItemlist - The list the item belongs.public AbstractSVGList getParent()
getParent in interface SVGItempublic 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 AbstractSVGTransform
public void setTranslate(float tx,
float ty)
SVGTransform.setTranslate(float,float).
setTranslate in interface org.w3c.dom.svg.SVGTransformsetTranslate in class AbstractSVGTransform
public void setScale(float sx,
float sy)
SVGTransform.setScale(float,float).
setScale in interface org.w3c.dom.svg.SVGTransformsetScale in class AbstractSVGTransform
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||