Package curve.panel
Class DotsCanvas
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
curve.panel.DotsCanvas
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
DotsCanvas will display the drawing design.
It will also be the way station to the toolbars.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Modifier and TypeFieldDescriptionprivate Board
Board(package private) Cursor
circleCursor(package private) Cur
Cur manages all cursorsprivate Curve
curves(package private) static boolean
debug(package private) static boolean
debugCursor(package private) static boolean
debugDraw(package private) static boolean
debugPaint(package private) static boolean
debugSetup(package private) Cursor
defaultCursorstatic boolean
displayBoard(package private) Cursor
drawModeCursorprivate EToolBar
EToolBarprivate Grid
Grid(package private) Cursor
handCursorprivate Interpreter
ipprivate Key
Keyprivate Layer
Layer(package private) Cursor
lineCursor(package private) Cursor
makeLineCursorprivate Mover
Moverprivate MoverPopupMenu
MoverPopupMenuprivate NToolBar
NToolBarprivate int
paintCountprivate int
paintMax(package private) Cursor
panModeCursorprivate boolean
require Log Board(package private) Cursor
selectModeCursorstatic DotsCanvas
static_dcprivate SToolBar
SToolBarprivate Tr
Translate linkprivate U
u(package private) boolean
virgin first timeprivate WToolBar
WToolBar(package private) static String
zz - logging prefixFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionvoid
add Mover Linkvoid
addNotifyvoid
clearLayerprivate void
drawBoardprivate void
draw screen(package private) Cursor
getCircleCursorstatic DotsCanvas
getDotCanvasLink(package private) Cursor
getDrawModeCursorgetInterpreterLinkgetKeyLink(package private) Cursor
getLineCursor(package private) Cursor
getMakeLineCursorint
getMode()
getModegetMoverLinkgetMoverPopupMenuLink(package private) Cursor
getPanModeCursor(package private) Cursor
getSelectModeCursorgetULink()
getULinkvoid
load(package private) static void
log- link to Log.mesvoid
paint componentvoid
setCircleCursorvoid
setDefaultCursorvoid
setDrawModevoid
setDrawModeCursorvoid
setHandCursorvoid
setLineCursorvoid
set Log Boardvoid
setMakeLineCursorvoid
setPanModevoid
setPanModeCursorvoid
setSelectModevoid
setSelectModeCursorvoid
set Statusvoid
showXY
(int fx, int fy) showXYMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
zz
zz - logging prefix -
debugPaint
static boolean debugPaintdebugPaint -
debugDraw
static boolean debugDrawdebugDraw -
debug
static boolean debugdebug -
debugCursor
static boolean debugCursordebugCursor -
debugSetup
static boolean debugSetupdebugSetup -
static_dc
static_dc -
displayBoard
public static boolean displayBoarddisplayBoard -
curves
curves -
u
u -
ip
ip -
mpm
MoverPopupMenu -
mover
Mover -
key
Key -
t
Translate link -
layer
Layer -
board
Board -
grid
Grid -
ntb
NToolBar -
etb
EToolBar -
wtb
WToolBar -
stb
SToolBar -
lineCursor
Cursor lineCursorlineCursor -
makeLineCursor
Cursor makeLineCursormakeLineCursor -
circleCursor
Cursor circleCursorcircleCursor -
handCursor
Cursor handCursorhandCursor -
defaultCursor
Cursor defaultCursordefaultCursor -
drawModeCursor
Cursor drawModeCursordrawModeCursor -
selectModeCursor
Cursor selectModeCursorselectModeCursor -
panModeCursor
Cursor panModeCursorpanModeCursor -
cur
Cur curCur manages all cursors -
virgin
boolean virginvirgin first time -
requireLogBoard
private boolean requireLogBoardrequire Log Board -
paintMax
private int paintMaxpaintMax -
paintCount
private int paintCountpaintCount
-
-
Constructor Details
-
DotsCanvas
Constructor
initialize everything in this constructor
- Parameters:
curves
- -
-
-
Method Details
-
getDotCanvasLink
-
clearLayer
public void clearLayer()clearLayer -
addMoverLink
-
addNotify
-
log
-
drawBoard
-
setLogBoard
public void setLogBoard()set Log Board -
drawScreen
-
paintComponent
paint component- Overrides:
paintComponent
in classJComponent
- Parameters:
g
- -
-
getDrawModeCursor
-
getSelectModeCursor
-
getPanModeCursor
-
getCircleCursor
-
getLineCursor
-
getMakeLineCursor
-
setLineCursor
public void setLineCursor()setLineCursor -
setMakeLineCursor
public void setMakeLineCursor()setMakeLineCursor -
setCircleCursor
public void setCircleCursor()setCircleCursor -
setHandCursor
public void setHandCursor()setHandCursor -
setDefaultCursor
public void setDefaultCursor()setDefaultCursor -
setDrawModeCursor
public void setDrawModeCursor()setDrawModeCursor -
setSelectModeCursor
public void setSelectModeCursor()setSelectModeCursor -
setPanModeCursor
public void setPanModeCursor()setPanModeCursor -
setDrawMode
public void setDrawMode()setDrawMode -
setPanMode
public void setPanMode()setPanMode -
setSelectMode
public void setSelectMode()setSelectMode -
setStatus
-
getMode
public int getMode()getMode- Returns:
- mode
-
addAction
-
load
-
showXY
public void showXY(int fx, int fy) showXY- Parameters:
fx
- -fy
- -
-
getInterpreterLink
-
getMoverLink
-
getULink
-
getMoverPopupMenuLink
-
getKeyLink
-