public static class HemfMisc.EmfCreatePen extends HwmfMisc.WmfCreatePenIndirect implements HemfRecord
Modifier and Type | Field and Description |
---|---|
protected int |
penIndex
A 32-bit unsigned integer that specifies the index of the logical palette object
in the EMF Object Table.
|
colorRef, dimension, penStyle
Constructor and Description |
---|
EmfCreatePen() |
Modifier and Type | Method and Description |
---|---|
void |
draw(HemfGraphics ctx)
Draws the record, the default redirects to the parent WMF record drawing
|
HemfRecordType |
getEmfRecordType() |
long |
init(LittleEndianInputStream leis,
long recordSize,
long recordId)
Init record from stream
|
java.lang.String |
toString() |
applyObject, draw, getWmfRecordType, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setHeader
protected int penIndex
public HemfRecordType getEmfRecordType()
getEmfRecordType
in interface HemfRecord
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
HemfRecord
init
in interface HemfRecord
leis
- the little endian input streamrecordSize
- the size limit for this recordrecordId
- the id of the HemfRecordType
java.io.IOException
- when the inputstream is malformedpublic void draw(HemfGraphics ctx)
HemfRecord
draw
in interface HemfRecord
ctx
- the drawing contextpublic java.lang.String toString()
toString
in class HwmfMisc.WmfCreatePenIndirect
Copyright 2019 The Apache Software Foundation or its licensors, as applicable.