Groovy Documentation

griffon.plugins.slideware
[Java] Class BackgroundPanel

java.lang.Object
  java.awt.Component
      java.awt.Container
          javax.swing.JComponent
              javax.swing.JPanel
                  griffon.plugins.slideware.DrawingPanel
                      griffon.plugins.slideware.BackgroundPanel

public class BackgroundPanel
extends DrawingPanel

A container that draws a solid color or a paint as background

Authors:
Andres Almiray


Field Summary
private Paint backgroundPaint

 
Fields inherited from class DrawingPanel
cachedImage, previousBounds
 
Fields inherited from class JPanel
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Constructor Summary
BackgroundPanel()

 
Method Summary
Paint getBackgroundPaint()

protected void paintImage(Graphics2D g, Rectangle bounds)

void setBackgroundPaint(Paint backgroundPaint)

 
Methods inherited from class DrawingPanel
clearCache, createImage, equals, paintComponent, paintImage
 
Methods inherited from class JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI, contains, getLocation, print, getSize, isOpaque, disable, enable, update, addNotify, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getInsets, getInsets, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, paint, removeNotify, requestFocus, requestFocus, setFocusTraversalKeys, setFont, getBaseline, getBaselineResizeBehavior, getBounds, getFontMetrics, getGraphics, getHeight, getWidth, getX, getY, isDoubleBuffered, printAll, repaint, repaint, requestFocusInWindow, reshape, setBackground, setEnabled, setForeground, setMaximumSize, setMinimumSize, setPreferredSize, setVisible, addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, getActionForKeyStroke, getActionMap, getAncestorListeners, getAutoscrolls, getBorder, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, grabFocus, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, add, add, add, add, add, remove, remove, list, list, removeAll, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponentZOrder, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, locate, minimumSize, paintComponents, preferredSize, printComponents, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, add, toString, getName, contains, size, getLocation, getParent, remove, setName, list, list, list, getSize, resize, resize, setSize, setSize, enable, location, isValid, action, dispatchEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getFocusCycleRootAncestor, getFont, getGraphicsConfiguration, getMousePosition, getPeer, getTreeLock, handleEvent, isDisplayable, isEnabled, isFocusOwner, isFocusable, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isVisible, postEvent, transferFocus, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, createImage, createImage, createVolatileImage, createVolatileImage, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, gotFocus, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isFocusTraversable, isFontSet, isForegroundSet, keyDown, keyUp, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusTraversalKeysEnabled, setFocusable, setIgnoreRepaint, setLocale, setLocation, setLocation, show, show, transferFocusUpCycle, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Field Detail

backgroundPaint

private Paint backgroundPaint


 
Constructor Detail

BackgroundPanel

BackgroundPanel()


 
Method Detail

getBackgroundPaint

public Paint getBackgroundPaint()


paintImage

protected void paintImage(Graphics2D g, Rectangle bounds)


setBackgroundPaint

public void setBackgroundPaint(Paint backgroundPaint)


 

Groovy Documentation