|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.Stream
org.icepdf.core.pobjects.graphics.TilingPattern
public class TilingPattern
Tiling patterns consist of a small graphical figure (called a pattern cell) that is replicated at fixed horizontal and vertical intervals to fill the area to be painted. The graphics objects to use for tiling are described by a content stream. (PDF 1.2)
| Field Summary | |
|---|---|
java.awt.Color |
fillColour
|
static int |
PAINTING_TYPE_COLORED_TILING_PATTERN
Colored tiling pattern. |
static int |
PAINTING_TYPE_UNCOLORED_TILING_PATTERN
Uncolored tiling pattern. |
static int |
TILING_TYPE_CONSTANT_SPACING
Spacing of tiles relative to the device grid: Pattern cells are spaced consistently-that is, by a multiple of a device pixel. |
static int |
TILING_TYPE_CONSTANT_SPACING_FASTER
Pattern cells are spaced consistently as in tiling type 1, but with additional distortion permitted to enable a more efficient implementation. |
static int |
TILING_TYPE_NO_DISTORTION
The pattern cell is not distorted, but the spacing between pattern cells may vary by as much as 1 device pixel, both horizontally and vertically, when the pattern is painted. |
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY |
| Fields inherited from interface org.icepdf.core.pobjects.graphics.Pattern |
|---|
PATTERN_TYPE_SHADING, PATTERN_TYPE_TILING |
| Constructor Summary | |
|---|---|
TilingPattern(Library l,
java.util.Hashtable h,
SeekableInputConstrainedWrapper streamInputWrapper)
|
|
TilingPattern(Stream stream)
|
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
getBBox()
|
java.awt.geom.Rectangle2D |
getbBoxMod()
Bbox converted to user space. |
java.awt.Color |
getFirstColor()
|
java.awt.geom.AffineTransform |
getInvMatrix()
|
java.awt.geom.AffineTransform |
getMatrix()
|
java.awt.Paint |
getPaint()
|
int |
getPaintType()
|
GraphicsState |
getParentGraphicState()
|
int |
getPatternType()
|
Shapes |
getShapes()
|
int |
getTilingType()
|
java.lang.String |
getType()
|
java.awt.Color |
getUnColored()
|
float |
getXStep()
|
float |
getYStep()
|
void |
init()
Initiate the Dictionary. |
void |
paintPattern(java.awt.Graphics2D g,
Page parentPage)
Applies the pattern paint specified by this TilingPattern instance. |
void |
setMatrix(java.awt.geom.AffineTransform matrix)
|
void |
setPaintType(int paintType)
|
void |
setParentGraphicState(GraphicsState graphicsState)
|
void |
setPatternType(int patternType)
|
void |
setShapes(Shapes shapes)
|
void |
setTilingType(int tilingType)
|
void |
setUnColored(java.awt.Color unColored)
|
java.lang.String |
toString()
Return a string description of the object. |
| Methods inherited from class org.icepdf.core.pobjects.Stream |
|---|
dispose, getBlackIs1, getBlackIs1OrNull, getBytes, getImage, getInputStreamForDecodedStreamBytes, getPObjectReference, getStreamInput, isImageMask, isInlineImage, setInlineImage, setPObjectReference |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, isDeleted, isNew, setDeleted, setNew |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PAINTING_TYPE_COLORED_TILING_PATTERN
public static final int PAINTING_TYPE_UNCOLORED_TILING_PATTERN
public static final int TILING_TYPE_CONSTANT_SPACING
public static final int TILING_TYPE_NO_DISTORTION
public static final int TILING_TYPE_CONSTANT_SPACING_FASTER
public java.awt.Color fillColour
| Constructor Detail |
|---|
public TilingPattern(Stream stream)
public TilingPattern(Library l,
java.util.Hashtable h,
SeekableInputConstrainedWrapper streamInputWrapper)
l - h - streamInputWrapper - | Method Detail |
|---|
public java.lang.String getType()
getType in interface Patternpublic java.awt.Color getFirstColor()
public void init()
Dictionary
init in interface Patterninit in class Dictionary
public void paintPattern(java.awt.Graphics2D g,
Page parentPage)
g - graphics context to apply textured paint too.parentPage - parent page used to lookup any resources.public java.awt.Paint getPaint()
getPaint in interface Patternpublic int getPatternType()
getPatternType in interface Patternpublic void setPatternType(int patternType)
public int getPaintType()
public void setPaintType(int paintType)
public int getTilingType()
public void setTilingType(int tilingType)
public java.awt.geom.Rectangle2D getBBox()
getBBox in interface Patternpublic java.awt.geom.Rectangle2D getbBoxMod()
public float getXStep()
public float getYStep()
public java.awt.geom.AffineTransform getMatrix()
getMatrix in interface Patternpublic java.awt.geom.AffineTransform getInvMatrix()
public void setMatrix(java.awt.geom.AffineTransform matrix)
setMatrix in interface Patternpublic Shapes getShapes()
public void setShapes(Shapes shapes)
public void setParentGraphicState(GraphicsState graphicsState)
setParentGraphicState in interface Patternpublic GraphicsState getParentGraphicState()
public java.awt.Color getUnColored()
public void setUnColored(java.awt.Color unColored)
public java.lang.String toString()
Stream
toString in class Stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||