public static class HwmfDraw.WmfRoundRect extends java.lang.Object implements HwmfRecord
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
bounds |
protected int |
height
A 16-bit signed integer that defines the height, in logical coordinates, of the
ellipse used to draw the rounded corners.
|
protected int |
width
A 16-bit signed integer that defines the width, in logical coordinates, of the
ellipse used to draw the rounded corners.
|
Constructor and Description |
---|
WmfRoundRect() |
Modifier and Type | Method and Description |
---|---|
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
|
protected java.awt.geom.RoundRectangle2D |
getShape() |
HwmfRecordType |
getWmfRecordType() |
int |
init(LittleEndianInputStream leis,
long recordSize,
int recordFunction)
Init record from stream
|
protected int height
protected int width
protected final java.awt.geom.Rectangle2D bounds
public HwmfRecordType getWmfRecordType()
getWmfRecordType
in interface HwmfRecord
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface HwmfRecord
leis
- the little endian input streamjava.io.IOException
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface HwmfRecord
ctx
- the graphics context to modifyprotected java.awt.geom.RoundRectangle2D getShape()
Copyright 2019 The Apache Software Foundation or its licensors, as applicable.