|
|||||||||
| 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 interated through to paint a page's content.
This class is genearlly 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 java.util.Vector<java.lang.Object> |
shapes
|
| Constructor Summary | |
|---|---|
Shapes()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object o)
Add a new object to the Shapes stack. |
void |
addClipCommand()
Adds a new clip command to the graphics stack. |
void |
addDrawCommand()
Adds a new draw command to the graphics stack. |
void |
addFillCommand()
Adds a new fill command to the graphics stack. |
void |
addNoClipCommand()
Adds a new no clip command to the graphics stack. |
void |
contract()
|
void |
dispose()
Clean up. |
java.util.Vector |
getImages()
Gets all the images that where found when parsing the pages' content. |
PageText |
getPageText()
|
int |
getShapesCount()
Gets the number of shapes on the shapes stack. |
void |
paint(java.awt.Graphics2D g)
Paint the graphics stack to the graphics context |
void |
paint(java.awt.Graphics2D g,
PageViewComponentImpl.PagePainter pagePainter)
Paint the graphics stack to the graphics context |
void |
setPageParent(Page parent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector<java.lang.Object> shapes
| Constructor Detail |
|---|
public Shapes()
| Method Detail |
|---|
public PageText getPageText()
public int getShapesCount()
public void setPageParent(Page parent)
public void dispose()
public void add(java.lang.Object o)
o - object to add to the graphics stack.public void addDrawCommand()
public void addFillCommand()
public void addClipCommand()
public void addNoClipCommand()
public void paint(java.awt.Graphics2D g)
g - graphics context to paint to.
public void paint(java.awt.Graphics2D g,
PageViewComponentImpl.PagePainter pagePainter)
g - graphics context to paint to.pagePainter - parent page painterpublic java.util.Vector getImages()
public void contract()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||