Package org.apache.fop.util
Class AbstractPaintingState.AbstractData
java.lang.Object
org.apache.fop.util.AbstractPaintingState.AbstractData
- All Implemented Interfaces:
Serializable,Cloneable
- Enclosing class:
AbstractPaintingState
public abstract class AbstractPaintingState.AbstractData
extends Object
implements Cloneable, Serializable
A base painting state data holding object
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ColorThe current background colorprotected ColorThe current colorprotected float[]The dash array for the current basic stroke (line type)protected StringThe current font nameprotected intThe current font sizeprotected StringThe current (optional content group) layer.protected floatThe current line widthprotected AffineTransformThe current transform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidResets the current AffineTransform.clone()voidConcatenate the given AffineTransform with the current thus creating a new viewport.intReturns the derived rotation from the current transformgetLayer()Get the current AffineTransform.protected abstract AbstractPaintingState.AbstractDataReturns a newly create data objectvoidvoidsetTransform(AffineTransform baseTransform) Sets the current AffineTransform.toString()
-
Field Details
-
color
The current color -
backColor
The current background color -
fontName
The current font name -
fontSize
protected int fontSizeThe current font size -
lineWidth
protected float lineWidthThe current line width -
dashArray
protected float[] dashArrayThe dash array for the current basic stroke (line type) -
transform
The current transform -
layer
The current (optional content group) layer.
-
-
Constructor Details
-
AbstractData
public AbstractData()
-
-
Method Details
-
instantiate
Returns a newly create data object- Returns:
- a new data object
-
concatenate
Concatenate the given AffineTransform with the current thus creating a new viewport. Note that all concatenation operations are logged so they can be replayed if necessary (ex. for block-containers with "fixed" positioning.- Parameters:
at- Transformation to perform
-
getTransform
Get the current AffineTransform.- Returns:
- the current transform
-
setTransform
Sets the current AffineTransform.- Parameters:
baseTransform- the transform
-
clearTransform
public void clearTransform()Resets the current AffineTransform. -
setLayer
-
getLayer
-
getDerivedRotation
public int getDerivedRotation()Returns the derived rotation from the current transform- Returns:
- the derived rotation from the current transform
-
clone
-
toString
-