public class GraphicState
extends java.lang.Object
These parameters define how individual graphics are presented on the page, including layers and transparencies.
| Constructor and Description |
|---|
GraphicState()
Create a new default GraphicState.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
java.util.List<java.lang.Double> |
getDashPattern()
The line DashPattern controls the pattern of dashes and gaps used to stroke paths.
|
ExtendedGraphicState |
getExtendedGraphicState()
The ExtendedGraphicState, which can contain additional graphic state parameters.
|
Color |
getFillColor()
The fill color of the GraphicState.
|
LineCap |
getLineCap()
The line cap used by the current GraphicState.
|
double |
getLineFlatness()
The line flatness corresponding to the i operator. Default is 1.0.
|
LineJoin |
getLineJoin()
The line join style used by the current GraphicState.
|
double |
getMiterLimit()
The miter limit corresponding to the M operator. Default is 10.0.
|
RenderIntent |
getRenderIntent()
A color rendering intent corresponding to the Intent key in the image dictionary.
|
Color |
getStrokeColor()
The stroke color of the GraphicState.
|
double |
getWidth()
The width used for drawing by the current GraphicState.
|
void |
setDashPattern(java.util.List<java.lang.Double> DashPattern)
The line DashPattern controls the pattern of dashes and gaps used to stroke paths.
|
void |
setExtendedGraphicState(ExtendedGraphicState extendedGraphicState)
The ExtendedGraphicState, which can contain additional graphic state parameters.
|
void |
setFillColor(Color fillcolor)
The fill color of the GraphicState.
|
void |
setLineCap(LineCap LineCap)
The line cap used by the current GraphicState.
|
void |
setLineFlatness(double flatness)
The line flatness corresponding to the i operator. Default is 1.0.
|
void |
setLineJoin(LineJoin LineJoin)
The line join style to be used by the current GraphicState.
|
void |
setMiterLimit(double miterLimit)
The miter limit corresponding to the M operator. Default is 10.0.
|
void |
setRenderIntent(RenderIntent renderingIntent)
A color rendering intent corresponding to the Intent key in the image dictionary.
|
void |
setStrokeColor(Color strokecolor)
The stroke color of the GraphicState.
|
void |
setWidth(double width)
The width used for drawing by the current GraphicState.
|
public void delete()
public double getWidth()
public void setWidth(double width)
public LineCap getLineCap()
public void setLineCap(LineCap LineCap)
public LineJoin getLineJoin()
public void setLineJoin(LineJoin LineJoin)
public java.util.List<java.lang.Double> getDashPattern()
public void setDashPattern(java.util.List<java.lang.Double> DashPattern)
DashPattern - A list containing the dash phase followed by the contents of the DashPattern.public void setFillColor(Color fillcolor)
fillcolor - (DeviceGray, GrayScalevalue or fillcolor (DeviceRGB, Redvalue, Greenvalue, Bluevalue or fillcolor (DeviceCMYK, Cyanvalue, Magentavalue, Yellowvalue, Blackvaluepublic void setStrokeColor(Color strokecolor)
strokecolor - (DeviceGray, GrayScalevalue or strokecolor (DeviceRGB, Redvalue, Greenvalue, Bluevalue or strokecolor (DeviceCMYK, Cyanvalue, Magentavalue, Yellowvalue, Blackvaluepublic Color getFillColor()
public Color getStrokeColor()
public double getMiterLimit()
public void setMiterLimit(double miterLimit)
public double getLineFlatness()
public void setLineFlatness(double flatness)
public RenderIntent getRenderIntent()
public void setRenderIntent(RenderIntent renderingIntent)
public ExtendedGraphicState getExtendedGraphicState()
public void setExtendedGraphicState(ExtendedGraphicState extendedGraphicState)