|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.stack.tab.AbstractTabPane<T,M,I> bibliothek.gui.dock.station.stack.CombinedStackDockComponent<EclipseTab,EclipseMenu,EclipseTabInfo> bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabPane bibliothek.extension.gui.dock.theme.eclipse.displayer.EclipseDockableDisplayer
public class EclipseDockableDisplayer
This displayer paints a tab instead of a DockTitle
(if the framework sets a title, then this
title is ignored).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.stack.CombinedStackDockComponent |
---|
CombinedStackDockComponent.Meta |
Nested classes/interfaces inherited from interface bibliothek.gui.dock.station.DockableDisplayer |
---|
DockableDisplayer.Location |
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.station.stack.tab.TabPane |
---|
LAYOUT_MANAGER |
Constructor Summary | |
---|---|
EclipseDockableDisplayer(EclipseTheme theme,
DockStation station,
Dockable dockable)
Creates a new DockableDisplayer . |
Method Summary | |
---|---|
void |
addDockableDisplayerListener(DockableDisplayerListener listener)
Adds listener to this displayer. |
protected BackgroundAlgorithm |
createBackground(CombinedStackDockComponent<EclipseTab,EclipseMenu,EclipseTabInfo> self)
Creates the background algorithm that is used for this component. |
protected BorderForwarder |
createBorderModifier(javax.swing.JComponent target)
Creates the BorderForwarder that is used to set the border of this
panel. |
protected BorderForwarder |
createContentBorderModifier(Dockable dockable,
javax.swing.JComponent target)
Creates a BorderForwarder for the content component for the tab of dockable |
protected DockableDisplayerListener[] |
displayerListeners()
Gets all DockableDisplayerListener known to this displayer. |
Dockable |
getDockable()
Gets the Dockable which is shown on this displayer. |
java.awt.Insets |
getDockableInsets()
Gets an estimate of the insets around the Dockable of this
displayer compared to the whole size of this displayer. |
java.awt.Dimension |
getMinimumSize()
Gets the minimal size that TabPane.getAvailableArea() should return. |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size that TabPane.getAvailableArea() should return. |
DockStation |
getStation()
Gets the station on which this pane lies. |
DockTitle |
getTitle()
Gets the title which is shown on this displayer. |
DockableDisplayer.Location |
getTitleLocation()
Gets the location of the title in respect to the Dockable. |
void |
removeDockableDisplayerListener(DockableDisplayerListener listener)
Removes listener from this displayer. |
void |
setController(DockController controller)
Connects this pane with controller . |
void |
setDockable(Dockable dockable)
Sets the Dockable which should be shown on this displayer. |
void |
setStation(DockStation station)
Sets the station on which this displayer is shown. |
void |
setTitle(DockTitle title)
Sets the title of this displayer. |
void |
setTitleLocation(DockableDisplayer.Location location)
Sets the location of the title in respect to the Dockable. |
boolean |
titleContains(int x,
int y)
Tells whether the point x/y is inside the title of this
displayer or not. |
Methods inherited from class bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabPane |
---|
createContentPane, createLayerAt, getContentInsets, getLayerAt, getPainter, getTabPainter, getTheme, hasBorder, indexOfVisible, isSingleTabComponent, menuRemoved, newMenu, newTab, setContentBorderAt, setInfoComponent, setPainter, tabRemoved, updateFullBorder, updateTabPainter |
Methods inherited from class bibliothek.gui.dock.station.stack.CombinedStackDockComponent |
---|
addChangeListener, addTab, addToMenu, createDefaultRepresentation, getAvailableArea, getBoundsAt, getComponent, getContentAt, getDockableAt, getInfoHandler, getMenuHandler, getSelectedBounds, getSelectedIndex, getTabCount, getTabHandler, getZOrder, insertTab, moveTab, putOnTab, remove, removeAll, removeChangeListener, removeFromMenu, repaint, revalidate, setComponentAt, setIconAt, setSelectedBounds, setSelectedDockable, setSelectedIndex, setTitleAt, setTooltipAt, setZOrder |
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPane |
---|
addTabPaneListener, createMenu, destroyMenu, discardComponentsAndRebuild, doLayout, fireAdded, fireInfoComponentChanged, fireRemoved, fireSelectionChanged, getController, getDockable, getDockableCount, getDockables, getInfoComponent, getLayoutManager, getMenu, getMenuList, getMenus, getOnTab, getSelectedDockable, getTab, getTabPlacement, getTabs, getTabsList, getVisibleTab, getVisibleTabCount, indexOf, indexOfVisible, insert, listeners, move, putInMenu, removeTabPaneListener, setLayoutManager, setTabPlacement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.station.DockableDisplayer |
---|
getComponent, getController |
Methods inherited from interface bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BorderedComponent |
---|
getTabPlacement |
Methods inherited from interface bibliothek.gui.dock.station.stack.StackDockComponent |
---|
setTabPlacement |
Constructor Detail |
---|
public EclipseDockableDisplayer(EclipseTheme theme, DockStation station, Dockable dockable)
DockableDisplayer
.
theme
- the theme which creates this displayer, not null
station
- the parent of this displayer, not null
dockable
- the element shown on this displayer, may be null
Method Detail |
---|
public java.awt.Dimension getMinimumSize()
AbstractTabPane
TabPane.getAvailableArea()
should return.
getMinimumSize
in class AbstractTabPane<EclipseTab,EclipseMenu,EclipseTabInfo>
public java.awt.Dimension getPreferredSize()
AbstractTabPane
TabPane.getAvailableArea()
should return.
getPreferredSize
in class AbstractTabPane<EclipseTab,EclipseMenu,EclipseTabInfo>
public void addDockableDisplayerListener(DockableDisplayerListener listener)
DockableDisplayer
listener
to this displayer.
addDockableDisplayerListener
in interface DockableDisplayer
listener
- the new listener, not null
public void removeDockableDisplayerListener(DockableDisplayerListener listener)
DockableDisplayer
listener
from this displayer.
removeDockableDisplayerListener
in interface DockableDisplayer
listener
- the listener to removeprotected DockableDisplayerListener[] displayerListeners()
DockableDisplayerListener
known to this displayer.
public void setDockable(Dockable dockable)
DockableDisplayer
null
means that no Dockable should be visible at all.
setDockable
in interface DockableDisplayer
dockable
- the child, can be null
public void setController(DockController controller)
AbstractTabPane
controller
.
setController
in interface DockableDisplayer
setController
in interface StackDockComponent
setController
in class EclipseTabPane
controller
- the realm in which this pane works, may be null
public boolean titleContains(int x, int y)
DockableDisplayer
x/y
is inside the title of this
displayer or not.
titleContains
in interface DockableDisplayer
x
- the x-coordinate, relatively to this componenty
- the y-coordinate, relatively to this component
true
if the title contains the pointprotected BackgroundAlgorithm createBackground(CombinedStackDockComponent<EclipseTab,EclipseMenu,EclipseTabInfo> self)
CombinedStackDockComponent
this
component. This method
may be called by the constructor.
createBackground
in class CombinedStackDockComponent<EclipseTab,EclipseMenu,EclipseTabInfo>
self
- this
null
public java.awt.Insets getDockableInsets()
DockableDisplayer
Dockable
of this
displayer compared to the whole size of this displayer.
getDockableInsets
in interface DockableDisplayer
public Dockable getDockable()
DockableDisplayer
getDockable
in interface DockableDisplayer
null
public DockStation getStation()
EclipseTabPane
getStation
in interface DockableDisplayer
getStation
in class EclipseTabPane
public DockTitle getTitle()
DockableDisplayer
getTitle
in interface DockableDisplayer
null
public DockableDisplayer.Location getTitleLocation()
DockableDisplayer
getTitleLocation
in interface DockableDisplayer
public void setStation(DockStation station)
DockableDisplayer
setStation
in interface DockableDisplayer
station
- the station or null
public void setTitle(DockTitle title)
DockableDisplayer
null
,
no title is visible. The displayer will change the
orientation
of the title.
setTitle
in interface DockableDisplayer
title
- the title or null
public void setTitleLocation(DockableDisplayer.Location location)
DockableDisplayer
setTitleLocation
in interface DockableDisplayer
location
- the location, a value of null
is transformed
into the default-valueprotected BorderForwarder createBorderModifier(javax.swing.JComponent target)
EclipseTabPane
BorderForwarder
that is used to set the border of this
panel.
createBorderModifier
in class EclipseTabPane
target
- the target component, not null
null
protected BorderForwarder createContentBorderModifier(Dockable dockable, javax.swing.JComponent target)
CombinedStackDockComponent
BorderForwarder
for the content component for the tab of dockable
createContentBorderModifier
in class EclipseTabPane
dockable
- the item that is showntarget
- the component which is influenced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |