public class GState
extends java.lang.Object
Note: current clipping path is not tracked in the graphics state for efficiency reasons. In most cases tracking of the current clipping path is best left to the client.
Modifier and Type | Field and Description |
---|---|
static int |
e_absolute_colorimetric
The Constant e_absolute_colorimetric.
|
static int |
e_alpha_is_shape
The Constant e_alpha_is_shape.
|
static int |
e_auto_stoke_adjust
The Constant e_auto_stoke_adjust.
|
static int |
e_bevel_join
The Constant e_bevel_join.
|
static int |
e_BG_funct
The Constant e_BG_funct.
|
static int |
e_bl_color
The Constant e_bl_color.
|
static int |
e_bl_color_burn
The Constant e_bl_color_burn.
|
static int |
e_bl_color_dodge
The Constant e_bl_color_dodge.
|
static int |
e_bl_compatible
The Constant e_bl_compatible.
|
static int |
e_bl_darken
The Constant e_bl_darken.
|
static int |
e_bl_difference
The Constant e_bl_difference.
|
static int |
e_bl_exclusion
The Constant e_bl_exclusion.
|
static int |
e_bl_hard_light
The Constant e_bl_hard_light.
|
static int |
e_bl_hue
The Constant e_bl_hue.
|
static int |
e_bl_lighten
The Constant e_bl_lighten.
|
static int |
e_bl_luminosity
The Constant e_bl_luminosity.
|
static int |
e_bl_multiply
The Constant e_bl_multiply.
|
static int |
e_bl_normal
The Constant e_bl_normal.
|
static int |
e_bl_overlay
The Constant e_bl_overlay.
|
static int |
e_bl_saturation
The Constant e_bl_saturation.
|
static int |
e_bl_screen
The Constant e_bl_screen.
|
static int |
e_bl_soft_light
The Constant e_bl_soft_light.
|
static int |
e_blend_mode
The Constant e_blend_mode.
|
static int |
e_butt_cap
The Constant e_butt_cap.
|
static int |
e_char_spacing
The Constant e_char_spacing.
|
static int |
e_clip_text
The Constant e_clip_text.
|
static int |
e_dash_pattern
The Constant e_dash_pattern.
|
static int |
e_fill_clip_text
The Constant e_fill_clip_text.
|
static int |
e_fill_color
The Constant e_fill_color.
|
static int |
e_fill_cs
The Constant e_fill_cs.
|
static int |
e_fill_overprint
The Constant e_fill_overprint.
|
static int |
e_fill_stroke_clip_text
The Constant e_fill_stroke_clip_text.
|
static int |
e_fill_stroke_text
The Constant e_fill_stroke_text.
|
static int |
e_fill_text
The Constant e_fill_text.
|
static int |
e_flatness
The Constant e_flatness.
|
static int |
e_font
The Constant e_font.
|
static int |
e_font_size
The Constant e_font_size.
|
static int |
e_halftone
The Constant e_halftone.
|
static int |
e_horizontal_scale
The Constant e_horizontal_scale.
|
static int |
e_invisible_text
The Constant e_invisible_text.
|
static int |
e_leading
The Constant e_leading.
|
static int |
e_line_cap
The Constant e_line_cap.
|
static int |
e_line_join
The Constant e_line_join.
|
static int |
e_line_width
The Constant e_line_width.
|
static int |
e_miter_join
The Constant e_miter_join.
|
static int |
e_miter_limit
The Constant e_miter_limit.
|
static int |
e_null
The Constant e_null.
|
static int |
e_opacity_fill
The Constant e_opacity_fill.
|
static int |
e_opacity_stroke
The Constant e_opacity_stroke.
|
static int |
e_overprint_mode
The Constant e_overprint_mode.
|
static int |
e_perceptual
The Constant e_perceptual.
|
static int |
e_relative_colorimetric
The Constant e_relative_colorimetric.
|
static int |
e_rendering_intent
The Constant e_rendering_intent.
|
static int |
e_round_cap
The Constant e_round_cap.
|
static int |
e_round_join
The Constant e_round_join.
|
static int |
e_saturation
The Constant e_saturation.
|
static int |
e_smoothnes
The Constant e_smoothnes.
|
static int |
e_soft_mask
The Constant e_soft_mask.
|
static int |
e_square_cap
The Constant e_square_cap.
|
static int |
e_stroke_clip_text
The Constant e_stroke_clip_text.
|
static int |
e_stroke_color
The Constant e_stroke_color.
|
static int |
e_stroke_cs
The Constant e_stroke_cs.
|
static int |
e_stroke_overprint
The Constant e_stroke_overprint.
|
static int |
e_stroke_text
The Constant e_stroke_text.
|
static int |
e_text_knockout
The Constant e_text_knockout.
|
static int |
e_text_pos_offset
The Constant e_text_pos_offset.
|
static int |
e_text_render_mode
The Constant e_text_render_mode.
|
static int |
e_text_rise
The Constant e_text_rise.
|
static int |
e_transfer_funct
The Constant e_transfer_funct.
|
static int |
e_transform
The Constant e_transform.
|
static int |
e_UCR_funct
The Constant e_UCR_funct.
|
static int |
e_word_spacing
The Constant e_word_spacing.
|
Modifier and Type | Method and Description |
---|---|
void |
concat(double a,
double b,
double c,
double d,
double h,
double v)
Concatenate the given matrix to the transformation matrix of this element.
|
void |
concat(Matrix2D mtx)
Concatenate the given matrix to the transformation matrix of this element.
|
boolean |
getAISFlag()
Get the alpha source flag.
|
boolean |
getAutoStrokeAdjust()
Get the auto stroke adjust.
|
Obj |
getBlackGenFunct()
Get the black generation function
|
int |
getBlendMode()
Get the blend mode.
|
double |
getCharSpacing()
Get the char spacing.
|
double[] |
getDashes()
Get the dashes.
|
ColorPt |
getFillColor()
Get the fill color.
|
ColorSpace |
getFillColorSpace()
Get the fill color space.
|
double |
getFillOpacity()
Get the fill opacity.
|
boolean |
getFillOverprint()
Get the fill overprint.
|
PatternColor |
getFillPattern()
Get the fill pattern.
|
double |
getFlatness()
Get the flatness.
|
Font |
getFont()
Get the font.
|
double |
getFontSize()
Get the font size.
|
Obj |
getHalftone()
Get the halftone.
|
double |
getHorizontalScale()
Get the horizontal scale.
|
double |
getLeading()
Get the leading parameter.
|
int |
getLineCap()
Get the line cap.
|
int |
getLineJoin()
Get the line join.
|
double |
getLineWidth()
Get the line width.
|
double |
getMiterLimit()
Get the miter limit.
|
int |
getOverprintMode()
Get the overprint mode.
|
double |
getPhase()
Get the phase.
|
int |
getRenderingIntent()
Get the rendering intent.
|
double |
getSmoothnessTolerance()
Get the smoothness tolerance.
|
Obj |
getSoftMask()
Get the soft mask.
|
Matrix2D |
getSoftMaskTransform()
Get the soft mask transform.
|
ColorPt |
getStrokeColor()
Get the stroke color.
|
ColorSpace |
getStrokeColorSpace()
Get the stroke color space.
|
double |
getStrokeOpacity()
Get the stroke opacity.
|
boolean |
getStrokeOverprint()
Get the stroke overprint.
|
PatternColor |
GetStrokePattern()
Get the stroke pattern.
|
int |
getTextRenderMode()
Get the text render mode.
|
double |
getTextRise()
Get the text rise.
|
Obj |
getTransferFunct()
Get the transfer funct.
|
Matrix2D |
getTransform()
Get the transform.
|
Obj |
getUCRFunct()
Get the undercolor-removal function
|
double |
getWordSpacing()
Get the word spacing.
|
boolean |
isTextKnockout()
Checks if is text knockout.
|
void |
setAISFlag(boolean AIS)
Specifies if the alpha is to be interpreted as a shape or opacity mask.
|
void |
setAutoStrokeAdjust(boolean SA)
Specify whether to apply automatic stroke adjustment.
|
void |
setBlackGenFunct(Obj BG)
Set black-generation function used during conversion between DeviceRGB
and DeviceCMYK.
|
void |
setBlendMode(int BM)
Set the current blend mode to be used in the transparent imaging model.
|
void |
setCharSpacing(double char_spacing)
Set character spacing.
|
void |
setDashPattern(double[] dash_array,
double phase)
Set the dash pattern used to stroke paths.
|
void |
setFillColor(ColorPt c)
Set the color value/point used for filling operations.
|
void |
setFillColor(PatternColor pattern)
Set the fill color to the given tiling pattern.
|
void |
setFillColor(PatternColor pattern,
ColorPt c)
Set the fill color to the given uncolored tiling pattern.
|
void |
setFillColorSpace(ColorSpace cs)
Set the color space used for filling operations.
|
void |
setFillOpacity(double ca)
Set the opacity value for painting operations other than stroking.
|
void |
setFillOverprint(boolean op)
Specifies if overprint is enabled for fill operations.
|
void |
setFlatness(double flatness)
Set the value of flatness tolerance.
|
void |
setFont(Font font,
double font_sz)
Set the font and font size used to draw text.
|
void |
setHalftone(Obj HT)
Set the halftone.
|
void |
setHorizontalScale(double hscale)
Set horizontal scale.
|
void |
setLeading(double leading)
Set the leading parameter.
|
void |
setLineCap(int cap)
Set LineCap style property.
|
void |
setLineJoin(int join)
Set LineJoin style property.
|
void |
setLineWidth(double width)
Set the thickness of the line used to stroke a path.
|
void |
setMiterLimit(double miter_limit)
Set miter limit.
|
void |
setOverprintMode(int OPM)
Set the overprint mode.
|
void |
setRenderingIntent(int intent)
Set the color intent to be used for rendering the Element.
|
void |
setSmoothnessTolerance(double SM)
Set the smoothness tolerance used to control the quality of smooth
shading.
|
void |
setSoftMask(Obj SM)
Set the soft mask of the extended graphics state.
|
void |
setStrokeColor(ColorPt c)
Set the color value/point used for stroking operations.
|
void |
setStrokeColor(PatternColor pattern)
Set the stroke color to the given tiling pattern.
|
void |
setStrokeColor(PatternColor pattern,
ColorPt c)
Set the stroke color to the given uncolored tiling pattern.
|
void |
setStrokeColorSpace(ColorSpace cs)
Set the color space used for stroking operations.
|
void |
setStrokeOpacity(double CA)
Set opacity value for stroke painting operations for paths and glyph outlines.
|
void |
setStrokeOverprint(boolean OP)
Specifies if overprint is enabled for stroke operations.
|
void |
setTextKnockout(boolean knockout)
Mark the object as elementary for purposes of color compositing in the
transparent imaging model.
|
void |
setTextRenderMode(int rmode)
Set text rendering mode.
|
void |
setTextRise(double rise)
Set text rise.
|
void |
setTransferFunct(Obj TR)
Set transfer function used during color conversion process.
|
void |
setTransform(double a,
double b,
double c,
double d,
double h,
double v)
Set the transformation matrix for this element.
|
void |
setTransform(Matrix2D mtx)
Set the transformation matrix associated with this element.
|
void |
setUCRFunct(Obj UCR)
Set undercolor-removal function used during conversion between DeviceRGB
and DeviceCMYK.
|
void |
setWordSpacing(double word_spacing)
Set word spacing.
|
public static final int e_transform
public static final int e_rendering_intent
public static final int e_stroke_cs
public static final int e_stroke_color
public static final int e_fill_cs
public static final int e_fill_color
public static final int e_line_width
public static final int e_line_cap
public static final int e_line_join
public static final int e_flatness
public static final int e_miter_limit
public static final int e_dash_pattern
public static final int e_char_spacing
public static final int e_word_spacing
public static final int e_horizontal_scale
public static final int e_leading
public static final int e_font
public static final int e_font_size
public static final int e_text_render_mode
public static final int e_text_rise
public static final int e_text_knockout
public static final int e_text_pos_offset
public static final int e_blend_mode
public static final int e_opacity_fill
public static final int e_opacity_stroke
public static final int e_alpha_is_shape
public static final int e_soft_mask
public static final int e_smoothnes
public static final int e_auto_stoke_adjust
public static final int e_stroke_overprint
public static final int e_fill_overprint
public static final int e_overprint_mode
public static final int e_transfer_funct
public static final int e_BG_funct
public static final int e_UCR_funct
public static final int e_halftone
public static final int e_null
public static final int e_butt_cap
public static final int e_round_cap
public static final int e_square_cap
public static final int e_miter_join
public static final int e_round_join
public static final int e_bevel_join
public static final int e_fill_text
public static final int e_stroke_text
public static final int e_fill_stroke_text
public static final int e_invisible_text
public static final int e_fill_clip_text
public static final int e_stroke_clip_text
public static final int e_fill_stroke_clip_text
public static final int e_clip_text
public static final int e_absolute_colorimetric
public static final int e_relative_colorimetric
public static final int e_saturation
public static final int e_perceptual
public static final int e_bl_compatible
public static final int e_bl_normal
public static final int e_bl_multiply
public static final int e_bl_screen
public static final int e_bl_difference
public static final int e_bl_darken
public static final int e_bl_lighten
public static final int e_bl_color_dodge
public static final int e_bl_color_burn
public static final int e_bl_exclusion
public static final int e_bl_hard_light
public static final int e_bl_overlay
public static final int e_bl_soft_light
public static final int e_bl_luminosity
public static final int e_bl_hue
public static final int e_bl_saturation
public static final int e_bl_color
public Matrix2D getTransform() throws PDFNetException
Note: If you are looking for a matrix that maps coordinates to the initial user space see Element::GetCTM().
PDFNetException
public ColorSpace getStrokeColorSpace() throws PDFNetException
PDFNetException
public ColorSpace getFillColorSpace() throws PDFNetException
PDFNetException
public ColorPt getStrokeColor() throws PDFNetException
PDFNetException
public PatternColor GetStrokePattern() throws PDFNetException
PDFNetException
public ColorPt getFillColor() throws PDFNetException
PDFNetException
public PatternColor getFillPattern() throws PDFNetException
PDFNetException
public double getFlatness() throws PDFNetException
PDFNetException
public int getLineCap() throws PDFNetException
PDFNetException
public int getLineJoin() throws PDFNetException
PDFNetException
public double getLineWidth() throws PDFNetException
Note: A line width of 0 denotes the thinnest line that can be rendered at device resolution: 1 device pixel wide.
PDFNetException
public double getMiterLimit() throws PDFNetException
PDFNetException
public double[] getDashes() throws PDFNetException
PDFNetException
public double getPhase() throws PDFNetException
PDFNetException
public double getCharSpacing() throws PDFNetException
PDFNetException
public double getWordSpacing() throws PDFNetException
PDFNetException
public double getHorizontalScale() throws PDFNetException
PDFNetException
public double getLeading() throws PDFNetException
PDFNetException
public Font getFont() throws PDFNetException
PDFNetException
public double getFontSize() throws PDFNetException
PDFNetException
public int getTextRenderMode() throws PDFNetException
PDFNetException
public double getTextRise() throws PDFNetException
PDFNetException
public boolean isTextKnockout() throws PDFNetException
PDFNetException
public int getRenderingIntent() throws PDFNetException
PDFNetException
public int getBlendMode() throws PDFNetException
PDFNetException
public double getFillOpacity() throws PDFNetException
PDFNetException
public double getStrokeOpacity() throws PDFNetException
PDFNetException
public boolean getAISFlag() throws PDFNetException
PDFNetException
public Obj getSoftMask() throws PDFNetException
PDFNetException
public Matrix2D getSoftMaskTransform() throws PDFNetException
PDFNetException
public boolean getStrokeOverprint() throws PDFNetException
PDFNetException
public boolean getFillOverprint() throws PDFNetException
PDFNetException
public int getOverprintMode() throws PDFNetException
PDFNetException
public boolean getAutoStrokeAdjust() throws PDFNetException
PDFNetException
public double getSmoothnessTolerance() throws PDFNetException
PDFNetException
public Obj getTransferFunct() throws PDFNetException
PDFNetException
public Obj getBlackGenFunct() throws PDFNetException
PDFNetException
public Obj getUCRFunct() throws PDFNetException
PDFNetException
public Obj getHalftone() throws PDFNetException
PDFNetException
public void setTransform(Matrix2D mtx) throws PDFNetException
Note: in PDF associating a transformation matrix with an element ('cm' operator) will also affect all subsequent elements.
mtx
- The new transformation for this text element.PDFNetException
public void setTransform(double a, double b, double c, double d, double h, double v) throws PDFNetException
a
- - horizontal 'scaling' component of the new text matrix.b
- - 'rotation' component of the new text matrix.c
- - vertical 'scaling' component of the new text matrix.d
- - 'rotation' component of the new text matrix.h
- - horizontal translation component of the new text matrix.v
- - vertical translation component of the new text matrix.PDFNetException
public void concat(Matrix2D mtx) throws PDFNetException
mtx
- the mtxPDFNetException
public void concat(double a, double b, double c, double d, double h, double v) throws PDFNetException
a
- the matrix element in the first row, first column.b
- the matrix element in the first row, second column.c
- the matrix element in the second row, first column.d
- the matrix element in the second row, second column.h
- the matrix element in the third row, first column.v
- the matrix element in the third row, second column.PDFNetException
public void setStrokeColorSpace(ColorSpace cs) throws PDFNetException
cs
- the new stroke color spacePDFNetException
public void setFillColorSpace(ColorSpace cs) throws PDFNetException
cs
- the new fill color spacePDFNetException
public void setStrokeColor(ColorPt c) throws PDFNetException
c
- the new stroke colorPDFNetException
public void setStrokeColor(PatternColor pattern) throws PDFNetException
Note: The currently selected stroke color space must be Pattern color space.
pattern
- SDF pattern object.PDFNetException
public void setStrokeColor(PatternColor pattern, ColorPt c) throws PDFNetException
Note: The currently selected stroke color space must be Pattern color space.
pattern
- the patternc
- is a color in the pattern?s underlying color space.PDFNetException
public void setFillColor(ColorPt c) throws PDFNetException
c
- the new fill colorPDFNetException
public void setFillColor(PatternColor pattern) throws PDFNetException
Note: The currently selected fill color space must be Pattern color space.
pattern
- SDF pattern object.PDFNetException
public void setFillColor(PatternColor pattern, ColorPt c) throws PDFNetException
Note: The currently selected fill color space must be Pattern color space.
pattern
- the patternc
- is a color in the pattern?s underlying color space.PDFNetException
public void setFlatness(double flatness) throws PDFNetException
flatness
- is a number in the range 0 to 100; a value of 0 specifies the output
device?s default flatness tolerance.
The flatness tolerance controls the maximum permitted distance in device pixels
between the mathematically correct path and an approximation constructed from
straight line segments.PDFNetException
public void setLineCap(int cap) throws PDFNetException
cap
- the new line capPDFNetException
public void setLineJoin(int join) throws PDFNetException
join
- the new line joinPDFNetException
public void setLineWidth(double width) throws PDFNetException
width
- a non-negative number expressed in user space units.
A line width of 0 denotes the thinnest line that can be rendered at device
resolution: 1 device pixel wide.PDFNetException
public void setMiterLimit(double miter_limit) throws PDFNetException
miter_limit
- A number that imposes a maximum on the ratio of the miter
length to the line width. When the limit is exceeded, the join is converted
from a miter to a bevel.PDFNetException
public void setDashPattern(double[] dash_array, double phase) throws PDFNetException
Note: The elements of both the dash array and the dash phase are expressed in user space units.
dash_array
- an array of numbers that specify the lengths of alternating dashes and gapsphase
- dash phase specifies the distance into the dash pattern at which to start the dash.PDFNetException
public void setCharSpacing(double char_spacing) throws PDFNetException
char_spacing
- a number specified in unscaled text space units. When the
glyph for each character in the string is rendered, the character spacing is
added to the horizontal or vertical component of the glyph?s displacement,
depending on the writing mode. See Section 5.2.1 in PDF Reference Manual for details.PDFNetException
public void setWordSpacing(double word_spacing) throws PDFNetException
word_spacing
- - a number specified in unscaled text space units.
Word spacing works the same way as character spacing, but applies only to the
space character (char code 32). See Section 5.2.2 in PDF Reference Manual for details.PDFNetException
public void setHorizontalScale(double hscale) throws PDFNetException
hscale
- the new horizontal scalePDFNetException
public void setLeading(double leading) throws PDFNetException
leading
- the new leadingPDFNetException
public void setFont(Font font, double font_sz) throws PDFNetException
font
- font to usefont_sz
- font sizePDFNetException
public void setTextRenderMode(int rmode) throws PDFNetException
rmode
- the new text render modePDFNetException
public void setTextRise(double rise) throws PDFNetException
rise
- the new text risePDFNetException
public void setTextKnockout(boolean knockout) throws PDFNetException
knockout
- the new text knockoutPDFNetException
public void setRenderingIntent(int intent) throws PDFNetException
intent
- the new rendering intentPDFNetException
public void setBlendMode(int BM) throws PDFNetException
BM
- - New blending mode type.PDFNetException
- gs.this.setBlendMode(e_bl_lighten);
public void setFillOpacity(double ca) throws PDFNetException
ca
- the new fill opacityPDFNetException
public void setStrokeOpacity(double CA) throws PDFNetException
CA
- the new stroke opacityPDFNetException
public void setAISFlag(boolean AIS) throws PDFNetException
AIS
- the new AIS flagPDFNetException
public void setSoftMask(Obj SM) throws PDFNetException
SM
- the new soft maskPDFNetException
public void setStrokeOverprint(boolean OP) throws PDFNetException
OP
- the new stroke overprintPDFNetException
public void setFillOverprint(boolean op) throws PDFNetException
op
- the new fill overprintPDFNetException
public void setOverprintMode(int OPM) throws PDFNetException
OPM
- the new overprint modePDFNetException
public void setAutoStrokeAdjust(boolean SA) throws PDFNetException
SA
- the new auto stroke adjustPDFNetException
public void setSmoothnessTolerance(double SM) throws PDFNetException
SM
- the new smoothness tolerancePDFNetException
public void setBlackGenFunct(Obj BG) throws PDFNetException
BG
- - SDF/Cos black-generation function or namePDFNetException
public void setUCRFunct(Obj UCR) throws PDFNetException
UCR
- - SDF/Cos undercolor-removal function or namePDFNetException
public void setTransferFunct(Obj TR) throws PDFNetException
TR
- - SDF/Cos transfer function, array, or namePDFNetException
public void setHalftone(Obj HT) throws PDFNetException
HT
- - SDF/Cos halftone dictionary, stream, or namePDFNetException