Class GraphicsSetLineType
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.goca.AbstractGraphicsDrawingOrder
org.apache.fop.afp.goca.GraphicsSetLineType
- All Implemented Interfaces:
Streamable, StructuredData
Sets the value of the current line type attribute when stroking GOCA shapes (structured fields)
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytedashed dotted line typestatic final bytedash double dotted line typestatic final bytethe default line typestatic final bytethe default line typestatic final bytedouble dotted line typestatic final byteinvisible line typestatic final bytelong dashed line typestatic final byteshort dashed line typestatic final bytesolid line typeprivate byteline typeprivate static final String[]Fields inherited from class AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the data length of this structured field(package private) byteReturns the order code of this structured fieldtoString()voidDataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class AbstractGraphicsDrawingOrder
getData, getNameMethods inherited from class AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
DEFAULT
public static final byte DEFAULTthe default line type- See Also:
-
DOTTED
public static final byte DOTTEDthe default line type- See Also:
-
SHORT_DASHED
public static final byte SHORT_DASHEDshort dashed line type- See Also:
-
DASH_DOT
public static final byte DASH_DOTdashed dotted line type- See Also:
-
DOUBLE_DOTTED
public static final byte DOUBLE_DOTTEDdouble dotted line type- See Also:
-
LONG_DASHED
public static final byte LONG_DASHEDlong dashed line type- See Also:
-
DASH_DOUBLE_DOTTED
public static final byte DASH_DOUBLE_DOTTEDdash double dotted line type- See Also:
-
SOLID
public static final byte SOLIDsolid line type- See Also:
-
INVISIBLE
public static final byte INVISIBLEinvisible line type- See Also:
-
type
private byte typeline type -
TYPES
-
-
Constructor Details
-
GraphicsSetLineType
public GraphicsSetLineType(byte type) Main constructor- Parameters:
type- line type
-
-
Method Details
-
getDataLength
public int getDataLength()Returns the data length of this structured field- Returns:
- the data length of this structured field
-
writeToStream
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream- Parameters:
os- the outputsteam stream- Throws:
IOException- an I/O exception of some sort has occurred.
-
toString
-
getOrderCode
byte getOrderCode()Returns the order code of this structured field- Specified by:
getOrderCodein classAbstractGraphicsDrawingOrder- Returns:
- the order code of this structured field
-