Overview
Author(s):
General Methods
access | type | name | parameters |
---|
[show]methods inherited from org.jdesktop.swingx.JXPanel
[show]methods inherited from javax.swing.JPanel
[show]methods inherited from javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, grabFocus, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, unregisterKeyboardAction, update, updateUI,
[show]methods inherited from java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, insets, invalidate, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree,
[show]methods inherited from java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate,
Constructors
access | name | parameters |
---|---|---|
public | JXPanel | () |
public | JXPanel |
(boolean isDoubleBuffered , )
|
public | JXPanel |
(LayoutManager layout , )
|
public | JXPanel |
(LayoutManager layout , boolean isDoubleBuffered , )
|
public JXPanel
()
Creates a new instance of JXPanel
Parameters
public JXPanel
(boolean isDoubleBuffered
, )
Parameters
- isDoubleBuffered
public JXPanel
(LayoutManager layout
, )
Parameters
- layout
public JXPanel
(LayoutManager layout
, boolean isDoubleBuffered
, )
Parameters
- layout
- isDoubleBuffered
Properties
name | type | description | get/set | access | inherited | bound |
---|---|---|---|---|---|---|
effectiveAlpha | float | --- | -- | public | -- | -- |
scrollableUnitIncrement | int | --- | -- | public | -- | -- |
inheritAlpha | boolean | --- | -- | public | -- | -- |
backgroundPainter | void | --- | -- | public | -- | -- |
scrollableBlockIncrement | int | --- | -- | public | -- | -- |
scrollableTracksViewportWidth | boolean | --- | -- | public | -- | -- |
foregroundPainter | void | --- | -- | public | -- | -- |
preferredScrollableViewportSize | Dimension | --- | -- | public | -- | -- |
scrollableTracksViewportHeight | boolean | --- | -- | public | -- | -- |
painterSet | PainterSet | --- | -- | public | -- | -- |
alpha | void | --- | -- | public | -- | -- |
[show]properties inherited from org.jdesktop.swingx.JXPanel
alpha , backgroundPainter , effectiveAlpha , foregroundPainter , inheritAlpha , painterSet , preferredScrollableViewportSize , scrollableBlockIncrement , scrollableTracksViewportHeight , scrollableTracksViewportWidth , scrollableUnitIncrement ,
[show]properties inherited from javax.swing.JPanel
[show]properties inherited from javax.swing.JComponent
accessibleContext , actionForKeyStroke , actionMap , alignmentX , alignmentY , ancestorListeners , autoscrolls , background , border , bounds , clientProperty , componentGraphics , componentPopupMenu , conditionForKeyStroke , debugGraphicsOptions , defaultLocale , doubleBuffered , enabled , focusTraversalKeys , font , fontMetrics , foreground , graphics , height , inheritsPopupMenu , inputMap , inputVerifier , insets , lightweightComponent , listeners , location , managingFocus , maximumSize , minimumSize , nextFocusableComponent , opaque , optimizedDrawingEnabled , paintingTile , popupLocation , preferredSize , registeredKeyStrokes , requestFocusEnabled , rootPane , size , toolTipLocation , toolTipText , topLevelAncestor , transferHandler , uI , uIClassID , validateRoot , verifyInputWhenFocusTarget , vetoableChangeListeners , visible , visibleRect , width , x , y ,
[show]properties inherited from java.awt.Container
alignmentX , alignmentY , ancestorOf , component , componentAt , componentCount , components , componentZOrder , containerListeners , focusCycleRoot , focusTraversalKeys , focusTraversalPolicy , focusTraversalPolicyProvider , focusTraversalPolicySet , font , insets , layout , listeners , maximumSize , minimumSize , mousePosition , preferredSize ,
[show]properties inherited from java.awt.Component
accessibleContext , alignmentX , alignmentY , background , backgroundSet , bounds , colorModel , componentAt , componentListeners , componentOrientation , cursor , cursorSet , displayable , doubleBuffered , dropTarget , enabled , focusable , focusCycleRoot , focusCycleRootAncestor , focusListeners , focusOwner , focusTraversable , focusTraversalKeys , focusTraversalKeysEnabled , font , fontMetrics , fontSet , foreground , foregroundSet , graphics , graphicsConfiguration , height , hierarchyBoundsListeners , hierarchyListeners , ignoreRepaint , inputContext , inputMethodListeners , inputMethodRequests , keyListeners , lightweight , listeners , locale , location , locationOnScreen , maximumSize , maximumSizeSet , minimumSize , minimumSizeSet , mouseListeners , mouseMotionListeners , mousePosition , mouseWheelListeners , name , opaque , parent , peer , preferredSize , preferredSizeSet , propertyChangeListeners , showing , size , toolkit , treeLock , valid , visible , width , x , y ,
effectiveAlpha
public float getEffectiveAlpha
()
Unlike other properties, alpha can be set on a component, or on one of its parents. If the alpha of a parent component is .4, and the alpha on this component is .5, effectively the alpha for this component is .4 because the lowest alpha in the heirarchy "wins"
Parameters
scrollableUnitIncrement
public int getScrollableUnitIncrement
(Rectangle visibleRect
, int orientation
, int direction
, )
Parameters
- visibleRect
- orientation
- direction
inheritAlpha
public boolean isInheritAlpha
()
Parameters
public void setInheritAlpha
(boolean val
, )
Parameters
- val
backgroundPainter
public void setBackgroundPainter
(Painter p
, )
Specifies a Painter to use to paint the background of this JXPanel. If p is not null, then setOpaque(false) will be called as a side effect. A component should not be opaque if painters are being used, because Painters may paint transparent pixels or not paint certain pixels, such as around the border insets.
Parameters
- p
public Painter getBackgroundPainter
()
Parameters
scrollableBlockIncrement
public int getScrollableBlockIncrement
(Rectangle visibleRect
, int orientation
, int direction
, )
Parameters
- visibleRect
- orientation
- direction
scrollableTracksViewportWidth
public void setScrollableTracksViewportWidth
(boolean scrollableTracksViewportWidth
, )
Parameters
- scrollableTracksViewportWidth The scrollableTracksViewportWidth to set.
foregroundPainter
public void setForegroundPainter
(Painter p
, )
Specifies a Painter to use to paint the background of this JXPanel. If p is not null, then setOpaque(false) will be called as a side effect. A component should not be opaque if painters are being used, because Painters may paint transparent pixels or not paint certain pixels, such as around the border insets.
Parameters
- p
public Painter getForegroundPainter
()
Parameters
preferredScrollableViewportSize
scrollableTracksViewportHeight
public void setScrollableTracksViewportHeight
(boolean scrollableTracksViewportHeight
, )
Parameters
- scrollableTracksViewportHeight The scrollableTracksViewportHeight to set.
painterSet
public PainterSet getPainterSet
()
Parameters
public void setPainterSet
(PainterSet painterSet
, )
Parameters
- painterSet
alpha
public void setAlpha
(float alpha
, )
Set the alpha transparency level for this component. This automatically causes a repaint of the component. TODO add support for animated changes in translucency
Parameters
- alpha must be a value between 0 and 1 inclusive.