Package org.apache.poi.hwmf.record
Class HwmfDraw.WmfArc
java.lang.Object
org.apache.poi.hwmf.record.HwmfDraw.WmfArc
- All Implemented Interfaces:
GenericRecord,HwmfRecord
- Direct Known Subclasses:
HemfDraw.EmfArc,HemfDraw.EmfArcTo,HwmfDraw.WmfChord,HwmfDraw.WmfPie
- Enclosing class:
- HwmfDraw
The META_ARC record draws an elliptical arc.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Rectangle2Dthe bounding rectangleprotected final Point2Dending point of the arcprotected final Point2Dstarting point of the arc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(HwmfGraphics ctx) Apply the record settings to the graphics contextprotected HwmfGraphics.FillDrawStyleprotected Arc2DgetShape()intinit(LittleEndianInputStream leis, long recordSize, int recordFunction) Init record from streamtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildrenMethods inherited from interface org.apache.poi.hwmf.record.HwmfRecord
getGenericRecordType
-
Field Details
-
startPoint
starting point of the arc -
endPoint
ending point of the arc -
bounds
the bounding rectangle
-
-
Constructor Details
-
WmfArc
public WmfArc()
-
-
Method Details
-
getWmfRecordType
- Specified by:
getWmfRecordTypein interfaceHwmfRecord
-
init
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws IOException Description copied from interface:HwmfRecordInit record from stream- Specified by:
initin interfaceHwmfRecord- Parameters:
leis- the little endian input stream- Returns:
- count of processed bytes
- Throws:
IOException
-
draw
Description copied from interface:HwmfRecordApply the record settings to the graphics context- Specified by:
drawin interfaceHwmfRecord- Parameters:
ctx- the graphics context to modify
-
getArcClosure
-
getFillDrawStyle
-
getShape
-
toString
-
getStartPoint
-
getEndPoint
-
getBounds
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-