int width
Dimension.getSize() ,
Dimension.setSize(double, double)
int height
Dimension.getSize() ,
Dimension.setSize(double, double)
int x
Point. If no X coordinate is set it will default to 0.
Point.getLocation() ,
Point.move(int, int)
int y
Point. If no Y coordinate is set it will default to 0.
Point.getLocation() ,
Point.move(int, int)
int x
Rectangle.
Rectangle.setLocation(int, int) ,
Rectangle.getLocation()
int y
Rectangle.
Rectangle.setLocation(int, int) ,
Rectangle.getLocation()
int width
Rectangle.
Rectangle.setSize(int, int) ,
Rectangle.getSize()
int height
Rectangle.
Rectangle.setSize(int, int) ,
Rectangle.getSize()
private void readObject(ObjectInputStreams) throws ClassNotFoundException , IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStreams) throws ClassNotFoundException , IOException
ClassNotFoundException
IOException
double m00
double m10
double m01
double m11
double m02
double m12
private void readObject(ObjectInputStreams) throws ClassNotFoundException , IOException
ObjectInputStream followed by a byte indicating the arc type of this
Arc2D instance.
byte indicating the arc type Arc2D.OPEN , Arc2D.CHORD , or Arc2D.PIE . ClassNotFoundException
IOException
private void writeObject(ObjectOutputStreams) throws IOException
ObjectOutputStream followed by a byte indicating the arc type of this
Arc2D instance.
byte indicating the arc type Arc2D.OPEN , Arc2D.CHORD , or Arc2D.PIE . IOException
double x
double y
double width
double height
double start
double extent
private void readObject(ObjectInputStreams) throws ClassNotFoundException , IOException
ObjectInputStream followed by a byte indicating the arc type of this
Arc2D instance.
byte indicating the arc type Arc2D.OPEN , Arc2D.CHORD , or Arc2D.PIE . ClassNotFoundException
IOException
private void writeObject(ObjectOutputStreams) throws IOException
ObjectOutputStream followed by a byte indicating the arc type of this
Arc2D instance.
byte indicating the arc type Arc2D.OPEN , Arc2D.CHORD , or Arc2D.PIE . IOException
float x
float y
float width
float height
float start
float extent
double x1
double y1
double ctrlx1
double ctrly1
double ctrlx2
double ctrly2
double x2
double y2
float x1
float y1
float ctrlx1
float ctrly1
float ctrlx2
float ctrly2
float x2
float y2
double x
Ellipse2D.
double y
Ellipse2D.
double width
Ellipse2D.
double height
Ellipse2D.
float x
Ellipse2D.
float y
Ellipse2D.
float width
Ellipse2D.
float height
Ellipse2D.
double x1
double y1
double x2
double y2
float x1
float y1
float x2
float y2
private void readObject(ObjectInputStreams) throws ClassNotFoundException , IOException
ObjectInputStream followed by an explicit serialization of the path segments stored in this path.
There are no default serializable fields as of 1.6.
The serial data for this object is described in the writeObject method.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStreams) throws IOException
ObjectOutputStream followed by an explicit serialization of the path segments stored in this path.
WIND_EVEN_ODD or WIND_NON_ZERO) The following byte value constants are used in the serialized form of Path2D objects:
| Constant Name | Byte Value | Followed by | Description |
|---|---|---|---|
SERIAL_STORAGE_FLT_ARRAY |
0x30 | A hint that the original Path2D object stored the coordinates in a Java array of floats. |
|
SERIAL_STORAGE_DBL_ARRAY |
0x31 | A hint that the original Path2D object stored the coordinates in a Java array of doubles. |
|
SERIAL_SEG_FLT_MOVETO |
0x40 | 2 floats | A moveTo path segment follows. |
SERIAL_SEG_FLT_LINETO |
0x41 | 2 floats | A lineTo path segment follows. |
SERIAL_SEG_FLT_QUADTO |
0x42 | 4 floats | A quadTo path segment follows. |
SERIAL_SEG_FLT_CUBICTO |
0x43 | 6 floats | A curveTo path segment follows. |
SERIAL_SEG_DBL_MOVETO |
0x50 | 2 doubles | A moveTo path segment follows. |
SERIAL_SEG_DBL_LINETO |
0x51 | 2 doubles | A lineTo path segment follows. |
SERIAL_SEG_DBL_QUADTO |
0x52 | 4 doubles | A curveTo path segment follows. |
SERIAL_SEG_DBL_CUBICTO |
0x53 | 6 doubles | A curveTo path segment follows. |
SERIAL_SEG_CLOSE |
0x60 | A closePath path segment. |
|
SERIAL_PATH_END |
0x61 | There are no more path segments following. |
IOException
private void readObject(ObjectInputStreams) throws ClassNotFoundException , IOException
ObjectInputStream followed by an explicit serialization of the path segments stored in this path.
There are no default serializable fields as of 1.6.
The serial data for this object is described in the writeObject method.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStreams) throws IOException
ObjectOutputStream followed by an explicit serialization of the path segments stored in this path.
WIND_EVEN_ODD or WIND_NON_ZERO) The following byte value constants are used in the serialized form of Path2D objects:
| Constant Name | Byte Value | Followed by | Description |
|---|---|---|---|
SERIAL_STORAGE_FLT_ARRAY |
0x30 | A hint that the original Path2D object stored the coordinates in a Java array of floats. |
|
SERIAL_STORAGE_DBL_ARRAY |
0x31 | A hint that the original Path2D object stored the coordinates in a Java array of doubles. |
|
SERIAL_SEG_FLT_MOVETO |
0x40 | 2 floats | A moveTo path segment follows. |
SERIAL_SEG_FLT_LINETO |
0x41 | 2 floats | A lineTo path segment follows. |
SERIAL_SEG_FLT_QUADTO |
0x42 | 4 floats | A quadTo path segment follows. |
SERIAL_SEG_FLT_CUBICTO |
0x43 | 6 floats | A curveTo path segment follows. |
SERIAL_SEG_DBL_MOVETO |
0x50 | 2 doubles | A moveTo path segment follows. |
SERIAL_SEG_DBL_LINETO |
0x51 | 2 doubles | A lineTo path segment follows. |
SERIAL_SEG_DBL_QUADTO |
0x52 | 4 doubles | A curveTo path segment follows. |
SERIAL_SEG_DBL_CUBICTO |
0x53 | 6 doubles | A curveTo path segment follows. |
SERIAL_SEG_CLOSE |
0x60 | A closePath path segment. |
|
SERIAL_PATH_END |
0x61 | There are no more path segments following. |
IOException
double x
Point2D.
double y
Point2D.
float x
Point2D.
float y
Point2D.
double x1
double y1
double ctrlx
double ctrly
double x2
double y2
float x1
float y1
float ctrlx
float ctrly
float x2
float y2
double x
Rectangle2D.
double y
Rectangle2D.
double width
Rectangle2D.
double height
Rectangle2D.
float x
Rectangle2D.
float y
Rectangle2D.
float width
Rectangle2D.
float height
Rectangle2D.
double x
RoundRectangle2D.
double y
RoundRectangle2D.
double width
RoundRectangle2D.
double height
RoundRectangle2D.
double arcwidth
double archeight
float x
RoundRectangle2D.
float y
RoundRectangle2D.
float width
RoundRectangle2D.
float height
RoundRectangle2D.
float arcwidth
float archeight