public class GraphicsState extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIPTEXT |
float[][] |
CTM
CTM which is used for plotting (see pdf
spec for explanation
|
static int |
FILL |
static int |
FILLSTROKE |
static int |
INVISIBLE |
float[][] |
lastCTM
copy used for images
|
GenericColorSpace |
nonstrokeColorSpace
nonstroke colorspace
|
float[][] |
scaleFactor |
PdfObject |
SMask |
static int |
STROKE |
GenericColorSpace |
strokeColorSpace
stroke colorspace
|
float |
x |
float |
y |
| Constructor and Description |
|---|
GraphicsState() |
GraphicsState(GraphicsState gs) |
GraphicsState(int minX,
int minY)
initialise the GraphicsState
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClip(Area current_area)
add to clip (used for TR 7)
|
void |
applyFXStroke(javafx.scene.shape.Shape shape)
Applies the stroke stored in the GraphicsState to the shape being passed in
|
void |
checkWholePageClip(int max_y)
check whole page clip (if whole page set clip to null)
|
GraphicsState |
deepCopy()
custom clone method
|
float |
getAlpha(int type)
use STROKE or FILL
|
float |
getAlphaMax(int type)
use STROKE or FILL
|
int |
getBMValue() |
Area |
getClippingShape()
get clipping shape
|
float |
getCTMAdjustedLineWidth()
get the stroke width after being adjusted by the CTM
|
int |
getFillType()
get fill type
|
javafx.scene.shape.Shape |
getFXClippingShape() |
float |
getLineWidth()
get line width
|
PdfPaint |
getNonstrokeColor() |
boolean |
getNonStrokeOP()
get stroke op
|
float |
getOPM()
get stroke op
|
int |
getOutputLineWidth()
get line width for HTML/SVG etc.
|
Stroke |
getStroke()
get the current stroke to be used - basic solid line or pattern
|
PdfPaint |
getStrokeColor() |
int |
getTextRenderType()
set text render type
|
TextState |
getTextState() |
Object[] |
getTR() |
boolean |
hasClipChanged()
tell software if clip has changed and
return
|
void |
resetColorSpaces(int strokeColorData,
int nonStrokeColorData) |
void |
setAlpha(int type,
float value) |
void |
setBMValue(int bm) |
void |
setCapStyle(int cap_style)
set line join style
|
void |
setClippingShape(Area new_clip)
set clipping shape
|
void |
setCTMAdjustedLineWidth(float width)
get the stroke width after being adjusted by the CTM
|
void |
setDashArray(float[] current_line_dash_array)
set dash array
|
void |
setDashPhase(int current_line_dash_phase)
set dash phase
|
void |
setFillType(int fill_type)
set fill type
|
void |
setJoinStyle(int join_style)
set line join style
|
void |
setLineWidth(float current_line_width)
set line width
|
void |
setMaxAlpha(int type,
float value) |
void |
setMitreLimit(int mitre_limit)
set mitre limit
|
void |
setMode(PdfObject GS)
read GS settings and set supported values
|
void |
setNonstrokeColor(PdfPaint currentNonstrokeColor) |
void |
setOutputLineWidth(int output_line_width)
set line width for HTML/SVG etc.
|
void |
setStrokeColor(PdfPaint strokeColor) |
void |
setTextRenderType(int text_render_type)
set text render type
|
void |
setTextState(TextState currentTextState) |
String |
toString() |
void |
updateClip(Area current_area)
update clip
|
void |
updateClip(Object fxPath) |
public float x
public float y
public final float[][] lastCTM
public PdfObject SMask
public GenericColorSpace strokeColorSpace
public GenericColorSpace nonstrokeColorSpace
public float[][] CTM
public float[][] scaleFactor
public static final int STROKE
public static final int FILL
public static final int FILLSTROKE
public static final int INVISIBLE
public static final int CLIPTEXT
public GraphicsState(GraphicsState gs)
public GraphicsState()
public GraphicsState(int minX,
int minY)
minX - minY - public void setMaxAlpha(int type,
float value)
public void setAlpha(int type,
float value)
public float getAlpha(int type)
type - public float getAlphaMax(int type)
type - public boolean getNonStrokeOP()
public float getOPM()
public Object[] getTR()
public final void setTextRenderType(int text_render_type)
text_render_type - public final int getTextRenderType()
public final void setMitreLimit(int mitre_limit)
mitre_limit - public final float getLineWidth()
public final int getOutputLineWidth()
public final void setFillType(int fill_type)
fill_type - public final void updateClip(Area current_area)
current_area - public final void addClip(Area current_area)
current_area - public final Stroke getStroke()
public final void applyFXStroke(javafx.scene.shape.Shape shape)
shape - public float getCTMAdjustedLineWidth()
public final void setLineWidth(float current_line_width)
current_line_width - public void setCTMAdjustedLineWidth(float width)
width - CTM adjusted line widthpublic final void setOutputLineWidth(int output_line_width)
public final Area getClippingShape()
public void setMode(PdfObject GS)
GS - public final void setCapStyle(int cap_style)
cap_style - public final void setJoinStyle(int join_style)
join_style - public final void checkWholePageClip(int max_y)
max_y - public final void setDashArray(float[] current_line_dash_array)
current_line_dash_array - public final GraphicsState deepCopy()
public final void setDashPhase(int current_line_dash_phase)
current_line_dash_phase - public final int getFillType()
public final void setClippingShape(Area new_clip)
new_clip - public PdfPaint getNonstrokeColor()
public void setNonstrokeColor(PdfPaint currentNonstrokeColor)
currentNonstrokeColor - The currentNonstrokeColor to set.public PdfPaint getStrokeColor()
public void setStrokeColor(PdfPaint strokeColor)
strokeColor - The strokeColor to set.public boolean hasClipChanged()
public void setTextState(TextState currentTextState)
public TextState getTextState()
public void updateClip(Object fxPath)
public javafx.scene.shape.Shape getFXClippingShape()
public int getBMValue()
public void setBMValue(int bm)
public void resetColorSpaces(int strokeColorData,
int nonStrokeColorData)
Copyright © 2017. All rights reserved.