Serialized Form
endPoint
Point endPoint
- keep track of the last point
drawPadDoc
DrawPadDoc drawPadDoc
- Keep track of all the shape and for the editing methods
currentShape
DrawableShape currentShape
- Current shape object for before adding to DrawPadDoc
bSelectedShape
boolean bSelectedShape
- A flag to indicate whether a shape is selected in the list
bDrawingShape
boolean bDrawingShape
- A flag to indicate whether a shape is being draw
bSelectedPointBox
boolean bSelectedPointBox
- A flag to indicate whether a point box for a shape has been selected
bChangingColor
boolean bChangingColor
- A flag to indicate whether we are changing the shape's color
imageNames
java.lang.String[][] imageNames
- Name of the option image files (upstate and downstate)
optionImages
java.awt.Image[][] optionImages
- array to contain the images for options
IMAGE_UP
byte IMAGE_UP
- Constant to indicate the image is in up-state
IMAGE_DOWN
byte IMAGE_DOWN
- Constant to indicate the image is in down-state
IMAGE_SIZE
byte IMAGE_SIZE
- Constant for the image size in pixel. Image size is alway in Square
HALF_IMAGE_SIZE
byte HALF_IMAGE_SIZE
- Constant for half image size in pixel. For faster calculation
DOUBLE_IMAGE_SIZE
byte DOUBLE_IMAGE_SIZE
- Constant for 2 * image size in pixel. For faster calculation
OPT_SELECT
byte OPT_SELECT
- Constant for Select Option
OPT_LINE
byte OPT_LINE
- Constant for Line Option
OPT_RECTANGLE
byte OPT_RECTANGLE
- Constant for Rectangle Option
OPT_FILLED_RECTANGLE
byte OPT_FILLED_RECTANGLE
- Constant for Filled Rectangle Option
OPT_ELLIPSE
byte OPT_ELLIPSE
- Constant for Ellipseect Option
OPT_FILLED_ELLIPSE
byte OPT_FILLED_ELLIPSE
- Constant for Filled Ellipse Option
OPT_POLYGON
byte OPT_POLYGON
- Constant for Polygon Option
OPT_FILLED_POLYGON
byte OPT_FILLED_POLYGON
- Constant for Filled Polygon Option
imageDirectory
java.lang.String imageDirectory
- Constant for the path that the image files is in
BORDER_WIDTH
int BORDER_WIDTH
- Constant for the border width
selectedOption
int selectedOption
- Option that has been selected
selectedColor
int selectedColor
- Color that has been selected
backBufferImage
java.awt.Image backBufferImage
- Back Image buffer for drawing
backBufferGraphics
java.awt.Graphics backBufferGraphics
- Graphic context associate with the back image buffer
drawWidth
int drawWidth
- Drawing area width. Default is 500, can be pass in from the html
drawHeight
int drawHeight
- Drawing area height. Default is 400, can be pass in from the html
colorList
java.awt.Color[] colorList
- An Array of color that is available