public class RectangleElement extends Command
Class=4, ElementId=11
| Constructor and Description |
|---|
RectangleElement(CgmFile container) |
RectangleElement(CgmFile container,
CgmPoint firstCorner,
CgmPoint secondCorner) |
| Modifier and Type | Method and Description |
|---|---|
CgmPoint |
getFirstCorner() |
CgmPoint |
getSecondCorner() |
Rectangle2D.Float |
getShape() |
void |
readFromBinary(IBinaryReader reader)
Reads the binary data from the reader
|
void |
setFirstCorner(CgmPoint value) |
void |
setSecondCorner(CgmPoint value) |
String |
toString() |
void |
writeAsBinary(IBinaryWriter writer)
Writes/exports the command as binary mode
|
void |
writeAsClearText(IClearTextWriter writer)
Writes/exports the command as clear text mode
|
assert_, getElementClass, getElementIdpublic RectangleElement(CgmFile container)
public final Rectangle2D.Float getShape()
public final CgmPoint getFirstCorner()
public final void setFirstCorner(CgmPoint value)
public final CgmPoint getSecondCorner()
public final void setSecondCorner(CgmPoint value)
public void readFromBinary(IBinaryReader reader)
CommandReads the binary data from the reader
readFromBinary in class Commandpublic void writeAsBinary(IBinaryWriter writer)
CommandWrites/exports the command as binary mode
writeAsBinary in class Commandwriter - The writer to write the binary content to.public void writeAsClearText(IClearTextWriter writer)
CommandWrites/exports the command as clear text mode
writeAsClearText in class Commandwriter - The text writer to write the clear text to.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.