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
Modifier and TypeFieldDescriptionprotected Color
The current background colorprotected Color
The current colorprotected float[]
The dash array for the current basic stroke (line type)protected String
The current font nameprotected int
The current font sizeprotected String
The current (optional content group) layer.protected float
The current line widthprotected AffineTransform
The current transform -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Resets the current AffineTransform.clone()
void
Concatenate the given AffineTransform with the current thus creating a new viewport.int
Returns the derived rotation from the current transformgetLayer()
Get the current AffineTransform.protected abstract AbstractPaintingState.AbstractData
Returns a newly create data objectvoid
void
setTransform
(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
-