Documentation of 'kcl.waterloo.graphics.GJBasicPanel' Java class
GJBasicPanel
kcl.waterloo.graphics

Class GJBasicPanel

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      class  GJBasicPanel.LocalTransferable 
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.BaselineResizeBehavior
    • Field Summary

      • Fields inherited from class javax.swing.JComponent

        TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.print.Printable

        NO_SUCH_PAGE, PAGE_EXISTS
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void componentAdded(java.awt.event.ContainerEvent e) 
      void componentHidden(java.awt.event.ComponentEvent e) 
      void componentMoved(java.awt.event.ComponentEvent e) 
      void componentRemoved(java.awt.event.ContainerEvent e) 
      void componentResized(java.awt.event.ComponentEvent e) 
      void componentShown(java.awt.event.ComponentEvent e) 
      static java.util.ArrayList<javax.swing.JComponent> getAllComponents(javax.swing.JComponent c) 
      double getID() 
      java.awt.image.BufferedImage getImage()
      Paints the component into a BufferedImage
      GJBasicPanel.LocalTransferable getTransferable()
      Returns a Transferable for this panel for use in CCP/DnD.
      GJBasicPanel.LocalTransferable getTransferable(boolean vectorFlag)
      Returns a Transferable for this panel for use in CCP/DnD.
      boolean isBackgroundPainted()
      Defines whether or not the background painted by this component.When background painting is disabled, background painting is deferred to the parent.
      boolean isOnEDT()
      Returns true when the method is called on the EDT.
      void paintComponent(java.awt.Graphics g)
      Overridden to provide Painter support.
      void print() 
      int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int page) 
      void setBackgroundPainted(boolean backPainted)
      Enables or disables the painting of background depending on the value of the parameter.
      void setID(double n) 
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, getPeer, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GJBasicPanel

        public GJBasicPanel()
      • GJBasicPanel

        public GJBasicPanel(java.awt.LayoutManager layout)
      • GJBasicPanel

        public GJBasicPanel(boolean flag)
    • Method Detail

      • setID

        public void setID(double n)
      • getID

        public double getID()
      • isOnEDT

        public boolean isOnEDT()
        Returns true when the method is called on the EDT. Useful in systems that provide a mechanism to refer all method calls for an instance to the EDT e.g. via javaObjectEDT in MATLAB.
        Returns:
        true when called on the EDT
      • isBackgroundPainted

        public boolean isBackgroundPainted()
        Defines whether or not the background painted by this component.When background painting is disabled, background painting is deferred to the parent.
        Returns:
        true if background is painted, false otherwise
        See Also:
        setBackgroundPainted(boolean), Component.getBackground()
      • setBackgroundPainted

        public void setBackgroundPainted(boolean backPainted)

        Enables or disables the painting of background depending on the value of the parameter. Background painting is enabled by default.

        Parameters:
        backPainted - if true, axis labels are painted
        See Also:
        isBackgroundPainted(), JComponent.setBackground(Color)
      • getAllComponents

        public static java.util.ArrayList<javax.swing.JComponent> getAllComponents(javax.swing.JComponent c)
      • paintComponent

        public void paintComponent(java.awt.Graphics g)
        Description copied from class: JXPanel
        Overridden to provide Painter support. It will call backgroundPainter.paint() if it is not null, else it will call super.paintComponent().
        Parameters:
        g - the Graphics context in which to paint
      • print

        public void print()
      • print

        public int print(java.awt.Graphics g,
                         java.awt.print.PageFormat pf,
                         int page)
                  throws java.awt.print.PrinterException
        Specified by:
        print in interface java.awt.print.Printable
        Throws:
        java.awt.print.PrinterException
      • getImage

        public java.awt.image.BufferedImage getImage()
        Paints the component into a BufferedImage
        Returns:
        a BufferedImage
      • getTransferable

        public GJBasicPanel.LocalTransferable getTransferable()
        Returns a Transferable for this panel for use in CCP/DnD.
        Returns:
        custom Transferable subclass
      • getTransferable

        public GJBasicPanel.LocalTransferable getTransferable(boolean vectorFlag)
        Returns a Transferable for this panel for use in CCP/DnD. If vectorFlag is true, the returned Transferable will support both image and vector graphics. Otherwise, image data only.
        Parameters:
        vectorFlag -
        Returns:
        custom Transferable subclass
      • componentAdded

        public void componentAdded(java.awt.event.ContainerEvent e)
        Specified by:
        componentAdded in interface java.awt.event.ContainerListener
      • componentRemoved

        public void componentRemoved(java.awt.event.ContainerEvent e)
        Specified by:
        componentRemoved in interface java.awt.event.ContainerListener
      • componentResized

        public void componentResized(java.awt.event.ComponentEvent e)
        Specified by:
        componentResized in interface java.awt.event.ComponentListener
      • componentMoved

        public void componentMoved(java.awt.event.ComponentEvent e)
        Specified by:
        componentMoved in interface java.awt.event.ComponentListener
      • componentShown

        public void componentShown(java.awt.event.ComponentEvent e)
        Specified by:
        componentShown in interface java.awt.event.ComponentListener
      • componentHidden

        public void componentHidden(java.awt.event.ComponentEvent e)
        Specified by:
        componentHidden in interface java.awt.event.ComponentListener

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.