Class HemfPlusDraw.EmfPlusFillRects
- java.lang.Object
-
- org.apache.poi.hemf.record.emfplus.HemfPlusDraw.EmfPlusFillRects
-
- All Implemented Interfaces:
GenericRecord,HemfPlusDraw.EmfPlusCompressed,HemfPlusDraw.EmfPlusSolidColor,HemfPlusRecord
- Enclosing class:
- HemfPlusDraw
public static class HemfPlusDraw.EmfPlusFillRects extends Object implements HemfPlusRecord, HemfPlusDraw.EmfPlusCompressed, HemfPlusDraw.EmfPlusSolidColor
The EmfPlusFillRects record specifies filling the interiors of a series of rectangles.
-
-
Field Summary
-
Fields inherited from interface org.apache.poi.hemf.record.emfplus.HemfPlusDraw.EmfPlusCompressed
COMPRESSED
-
Fields inherited from interface org.apache.poi.hemf.record.emfplus.HemfPlusDraw.EmfPlusSolidColor
SOLID_COLOR
-
-
Constructor Summary
Constructors Constructor Description EmfPlusFillRects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(HemfGraphics ctx)Draws the record, the default redirects to the parent WMF record drawingintgetBrushIdValue()HemfPlusRecordTypegetEmfPlusRecordType()intgetFlags()Map<String,Supplier<?>>getGenericProperties()HemfPlusRecordTypegetGenericRecordType()List<Rectangle2D>getRectData()longinit(LittleEndianInputStream leis, long dataSize, long recordId, int flags)Init record from streamStringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Methods inherited from interface org.apache.poi.hemf.record.emfplus.HemfPlusDraw.EmfPlusCompressed
getReadRect, isCompressed
-
Methods inherited from interface org.apache.poi.hemf.record.emfplus.HemfPlusDraw.EmfPlusSolidColor
applyColor, getBrushId, getSolidColor, isSolidColor
-
Methods inherited from interface org.apache.poi.hemf.record.emfplus.HemfPlusRecord
calcBounds
-
-
-
-
Method Detail
-
getEmfPlusRecordType
public HemfPlusRecordType getEmfPlusRecordType()
- Specified by:
getEmfPlusRecordTypein interfaceHemfPlusRecord
-
getFlags
public int getFlags()
- Specified by:
getFlagsin interfaceHemfPlusDraw.EmfPlusCompressed- Specified by:
getFlagsin interfaceHemfPlusDraw.EmfPlusSolidColor- Specified by:
getFlagsin interfaceHemfPlusRecord
-
init
public long init(LittleEndianInputStream leis, long dataSize, long recordId, int flags) throws IOException
Description copied from interface:HemfPlusRecordInit record from stream- Specified by:
initin interfaceHemfPlusRecord- Parameters:
leis- the little endian input streamdataSize- the size limit for this recordrecordId- the id of theHemfPlusRecordTypeflags- the record flags- Returns:
- count of processed bytes
- Throws:
IOException- when the inputstream is malformed
-
draw
public void draw(HemfGraphics ctx)
Description copied from interface:HemfPlusRecordDraws the record, the default redirects to the parent WMF record drawing- Specified by:
drawin interfaceHemfPlusRecord- Parameters:
ctx- the drawing context
-
getBrushIdValue
public int getBrushIdValue()
- Specified by:
getBrushIdValuein interfaceHemfPlusDraw.EmfPlusSolidColor
-
getGenericRecordType
public HemfPlusRecordType getGenericRecordType()
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein interfaceHemfPlusRecord
-
getRectData
public List<Rectangle2D> getRectData()
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
-