|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.util.AbstractPaintingState
public abstract class AbstractPaintingState
A base class which holds information about the current painting state.
Nested Class Summary | |
---|---|
class |
AbstractPaintingState.AbstractData
A base painting state data holding object |
class |
AbstractPaintingState.StateStack<E>
A stack implementation which holds state objects |
Constructor Summary | |
---|---|
AbstractPaintingState()
|
Method Summary | |
---|---|
boolean |
checkTransform(java.awt.geom.AffineTransform tf)
Check the current transform. |
void |
clear()
Clears the state stack |
void |
clearTransform()
Clears the current AffineTransform to the Identity AffineTransform |
java.lang.Object |
clone()
|
void |
concatenate(java.awt.geom.AffineTransform at)
Concatenates the given AffineTransform to the current one. |
java.awt.Color |
getBackColor()
Get the background color. |
java.awt.geom.AffineTransform |
getBaseTransform()
Get a copy of the base transform for the page. |
java.awt.Color |
getColor()
Get the color. |
AbstractPaintingState.AbstractData |
getData()
Returns the currently valid state |
java.lang.String |
getFontName()
Gets the current font name |
int |
getFontSize()
Gets the current font size |
float |
getLineWidth()
Returns the current line width |
protected java.util.Stack<AbstractPaintingState.AbstractData> |
getStateStack()
Return the state stack |
java.awt.geom.AffineTransform |
getTransform()
Get the current transform. |
protected abstract AbstractPaintingState |
instantiate()
Instantiates a new state object |
protected abstract AbstractPaintingState.AbstractData |
instantiateData()
Instantiates a new state data object |
void |
resetTransform()
Resets the current AffineTransform to the Base AffineTransform. |
AbstractPaintingState.AbstractData |
restore()
Restore the current painting state. |
java.util.List<AbstractPaintingState.AbstractData> |
restoreAll()
Restore all painting state data. |
void |
save()
Save the current painting state. |
void |
saveAll(java.util.List<AbstractPaintingState.AbstractData> dataList)
Save all painting state data. |
boolean |
setBackColor(java.awt.Color col)
Set the current background color. |
boolean |
setColor(java.awt.Color col)
Set the current color. |
boolean |
setDashArray(float[] dash)
Sets the dash array (line type) for the current basic stroke |
protected void |
setData(AbstractPaintingState.AbstractData data)
Sets the current state data |
boolean |
setFontName(java.lang.String internalFontName)
Set the current font name |
boolean |
setFontSize(int size)
Set the current font size. |
boolean |
setLineWidth(float width)
Set the current line width. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractPaintingState()
Method Detail |
---|
protected abstract AbstractPaintingState.AbstractData instantiateData()
protected abstract AbstractPaintingState instantiate()
public AbstractPaintingState.AbstractData getData()
public boolean setColor(java.awt.Color col)
col
- the color to set
public java.awt.Color getColor()
public java.awt.Color getBackColor()
public boolean setBackColor(java.awt.Color col)
col
- the background color to set
public boolean setFontName(java.lang.String internalFontName)
internalFontName
- the internal font name
public java.lang.String getFontName()
public int getFontSize()
public boolean setFontSize(int size)
size
- the font size to set
public boolean setLineWidth(float width)
width
- the line width in points
public float getLineWidth()
public boolean setDashArray(float[] dash)
dash
- the line dash array
public java.awt.geom.AffineTransform getTransform()
public boolean checkTransform(java.awt.geom.AffineTransform tf)
tf
- the transform the check against
public java.awt.geom.AffineTransform getBaseTransform()
public void concatenate(java.awt.geom.AffineTransform at)
at
- the transform to concatenate to the current level transformpublic void resetTransform()
public void clearTransform()
public void save()
public AbstractPaintingState.AbstractData restore()
public void saveAll(java.util.List<AbstractPaintingState.AbstractData> dataList)
dataList
- a state data listpublic java.util.List<AbstractPaintingState.AbstractData> restoreAll()
protected void setData(AbstractPaintingState.AbstractData data)
data
- the state datapublic void clear()
protected java.util.Stack<AbstractPaintingState.AbstractData> getStateStack()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |