public class BasicToolBarUI extends ToolBarUI implements SwingConstants
| 修食åãšå | ã¯ã©ã¹ | 説æ |
|---|---|---|
class |
BasicToolBarUI.DockingListener |
ãã®ã¯ã©ã¹ã¯ããprotectedãå
éšã¯ã©ã¹ãšããŠæ±ãããã«ããŠãã ããã
|
protected class |
BasicToolBarUI.DragWindow |
|
protected class |
BasicToolBarUI.FrameListener |
|
protected class |
BasicToolBarUI.PropertyListener |
|
protected class |
BasicToolBarUI.ToolBarContListener |
|
protected class |
BasicToolBarUI.ToolBarFocusListener |
| 修食åãšå | ãã£ãŒã«ã | 説æ |
|---|---|---|
protected String |
constraintBeforeFloating |
|
protected Color |
dockingBorderColor |
|
protected Color |
dockingColor |
|
protected MouseInputListener |
dockingListener |
|
protected KeyStroke |
downKey |
éæšå¥šã
Java 2ãã©ãããã©ãŒã v1.3以éã
|
protected BasicToolBarUI.DragWindow |
dragWindow |
|
protected Color |
floatingBorderColor |
|
protected Color |
floatingColor |
|
protected int |
focusedCompIndex |
|
protected KeyStroke |
leftKey |
éæšå¥šã
Java 2ãã©ãããã©ãŒã v1.3以éã
|
protected PropertyChangeListener |
propertyListener |
|
protected KeyStroke |
rightKey |
éæšå¥šã
Java 2ãã©ãããã©ãŒã v1.3以éã
|
protected JToolBar |
toolBar |
|
protected ContainerListener |
toolBarContListener |
|
protected FocusListener |
toolBarFocusListener |
|
protected KeyStroke |
upKey |
éæšå¥šã
Java 2ãã©ãããã©ãŒã v1.3以éã
|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| ã³ã³ã¹ãã©ã¯ã¿ | 説æ |
|---|---|
BasicToolBarUI() |
| 修食åãšå | ã¡ãœãã | 説æ |
|---|---|---|
boolean |
canDock(Component c, Point p) |
|
protected MouseInputListener |
createDockingListener() |
|
protected BasicToolBarUI.DragWindow |
createDragWindow(JToolBar toolbar) |
|
protected JFrame |
createFloatingFrame(JToolBar toolbar) |
çŸåšã§ã¯äœ¿çšãããŠããŸãããBasicToolBarUI.createFloatingWindow(JToolBar)ã䜿çšããŠãã ããã
|
protected RootPaneContainer |
createFloatingWindow(JToolBar toolbar) |
ãã©ãã°ã«ãã£ãŠã³ã³ããããåºãããšãããŒã«ããŒãå«ããŠã£ã³ããŠãäœæããŸãã
|
protected WindowListener |
createFrameListener() |
|
protected Border |
createNonRolloverBorder() |
ããŒã«ããŒã»ã³ã³ããŒãã³ãã®ããã®éããŒã«ãªãŒããŒã»ããŒããŒãäœæããŸãã
|
protected PropertyChangeListener |
createPropertyListener() |
|
protected Border |
createRolloverBorder() |
ããŒã«ããŒã»ã³ã³ããŒãã³ãã®ããã®ããŒã«ãªãŒããŒã»ããŒããŒãäœæããŸãã
|
protected ContainerListener |
createToolBarContListener() |
|
protected FocusListener |
createToolBarFocusListener() |
|
static ComponentUI |
createUI(JComponent c) |
|
protected void |
dragTo(Point position, Point origin) |
|
protected void |
floatAt(Point position, Point origin) |
|
Color |
getDockingColor() |
ãããã³ã°é åã«ãããšãã«è¡šç€ºãããè²ãååŸããŸãã
|
Color |
getFloatingColor() |
ãããŒãã£ã³ã°é åã«ãããšãã«è¡šç€ºãããè²ãååŸããŸãã
|
protected Border |
getNonRolloverBorder(AbstractButton b) |
ãã¿ã³ã®éããŒã«ãªãŒããŒã»ããŒããŒãè¿ããŸãã
|
protected Border |
getRolloverBorder(AbstractButton b) |
ãã¿ã³ã®ããŒã«ãªãŒããŒã»ããŒããŒãè¿ããŸãã
|
protected void |
installComponents() |
|
protected void |
installDefaults() |
|
protected void |
installKeyboardActions() |
|
protected void |
installListeners() |
|
protected void |
installNonRolloverBorders(JComponent c) |
JComponentã®ãã¹ãŠã®åã³ã³ããŒãã³ãã«éããŒã«ãªãŒããŒã»ããŒããŒãã€ã³ã¹ããŒã«ããŸãã
|
protected void |
installNormalBorders(JComponent c) |
JComponentã®ãã¹ãŠã®åã³ã³ããŒãã³ãã«éåžžã®ããŒããŒãã€ã³ã¹ããŒã«ããŸãã
|
protected void |
installRolloverBorders(JComponent c) |
JComponentã®ãã¹ãŠã®åã³ã³ããŒãã³ãã«ããŒã«ãªãŒããŒã»ããŒããŒãã€ã³ã¹ããŒã«ããŸãã
|
void |
installUI(JComponent c) |
æå®ãããã³ã³ããŒãã³ããLook & Feelã«å¿ããŠé©åã«æ§æããŸãã
|
boolean |
isFloating() |
|
boolean |
isRolloverBorders() |
ããŒã«ãªãŒããŒã»ãã¿ã³ã»ããŒããŒã䜿çšå¯èœãã©ãããå€å®ããããã®ãã©ã°ãè¿ããŸãã
|
protected void |
navigateFocusedComp(int direction) |
|
protected void |
paintDragWindow(Graphics g) |
ãã©ãã°ã«äœ¿çšããããŠã£ã³ããŠã®å
容ããã€ã³ãããŸãã
|
protected void |
setBorderToNonRollover(Component c) |
createNonRolloverBorder()ã¡ãœãããäœæããéããŒã«ãªãŒããŒã»ããŒããŒãæã€ããã«ãã³ã³ããŒãã³ãã®ããŒããŒãèšå®ããŸãã |
protected void |
setBorderToNormal(Component c) |
ã³ã³ããŒãã³ãã®ããŒããŒãéåžžã®ããŒããŒãæã€ããã«èšå®ããŸãã
|
protected void |
setBorderToRollover(Component c) |
createRolloverBorder()ã¡ãœãããäœæããããŒã«ãªãŒããŒã»ããŒããŒãæã€ããã«ãã³ã³ããŒãã³ãã®ããŒããŒãèšå®ããŸãã |
void |
setDockingColor(Color c) |
ãããã³ã°é åã«ãããšãã«è¡šç€ºãããè²ãèšå®ããŸãã
|
void |
setFloating(boolean b, Point p) |
|
void |
setFloatingColor(Color c) |
ãããŒãã£ã³ã°é åã«ãããšãã«è¡šç€ºãããè²ãèšå®ããŸãã
|
void |
setFloatingLocation(int x, int y) |
|
void |
setOrientation(int orientation) |
|
void |
setRolloverBorders(boolean rollover) |
ããŒã«ããŒäžã§ããŒã«ãªãŒããŒã»ããŒããŒã䜿çšå¯èœã«ããããã®ãã©ã°ãèšå®ãããã©ã°ã®ç¶æ
ã«å¿ããŠé©åãªããŒããŒãã€ã³ã¹ããŒã«ããŸãã
|
protected void |
uninstallComponents() |
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallKeyboardActions() |
|
protected void |
uninstallListeners() |
|
void |
uninstallUI(JComponent c) |
installUIæã«ãæå®ãããã³ã³ããŒãã³ãã«å¯ŸããŠè¡ãããæ§æãåãæ¶ããŸãã |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updateprotected JToolBar toolBar
protected BasicToolBarUI.DragWindow dragWindow
protected int focusedCompIndex
protected Color dockingColor
protected Color floatingColor
protected Color dockingBorderColor
protected Color floatingBorderColor
protected MouseInputListener dockingListener
protected PropertyChangeListener propertyListener
protected ContainerListener toolBarContListener
protected FocusListener toolBarFocusListener
protected String constraintBeforeFloating
@Deprecated protected KeyStroke upKey
@Deprecated protected KeyStroke downKey
@Deprecated protected KeyStroke leftKey
@Deprecated protected KeyStroke rightKey
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUIComponentUIã€ã³ã¹ã¿ã³ã¹ããæå®ãããã³ã³ããŒãã³ãã®UIå§è²ãšããŠã€ã³ã¹ããŒã«ãããŠãããšãã«åŒã³åºãããŸãã ãã®ã¡ãœããã¯ã次ãå«ãLook & Feelçšã®ã³ã³ããŒãã³ããå®å
šã«æ§æããã¹ãã§ãã
LayoutManagerãã€ã³ã¹ããŒã«ããã
PropertyChangeListenerãäœæããŠã³ã³ããŒãã³ãã«ã€ã³ã¹ããŒã«ããã
installUIãã¯ã©ã¹ComponentUIc - UIå§è²ãã€ã³ã¹ããŒã«ãããã³ã³ããŒãã³ãComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()public void uninstallUI(JComponent c)
ComponentUIinstallUIæã«ãæå®ãããã³ã³ããŒãã³ãã«å¯ŸããŠè¡ãããæ§æãåãæ¶ããŸãã ãã®ã¡ãœããã¯ããã®UIComponentã€ã³ã¹ã¿ã³ã¹ããæå®ãããã³ã³ããŒãã³ãã®UIå§è²ãšããŠåé€ãããŠãããšãã«åŒã³åºãããŸãã ãã®ã¡ãœããã¯ãinstallUIã«ãã£ãŠå®è¡ãããæ§æãå
ã«æ»ãã¹ãã§ãããã®å ŽåãJComponentã€ã³ã¹ã¿ã³ã¹ãã¯ãªãŒã³ãªç¶æ
(äœåãªãªã¹ããŒããLook & Feelåºæã®ããããã£ã»ãªããžã§ã¯ããæ®ããªãããã«)ã«ããããååæ³šæããŠãã ããã æé ã«ã¯æ¬¡ã®ãã®ãå«ãŸããã¹ãã§ãã
uninstallUIãã¯ã©ã¹ComponentUIc - ãã®UIå§è²ãåé€ãããã³ã³ããŒãã³ãããã®åŒæ°ã¯éåžžç¡èŠãããããUIãªããžã§ã¯ããã¹ããŒãã¬ã¹ã§ãè€æ°ã®ã³ã³ããŒãã³ãã§å
±æãããŠããå Žåã¯äœ¿çšãããããšãããComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()protected void installDefaults()
protected void uninstallDefaults()
protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void navigateFocusedComp(int direction)
protected Border createRolloverBorder()
代æ¿ããŒã«ãªãŒããŒã»ããŒããŒãæäŸãããšãã¯ããã®ã¡ãœããããªãŒããŒã©ã€ãããŠãã ããã
protected Border createNonRolloverBorder()
代æ¿ããŒã«ãªãŒããŒã»ããŒããŒãæäŸãããšãã¯ããã®ã¡ãœããããªãŒããŒã©ã€ãããŠãã ããã
protected JFrame createFloatingFrame(JToolBar toolbar)
createFloatingWindow(javax.swing.JToolBar)protected RootPaneContainer createFloatingWindow(JToolBar toolbar)
RootPaneContainerãªããžã§ã¯ããprotected BasicToolBarUI.DragWindow createDragWindow(JToolBar toolbar)
public boolean isRolloverBorders()
setRolloverBorders(boolean)public void setRolloverBorders(boolean rollover)
rollover - trueã®å ŽåãããŒã«ãªãŒããŒã»ããŒããŒãã€ã³ã¹ããŒã«ãããã ããã§ãªãå ŽåãéããŒã«ãªãŒããŒã»ããŒããŒãã€ã³ã¹ããŒã«ããã isRolloverBorders()protected void installRolloverBorders(JComponent c)
setBorderToRolloverãåŒã³åºãããã®ãååã³ã³ããŒãã³ãçšã®ç°¡æã¡ãœããã§ãã
c - åã³ã³ããŒãã³ã(éåžžã¯JToolBar)ãä¿æããã³ã³ããsetBorderToRollover(java.awt.Component)protected void installNonRolloverBorders(JComponent c)
setBorderToNonRolloverãåŒã³åºãããã®ãååã³ã³ããŒãã³ãçšã®ç°¡æã¡ãœããã§ãã
c - åã³ã³ããŒãã³ã(éåžžã¯JToolBar)ãä¿æããã³ã³ããsetBorderToNonRollover(java.awt.Component)protected void installNormalBorders(JComponent c)
setBorderNormalãåŒã³åºãããã®ãååã³ã³ããŒãã³ãçšã®ç°¡æã¡ãœããã§ãã
c - åã³ã³ããŒãã³ã(éåžžã¯JToolBar)ãä¿æããã³ã³ããsetBorderToNonRollover(java.awt.Component)protected void setBorderToRollover(Component c)
createRolloverBorder()ã¡ãœãããäœæããããŒã«ãªãŒããŒã»ããŒããŒãæã€ããã«ãã³ã³ããŒãã³ãã®ããŒããŒãèšå®ããŸããc - ããŒã«ãªãŒããŒã»ããŒããŒãã€ã³ã¹ããŒã«ããã³ã³ããŒãã³ãcreateRolloverBorder()protected Border getRolloverBorder(AbstractButton b)
b - ããŒã«ãªãŒããŒã»ããŒããŒãèšç®ãããã¿ã³setBorderToRollover(java.awt.Component)protected void setBorderToNonRollover(Component c)
createNonRolloverBorder()ã¡ãœãããäœæããéããŒã«ãªãŒããŒã»ããŒããŒãæã€ããã«ãã³ã³ããŒãã³ãã®ããŒããŒãèšå®ããŸããc - éããŒã«ãªãŒããŒã»ããŒããŒãã€ã³ã¹ããŒã«ããã³ã³ããŒãã³ãcreateNonRolloverBorder()protected Border getNonRolloverBorder(AbstractButton b)
b - éããŒã«ãªãŒããŒã»ããŒããŒãèšç®ãããã¿ã³setBorderToNonRollover(java.awt.Component)protected void setBorderToNormal(Component c)
c - éåžžã®ããŒããŒãåã€ã³ã¹ããŒã«ããã³ã³ããŒãã³ãcreateNonRolloverBorder()public void setFloatingLocation(int x,
int y)
public boolean isFloating()
public void setFloating(boolean b,
Point p)
public void setOrientation(int orientation)
public Color getDockingColor()
public void setDockingColor(Color c)
public Color getFloatingColor()
public void setFloatingColor(Color c)
protected ContainerListener createToolBarContListener()
protected FocusListener createToolBarFocusListener()
protected PropertyChangeListener createPropertyListener()
protected MouseInputListener createDockingListener()
protected WindowListener createFrameListener()
protected void paintDragWindow(Graphics g)
g - ãã€ã³ã察象ã®GraphicsãNullPointerException - gãnullã®å Žå ãã°ãŸãã¯æ©èœãéä¿¡
詳现ãªAPIãªãã¡ã¬ã³ã¹ããã³éçºè
ããã¥ã¡ã³ãã«ã€ããŠã¯ãJava SEã®ããã¥ã¡ã³ããåç
§ããŠãã ããã ãã®ããã¥ã¡ã³ãã«ã¯ãæŠå¿µçãªæŠèŠãçšèªã®å®çŸ©ãåé¿æ¹æ³ãæå¹ãªã³ãŒãäŸãªã©ã®ãéçºè
ã察象ã«ãããã詳现ãªèª¬æãå«ãŸããŠããŸãã
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyãåç
§ããŠãã ããã