|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.goca.AbstractGraphicsDrawingOrder
org.apache.fop.afp.goca.AbstractGraphicsCoord
public abstract class AbstractGraphicsCoord
A base class encapsulating the structure of coordinate based GOCA objects
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
AbstractAFPObject.Category, AbstractAFPObject.Type |
Field Summary | |
---|---|
protected int[] |
coords
array of x/y coordinates |
protected boolean |
relative
|
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
log, SF_CLASS, SF_HEADER |
Constructor Summary | |
---|---|
AbstractGraphicsCoord(int[] coords)
Constructor |
|
AbstractGraphicsCoord(int[] coords,
boolean relative)
Constructor |
|
AbstractGraphicsCoord(int x,
int y)
Constructor |
|
AbstractGraphicsCoord(int x1,
int y1,
int x2,
int y2)
Constructor |
Method Summary | |
---|---|
protected void |
addCoords(byte[] data,
int fromIndex)
Adds the coordinates to the structured field data |
int |
getDataLength()
Returns the data length of this structured field |
protected boolean |
isRelative()
Returns true if this is a relative drawing order |
java.lang.String |
toString()
|
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream |
Methods inherited from class org.apache.fop.afp.goca.AbstractGraphicsDrawingOrder |
---|
getName |
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
copyChunks, copySF, copySF, truncate, writeChunksToStream, writeObjects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int[] coords
protected boolean relative
Constructor Detail |
---|
public AbstractGraphicsCoord(int[] coords)
coords
- the x/y coordinates for this objectpublic AbstractGraphicsCoord(int[] coords, boolean relative)
coords
- the x/y coordinates for this objectrelative
- public AbstractGraphicsCoord(int x, int y)
x
- the x coordinate for this objecty
- the y coordinate for this objectpublic AbstractGraphicsCoord(int x1, int y1, int x2, int y2)
x1
- the x1 coordinate for this objecty1
- the y1 coordinate for this objectx2
- the x2 coordinate for this objecty2
- the y2 coordinate for this objectMethod Detail |
---|
public int getDataLength()
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
os
- the outputsteam stream
java.io.IOException
- an I/O exception of some sort has occurred.protected void addCoords(byte[] data, int fromIndex)
data
- the structured field datafromIndex
- the start indexpublic java.lang.String toString()
toString
in class java.lang.Object
protected boolean isRelative()
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |