public class MACPictPicture extends RTFPicture
| Constructor and Description |
|---|
MACPictPicture(int width,
int height)
Create a picture of the given size.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.datatransfer.Transferable |
buildStandAloneTransferable()
Used by children classes to define how they create a transferable when used outside of an RTF picture.
|
byte[] |
getAsArrayForRTF() |
byte[] |
getAsByteArray() |
java.awt.Graphics2D |
getGraphics()
Returns a Graphics2D object to draw on.
|
void |
write(SimpleRTFWriter writer) |
buildTransferable, isEmbeddedInRTF, setEmbeddedInRTFpublic MACPictPicture(int width,
int height)
throws java.io.IOException
width - width in pointsheight - height in pointsjava.io.IOExceptionpublic java.awt.Graphics2D getGraphics()
TransferablePicturepublic void write(SimpleRTFWriter writer) throws java.io.IOException
java.io.IOExceptionpublic byte[] getAsByteArray()
public byte[] getAsArrayForRTF()
protected java.awt.datatransfer.Transferable buildStandAloneTransferable()
RTFPicturebuildStandAloneTransferable in class RTFPicture