GraphicState Class Documentation

class GraphicState

Namespace: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.

Constructor & Destructor Documentation

GraphicState

GraphicState()

Create a new default GraphicState.

Member Function Documentation

delete

synchronized void delete(Boolean disposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized void delete()

Returns:

synchronized void

finalize

void finalize()

Returns:

void

getDashPattern

java.util.List< Double > getDashPattern()

Returns:

java.util.List< Double >

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.

getFillColor

Color getFillColor()

Returns:

Color

The fill color of the GraphicState.

getLineCap

LineCap getLineCap()

Returns:

LineCap

The line cap used by the current GraphicState.

getLineFlatness

double getLineFlatness()

Returns:

double

The line flatness corresponding to the i operator.Default is 1.0.

getLineJoin

LineJoin getLineJoin()

Returns:

LineJoin

The line join style used by the current GraphicState.

getMiterLimit

double getMiterLimit()

Returns:

double

The miter limit corresponding to the M operator.Default is 10.0.

getRenderIntent

RenderIntent getRenderIntent()

Returns:

RenderIntent

A color rendering intent corresponding to the Intent key in the image dictionary. The default is RelColorimetric.

getStrokeColor

Color getStrokeColor()

Returns:

Color

The stroke color of the GraphicState.

getWidth

double getWidth()

Returns:

double

The width used for drawing by the current GraphicState.

setDashPattern

void setDashPattern(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:

void

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.

setExtendedGraphicState

void setExtendedGraphicState(ExtendedGraphicState extendedGraphicState)

Parameters

extendedGraphicState: ExtendedGraphicState

Returns:

void

The ExtendedGraphicState, which can contain additional graphic state parameters.

setFillColor

void setFillColor(Color fillcolor)

Parameters

fillcolor: Color

(DeviceGray, GrayScalevalue or fillcolor (DeviceRGB, Redvalue, Greenvalue, Bluevalue or fillcolor (DeviceCMYK, Cyanvalue, Magentavalue, Yellowvalue, Blackvalue

Returns:

void

The fill color of the GraphicState.

setLineCap

void setLineCap(LineCap LineCap)

Parameters

LineCap: LineCap

Returns:

void

The line cap used by the current GraphicState.

setLineFlatness

void setLineFlatness(double flatness)

Parameters

flatness: double

Returns:

void

The line flatness corresponding to the i operator.Default is 1.0.

setLineJoin

void setLineJoin(LineJoin LineJoin)

Parameters

LineJoin: LineJoin

Returns:

void

The line join style to be used by the current GraphicState.

setMiterLimit

void setMiterLimit(double miterLimit)

Parameters

miterLimit: double

Returns:

void

The miter limit corresponding to the M operator.Default is 10.0.

setRenderIntent

void setRenderIntent(RenderIntent renderingIntent)

Parameters

renderingIntent: RenderIntent

Returns:

void

A color rendering intent corresponding to the Intent key in the image dictionary. The default is RelColorimetric.

setStrokeColor

void setStrokeColor(Color strokecolor)

Parameters

strokecolor: Color

(DeviceGray, GrayScalevalue or strokecolor (DeviceRGB, Redvalue, Greenvalue, Bluevalue or strokecolor (DeviceCMYK, Cyanvalue, Magentavalue, Yellowvalue, Blackvalue

Returns:

void

The stroke color of the GraphicState.

setWidth

void setWidth(double width)

Parameters

width: double

Returns:

void

The width used for drawing by the current GraphicState.