Package net.sourceforge.uiq3.printer
Class Canvas<Type extends IPrinter>
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- net.sourceforge.uiq3.printer.Canvas<Type>
-
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,net.sourceforge.uiq3.printer.ICanvas
@JavaBean(description="printer canvas for calculators") public class Canvas<Type extends IPrinter> extends JPanel implements net.sourceforge.uiq3.printer.ICanvas
- Author:
- martin
- See Also:
- Serialized Form
-
-
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
Fields Modifier and Type Field Description private static ResourceBundleCalculator_BundleResource Bundle used for I18Nprotected JButtonClear_Buttonprotected JMenuItemCopy_MenuItemprotected JButtonFeet_Buttonprivate static LoggerLoggerclass logger instanceprivate net.sourceforge.uiq3.ui.IFrameownerprotected JButtonPrint_Button_1protected JButtonPrint_Button_2protected JButtonPrint_Button_3protected TypeprinterThe printer engine used - needed for status related display.protected JPopupMenuPrintout_Menuprotected JScrollPanePrintout_ScrollPaneprotected JTextAreaPrintout_TextAreaprivate static longserialVersionUIDprivate static StringTAGclass logger tag.-
Fields 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidClear_ButtonActionPerformed(ActionEvent evt)private voidCopy_MenuItemActionPerformed(ActionEvent evt)voiddoClearButton()voiddoPrintButton1()voiddoPrintButton2()voiddoPrintButton3()private voidFeet_ButtonActionPerformed(ActionEvent evt)private voidformComponentShown(ComponentEvent evt)@NotNull StringgetPrintout()private voidinitComponents()private voidPrint_Button_1ActionPerformed(ActionEvent evt)private voidPrint_Button_2ActionPerformed(ActionEvent evt)private voidPrint_Button_3ActionPerformed(ActionEvent evt)voidsetPrinter(Type printer)Set the calculator engine used - needed for status related display.@NotNull StringtoString()voidupdate()Update Fields.voidupdate(PropertyChangeEvent event)check if the calculator has changed.-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, 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, paintComponent, 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, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
Logger
private static final Logger Logger
class logger instance
-
TAG
private static final String TAG
class logger tag.
-
Calculator_Bundle
private static final ResourceBundle Calculator_Bundle
Resource Bundle used for I18N
-
owner
@Nullable private final net.sourceforge.uiq3.ui.IFrame owner
-
printer
@Nullable protected Type extends IPrinter printer
The printer engine used - needed for status related display.
-
Clear_Button
protected final JButton Clear_Button
-
Copy_MenuItem
protected final JMenuItem Copy_MenuItem
-
Feet_Button
protected final JButton Feet_Button
-
Print_Button_1
protected final JButton Print_Button_1
-
Print_Button_2
protected final JButton Print_Button_2
-
Print_Button_3
protected final JButton Print_Button_3
-
Printout_Menu
protected final JPopupMenu Printout_Menu
-
Printout_ScrollPane
protected final JScrollPane Printout_ScrollPane
-
Printout_TextArea
protected final JTextArea Printout_TextArea
-
-
Method Detail
-
setPrinter
public void setPrinter(@NotNull Type printer)Set the calculator engine used - needed for status related display.- Parameters:
printer- printer to display
-
update
public void update(PropertyChangeEvent event)
check if the calculator has changed.
-
update
public void update()
Update Fields.
-
doPrintButton1
public void doPrintButton1()
-
doPrintButton2
public void doPrintButton2()
-
doPrintButton3
public void doPrintButton3()
-
doClearButton
public void doClearButton()
-
initComponents
private void initComponents()
-
formComponentShown
private void formComponentShown(ComponentEvent evt)
-
Print_Button_1ActionPerformed
private void Print_Button_1ActionPerformed(ActionEvent evt)
-
Print_Button_2ActionPerformed
private void Print_Button_2ActionPerformed(ActionEvent evt)
-
Print_Button_3ActionPerformed
private void Print_Button_3ActionPerformed(ActionEvent evt)
-
Clear_ButtonActionPerformed
private void Clear_ButtonActionPerformed(ActionEvent evt)
-
Feet_ButtonActionPerformed
private void Feet_ButtonActionPerformed(ActionEvent evt)
-
Copy_MenuItemActionPerformed
private void Copy_MenuItemActionPerformed(ActionEvent evt)
-
getPrintout
@TestOnly @NotNull public @NotNull String getPrintout()
- Specified by:
getPrintoutin interfacenet.sourceforge.uiq3.printer.ICanvas
-
-