|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.graphics.Shapes
public class Shapes
The Shapes class hold all object that are parsed from a Page's content streams. These contained object make up a pages graphics stack which can be iterated through to paint a page's content.
This class is generally only used by the Content parser during content parsing. The class also stores points to the images found in the content as well as the text that is encoded on a page.
| Field Summary | |
|---|---|
protected OptionalContentState |
optionalContentState
|
protected boolean |
paintAlpha
|
protected java.util.ArrayList<DrawCmd> |
shapes
|
| Constructor Summary | |
|---|---|
Shapes()
|
|
| Method Summary | |
|---|---|
void |
add(java.util.ArrayList<DrawCmd> shapes)
|
void |
add(DrawCmd drawCmd)
|
void |
contract()
Contracts the shapes ArrayList to the actual size of the elements it contains. |
java.util.ArrayList<java.awt.Image> |
getImages()
Iterates over the Shapes objects extracting all Image objects. |
PageText |
getPageText()
|
java.util.ArrayList<DrawCmd> |
getShapes()
|
int |
getShapesCount()
Gets the number of shapes on the shapes stack. |
void |
interruptPaint()
|
boolean |
isPaintAlpha()
|
void |
paint(java.awt.Graphics2D g)
Paint the graphics stack to the graphics context |
void |
setPageParent(Page parent)
|
void |
setPaintAlpha(boolean paintAlpha)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean paintAlpha
protected java.util.ArrayList<DrawCmd> shapes
protected OptionalContentState optionalContentState
| Constructor Detail |
|---|
public Shapes()
| Method Detail |
|---|
public PageText getPageText()
public int getShapesCount()
public java.util.ArrayList<DrawCmd> getShapes()
public void add(java.util.ArrayList<DrawCmd> shapes)
public void setPageParent(Page parent)
public void add(DrawCmd drawCmd)
public boolean isPaintAlpha()
public void setPaintAlpha(boolean paintAlpha)
public void paint(java.awt.Graphics2D g)
g - graphics context to paint to.public void interruptPaint()
public java.util.ArrayList<java.awt.Image> getImages()
public void contract()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||