Serialized Form
serialVersionUID: 3903119390448325306L
title
java.lang.String title
- The title of the window created by the draw method.
size
java.awt.Dimension size
- The size of the window to be opened by a call to
CanvasPlus.draw()
or
CanvasPlus.drawBlocking()
.
max
java.awt.geom.Point2D.Float max
- The coordinate in the upper-right corner of the canvas in terms of the
objects entered. The x- and y- values of this coordinate do not
necessarily belong to the same actual "largest point" in space. This
value is used in scaling calculations and must be updated as necessary
when new objects are added to the canvas.
min
java.awt.geom.Point2D.Float min
- The coordinate in the lower-left corner of the canvas in terms of the
objects entered. The x- and y- values of this coordinate do not
necessarily belong to the same actual "smallest point" in space. This
value is used in scaling calculations and must be updated as necessary
when new objects are added to the canvas.
shapeQueue
java.util.Vector<E> shapeQueue
- The list of shapes, to be drawn in the order specified by the queue (to
issue priority, add a shape to the beginning of this list).
scaleMode
int scaleMode
- The scaling mode specified for this CanvasPlus.
aspectRatio
float aspectRatio
- The aspect ratio (the ratio between the width and height specified by the
size field).
backgroundColor
java.awt.Color backgroundColor
- The color of the background of the drawing pane of this
CanvasPlus.
font
java.awt.Font font
- The font of all future text added to this canvas.
scrollPane
javax.swing.JScrollPane scrollPane
- The scroll pane associated with this CanvasPlus. This will be
the sole child of this JApplet's content pane when the scale
mode is set to scroll or none. In all cases, the drawing pane (drawingPane)
is the sole object contained by this scroll pane.
- See Also:
JApplet.getContentPane()
drawingPane
cmsc420.drawing.CanvasPlus.DrawingPane drawingPane
- The DrawingPane associated with this CanvasPlus;
this child of JPanel is the component on which all shapes are
drawn. This will be the sole child of this JApplet's content
pane when the scale mode is set to fit or fixed aspect.
frame
javax.swing.JFrame frame
- The Frame that will be instantiated when a call to
CanvasPlus.draw()
is made. The value of this member will never be
null.
Class cmsc420.drawing.CanvasPlus.CircularMethodInvocationException extends java.lang.RuntimeException implements Serializable |
serialVersionUID: -8187944671294919352L
Class cmsc420.drawing.CanvasPlus.DrawingPane extends javax.swing.JPanel implements Serializable |
serialVersionUID: 252813044843946311L
adjustment
float adjustment
- A modifier by which all primitives are scaled and by which the
offsets are calculated.
xOffset
float xOffset
- The image offset in the X direction (i.e., the horizontal margin).
yOffset
float yOffset
- The image offset in the Y direction (i.e., the vertical margin).
xScale
float xScale
- The scaling value in the X direction.
yScale
float yScale
- The scaling value in the Y direction.
preferredSize
java.awt.Dimension preferredSize
- The preferred size of this JPanel, which influences the
span of the scrollbars for this control.
- See Also:
JComponent.setPreferredSize(java.awt.Dimension)
serialVersionUID: -7358792033155418806L