|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JLayeredPane bibliothek.gui.dock.station.OverpaintablePanel bibliothek.gui.dock.security.SecureContainer bibliothek.gui.dock.station.flap.ButtonPane
public class ButtonPane
This panel is used by the FlapDockStation
to display some button-titles.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
---|
JLayeredPane.AccessibleJLayeredPane |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JLayeredPane |
---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ButtonPane(FlapDockStation station)
Constructs a new panel. |
Method Summary | |
---|---|
Dimension |
getMinimumSize()
|
int |
getNumberOfButtons()
Gets the number of buttons that are actually shown. |
Dimension |
getPreferredSize()
|
int |
indexAt(int x,
int y)
Searches an location where a Dockable could be inserted. |
protected void |
paintOverlay(Graphics g)
Paints the overlay over all components. |
void |
resetTitles()
Ensures that all titles of the title-map, which was given to the constructor, are shown on this panel. |
void |
setBackground(BackgroundAlgorithm background)
Sets the background algorithm of this panel. |
void |
setDropInfo(FlapDropInfo dropInfo)
Tells where a Dockable is to be put onto the station |
void |
setProperties(DockController controller)
Called by the owning FlapDockStation if the DockController changes. |
void |
spanResized()
Called if the Span s used by this ButtonPane changed their size. |
boolean |
titleContains(int x,
int y)
Tells whether the given point is inside a button. |
Methods inherited from class bibliothek.gui.dock.security.SecureContainer |
---|
createGlassPane, getController, install, isUseGlassPane, setController, setUseGlassPane, uninstall |
Methods inherited from class bibliothek.gui.dock.station.OverpaintablePanel |
---|
doLayout, getBasePane, getContentPane, getMaximumSize, isSolid, setBasePane, setContentPane, setSolid |
Methods inherited from class javax.swing.JLayeredPane |
---|
addImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, remove, removeAll, setLayer, setLayer, setPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ButtonPane(FlapDockStation station)
station
- The ownerMethod Detail |
---|
public void setBackground(BackgroundAlgorithm background)
background
- the algorithmpublic void setDropInfo(FlapDropInfo dropInfo)
Dockable
is to be put onto the station
dropInfo
- the target or null
public boolean titleContains(int x, int y)
x
- the x-coordinatey
- the y-coordinate
true
if the point is inside a child of this panelpublic void setProperties(DockController controller)
FlapDockStation
if the DockController
changes.
controller
- the new controller, can be null
public void resetTitles()
protected void paintOverlay(Graphics g)
OverpaintablePanel
paintOverlay
in class OverpaintablePanel
g
- the graphics to usepublic int indexAt(int x, int y)
Dockable
could be inserted.
x
- the x-coordinate of the mousey
- the y-coordinate of the mouse
public Dimension getMinimumSize()
getMinimumSize
in class OverpaintablePanel
public Dimension getPreferredSize()
getPreferredSize
in class OverpaintablePanel
public int getNumberOfButtons()
public void spanResized()
Span
s used by this ButtonPane
changed their size.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |