public class JPAZPanel extends JPanel
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategylistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
JPAZPanel()
Creates a new JPAZPanel with a double buffer and a flow layout.
|
JPAZPanel(boolean isDoubleBuffered)
Creates a new JPAZPanel with FlowLayout and the specified buffering
strategy.
|
JPAZPanel(LayoutManager layout)
Create a new buffered JPAZPanel with the specified layout manager.
|
JPAZPanel(LayoutManager layout,
boolean isDoubleBuffered)
Creates a new JPAZPanel with the specified layout manager and buffering
strategy.
|
JPAZPanel(Pane pane)
Creates a new JPAZPanel with a double buffer and a flow layout displaying
the specified pane.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(Pane pane)
Binds this panel to a pane.
|
void |
bindTo(Pane pane,
boolean align)
Binds this panel to a pane.
|
Pane |
getPane()
Returns the pane that is bound to this panel.
|
boolean |
isAlignMode()
Returns whether the bound pane is aligned to this panel.
|
void |
paint(Graphics g) |
void |
rebindWithEffect(Pane pane,
boolean align,
TransitionEffect transitionEffect,
long duration)
Binds this panel to another pane with transition effect.
|
void |
rebindWithEffect(Pane pane,
TransitionEffect transitionEffect,
long duration)
Binds this panel to another pane with transition effect.
|
void |
setAlignMode(boolean alignMode)
Sets whether the bound pane is aligned to this panel.
|
void |
setPane(Pane pane)
Sets the bound pane.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, 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, updateadd, 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, validateTreeaction, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusUpCyclepublic JPAZPanel()
public JPAZPanel(Pane pane)
pane - the pane to be displayed in this panel.public JPAZPanel(LayoutManager layout)
layout - the LayoutManager to use.public JPAZPanel(boolean isDoubleBuffered)
isDoubleBuffered - a boolean, true for double-buffering, which uses additional
memory space to achieve fast, flicker-free updates.public JPAZPanel(LayoutManager layout, boolean isDoubleBuffered)
layout - the LayoutManager to use.isDoubleBuffered - a boolean, true for double-buffering, which uses additional
memory space to achieve fast, flicker-free updates.public void bindTo(Pane pane, boolean align)
pane - the pane to be bound to this panel.align - a boolean, true for aligning the bound pane to the panel.public void bindTo(Pane pane)
pane - the pane to be bound to this panel.public void rebindWithEffect(Pane pane, boolean align, TransitionEffect transitionEffect, long duration)
pane - the pane to be bound to this panel.align - a boolean, true for aligning the bound pane to the panel.transitionEffect - the transition effect to be applied.duration - the duration of the transition in milliseconds.public void rebindWithEffect(Pane pane, TransitionEffect transitionEffect, long duration)
pane - the pane to be bound to this panel.transitionEffect - the transition effect to be applied.duration - the duration of the transition in milliseconds.public boolean isAlignMode()
public void setAlignMode(boolean alignMode)
alignMode - a boolean, true for aligning the bound pane to this panel.public Pane getPane()
public void setPane(Pane pane)
pane - the desired pane to be bound to this panel.public void paint(Graphics g)
paint in class JComponentCopyright © 2017. All rights reserved.