GraphicState Class Documentation
classGraphicStateNamespace:com::datalogics::PDFL
Detailed Description
The graphic state is an internal data structure in a PDF file. The graphics state holds the parameters that describe graphics within that file.
These parameters define how individual graphics are presented on the page, including layers and transparencies.
Uses types
Constructor & Destructor Documentation
GraphicState
GraphicState()Create a new default GraphicState.
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidgetDashPattern
java.util.List< Double >getDashPattern()Returns:
A list containing the dash phase followed by the contents of the DashPattern.The line DashPattern controls the pattern of dashes and gaps used to stroke paths. It is specified by a dash phase and then a series of elements of a DashPattern list. The DashPattern's members are numbers that specify the lengths of alternating dashes and gaps; the numbers must be nonnegative and not all zero. The dash phase specifies the distance into the dash pattern at which to start the dash. The elements of both the DashPattern List and the dash phase are expressed in user space units. This retrieves the DashPattern used by the Pattern list current graphic state.
getExtendedGraphicState
ExtendedGraphicStategetExtendedGraphicState()Returns:
ExtendedGraphicStateThe ExtendedGraphicState, which can contain additional graphic state parameters.
getFillColor
ColorgetFillColor()Returns:
ColorThe fill color of the GraphicState.
getLineCap
LineCapgetLineCap()Returns:
LineCapThe line cap used by the current GraphicState.
getLineFlatness
doublegetLineFlatness()Returns:
doubleThe line flatness corresponding to the i operator.Default is 1.0.
getLineJoin
LineJoingetLineJoin()Returns:
LineJoinThe line join style used by the current GraphicState.
getMiterLimit
doublegetMiterLimit()Returns:
doubleThe miter limit corresponding to the M operator.Default is 10.0.
getRenderIntent
RenderIntentgetRenderIntent()Returns:
RenderIntentA color rendering intent corresponding to the Intent key in the image dictionary. The default is RelColorimetric.
getStrokeColor
ColorgetStrokeColor()Returns:
ColorThe stroke color of the GraphicState.
getWidth
doublegetWidth()Returns:
doubleThe width used for drawing by the current GraphicState.
setDashPattern
voidsetDashPattern(java.util.List< Double >DashPattern)Parameters
DashPattern: java.util.List< Double >A list containing the dash phase followed by the contents of the DashPattern.
Returns:
voidThe line DashPattern controls the pattern of dashes and gaps used to stroke paths. It is specified by a dash phase and then a series of elements of a DashPattern list. The DashPattern's members are numbers that specify the lengths of alternating dashes and gaps; the numbers must be nonnegative and not all zero. The dash phase specifies the distance into the dash pattern at which to start the dash. The elements of both the DashPattern List and the dash phase are expressed in user space units. This retrieves the DashPattern used by the Pattern list current graphic state.
setExtendedGraphicState
voidsetExtendedGraphicState(ExtendedGraphicStateextendedGraphicState)Parameters
extendedGraphicState: ExtendedGraphicState
Returns:
voidThe ExtendedGraphicState, which can contain additional graphic state parameters.
setFillColor
voidsetFillColor(Colorfillcolor)Parameters
fillcolor: Color(DeviceGray, GrayScalevalue or fillcolor (DeviceRGB, Redvalue, Greenvalue, Bluevalue or fillcolor (DeviceCMYK, Cyanvalue, Magentavalue, Yellowvalue, Blackvalue
Returns:
voidThe fill color of the GraphicState.
setLineCap
voidsetLineCap(LineCapLineCap)Parameters
LineCap: LineCap
Returns:
voidThe line cap used by the current GraphicState.
setLineFlatness
voidsetLineFlatness(doubleflatness)Parameters
flatness: double
Returns:
voidThe line flatness corresponding to the i operator.Default is 1.0.
setLineJoin
voidsetLineJoin(LineJoinLineJoin)Parameters
LineJoin: LineJoin
Returns:
voidThe line join style to be used by the current GraphicState.
setMiterLimit
voidsetMiterLimit(doublemiterLimit)Parameters
miterLimit: double
Returns:
voidThe miter limit corresponding to the M operator.Default is 10.0.
setRenderIntent
voidsetRenderIntent(RenderIntentrenderingIntent)Parameters
renderingIntent: RenderIntent
Returns:
voidA color rendering intent corresponding to the Intent key in the image dictionary. The default is RelColorimetric.
setStrokeColor
voidsetStrokeColor(Colorstrokecolor)Parameters
strokecolor: Color(DeviceGray, GrayScalevalue or strokecolor (DeviceRGB, Redvalue, Greenvalue, Bluevalue or strokecolor (DeviceCMYK, Cyanvalue, Magentavalue, Yellowvalue, Blackvalue
Returns:
voidThe stroke color of the GraphicState.
setWidth
voidsetWidth(doublewidth)Parameters
width: double
Returns:
voidThe width used for drawing by the current GraphicState.