|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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
EclipseDockableDisplayer2, it is no longer used by the framework
and only remains for backwards compatibility. This class will be removed in a future release.
@Deprecated
@Todo(priority=MINOR,
target=VERSION_1_1_2,
compatibility=BREAK_MINOR,
description="Replace this class with EclipseDockableDisplayer2")
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)
Deprecated. Creates a new DockableDisplayer. |
|
| Method Summary | |
|---|---|
void |
addDockableDisplayerListener(DockableDisplayerListener listener)
Deprecated. Adds listener to this displayer. |
protected BackgroundAlgorithm |
createBackground(CombinedStackDockComponent<EclipseTab,EclipseMenu,EclipseTabInfo> self)
Deprecated. Creates the background algorithm that is used for this component. |
protected BorderForwarder |
createBorderModifier(JComponent target)
Deprecated. Creates the BorderForwarder that is used to set the border of this
panel. |
protected BorderForwarder |
createContentBorderModifier(Dockable dockable,
JComponent target)
Deprecated. Creates a BorderForwarder for the content component for the tab of dockable |
protected DockableDisplayerListener[] |
displayerListeners()
Deprecated. Gets all DockableDisplayerListener known to this displayer. |
Dockable |
getDockable()
Deprecated. Gets the Dockable which is shown on this displayer. |
Insets |
getDockableInsets()
Deprecated. Gets an estimate of the insets around the Dockable of this
displayer compared to the whole size of this displayer. |
Dimension |
getMinimumSize()
Deprecated. Gets the minimal size that TabPane.getAvailableArea() should return. |
DockElementRepresentative |
getMoveableElement()
Deprecated. Gets a representation of the Dockable that can
be used for grabbing and moving around the displayer. |
Dimension |
getNecessarySize()
Deprecated. |
Dimension |
getPreferredSize()
Deprecated. Gets the preferred size that TabPane.getAvailableArea() should return. |
DockStation |
getStation()
Deprecated. Gets the station on which this pane lies. |
DockTitle |
getTitle()
Deprecated. Gets the title which is shown on this displayer. |
DockableDisplayer.Location |
getTitleLocation()
Deprecated. Gets the location of the title in respect to the Dockable. |
DisplayerCombinerTarget |
prepareCombination(CombinerSource source,
Enforcement force)
Deprecated. This method tells how this displayer would like to combine itself with a Dockable that is dropped
over it. |
void |
removeDockableDisplayerListener(DockableDisplayerListener listener)
Deprecated. Removes listener from this displayer. |
void |
setController(DockController controller)
Deprecated. Connects this pane with controller. |
void |
setDockable(Dockable dockable)
Deprecated. Sets the Dockable which should be shown on this displayer. |
void |
setStation(DockStation station)
Deprecated. Sets the station on which this displayer is shown. |
void |
setTitle(DockTitle title)
Deprecated. Sets the title of this displayer. |
void |
setTitleLocation(DockableDisplayer.Location location)
Deprecated. Sets the location of the title in respect to the Dockable. |
boolean |
titleContains(int x,
int y)
Deprecated. 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 |
|---|
addStackDockComponentListener, addTab, addToMenu, clearTabs, createDefaultRepresentation, fireTabChanged, getAvailableArea, getBoundsAt, getComponent, getConfiguration, getContentAt, getDockableAt, getInfoHandler, getMenuHandler, getMinimumSize, getOnTab, getPreferredSize, getSelectedBounds, getSelectedIndex, getTabAt, getTabCount, getTabHandler, getZOrder, insertTab, moveTab, putOnTab, putTab, remove, removeAll, removeFromMenu, removeStackDockComponentListener, removeTab, repaint, revalidate, setComponentAt, setEnabledAt, setIconAt, setSelectedBounds, setSelectedDockable, setSelectedIndex, setTitleAt, setTooltipAt, setZOrder |
| Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPane |
|---|
addTabPaneListener, createMenu, destroyMenu, discardComponentsAndRebuild, doLayout, fireAdded, fireControllerChanged, fireInfoComponentChanged, fireRemoved, fireSelectionChanged, getController, getDockable, getDockableCount, getDockables, getDockTabPlacement, getInfoComponent, getLayoutManager, getMenu, getMenuList, getMenus, getSelectedDockable, getTab, getTabs, getTabsList, getVisibleTab, getVisibleTabCount, indexOf, indexOfVisible, insert, listeners, move, putInMenu, removeTabPaneListener, setDockTabPlacement, setLayoutManager |
| 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 |
|---|
getDockTabPlacement |
| Methods inherited from interface bibliothek.gui.dock.station.stack.StackDockComponent |
|---|
getDockTabPlacement, setDockTabPlacement |
| Constructor Detail |
|---|
public EclipseDockableDisplayer(EclipseTheme theme,
DockStation station,
Dockable dockable)
DockableDisplayer.
theme - the theme which creates this displayer, not nullstation - the parent of this displayer, not nulldockable - the element shown on this displayer, may be null| Method Detail |
|---|
public DockElementRepresentative getMoveableElement()
DockableDisplayerrepresentation of the Dockable that can
be used for grabbing and moving around the displayer. The result of this method should be
the first match of this list:
DockTitleDockElementRepresentativeDockable itselfnull DockableDisplayerListeners.
getMoveableElement in interface DockableDisplayernullpublic Dimension getMinimumSize()
AbstractTabPaneTabPane.getAvailableArea() should return.
getMinimumSize in class AbstractTabPane<EclipseTab,EclipseMenu,EclipseTabInfo>public Dimension getPreferredSize()
AbstractTabPaneTabPane.getAvailableArea() should return.
getPreferredSize in class AbstractTabPane<EclipseTab,EclipseMenu,EclipseTabInfo>public void addDockableDisplayerListener(DockableDisplayerListener listener)
DockableDisplayerlistener to this displayer.
addDockableDisplayerListener in interface DockableDisplayerlistener - the new listener, not nullpublic void removeDockableDisplayerListener(DockableDisplayerListener listener)
DockableDisplayerlistener from this displayer.
removeDockableDisplayerListener in interface DockableDisplayerlistener - the listener to removeprotected DockableDisplayerListener[] displayerListeners()
DockableDisplayerListener known to this displayer.
public void setDockable(Dockable dockable)
DockableDisplayernull means that no Dockable should be visible at all.
setDockable in interface DockableDisplayerdockable - the child, can be nullpublic void setController(DockController controller)
AbstractTabPanecontroller.
setController in interface DockableDisplayersetController in interface StackDockComponentsetController in class EclipseTabPanecontroller - the realm in which this pane works, may be null
public boolean titleContains(int x,
int y)
DockableDisplayerx/y is inside the title of this
displayer or not.
titleContains in interface DockableDisplayerx - 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)
CombinedStackDockComponentthis component. This method
may be called by the constructor.
createBackground in class CombinedStackDockComponent<EclipseTab,EclipseMenu,EclipseTabInfo>self - this
nullpublic Insets getDockableInsets()
DockableDisplayerDockable of this
displayer compared to the whole size of this displayer.
getDockableInsets in interface DockableDisplayerpublic Dockable getDockable()
DockableDisplayer
getDockable in interface DockableDisplayernullpublic DockStation getStation()
EclipseTabPane
getStation in interface DockableDisplayergetStation in class EclipseTabPanepublic DockTitle getTitle()
DockableDisplayer
getTitle in interface DockableDisplayernullpublic DockableDisplayer.Location getTitleLocation()
DockableDisplayer
getTitleLocation in interface DockableDisplayerpublic void setStation(DockStation station)
DockableDisplayer
setStation in interface DockableDisplayerstation - the station or nullpublic void setTitle(DockTitle title)
DockableDisplayernull,
no title is visible. The displayer will change the
orientation
of the title.
setTitle in interface DockableDisplayertitle - the title or nullpublic void setTitleLocation(DockableDisplayer.Location location)
DockableDisplayer
setTitleLocation in interface DockableDisplayerlocation - the location, a value of null is transformed
into the default-valuepublic Dimension getNecessarySize()
public DisplayerCombinerTarget prepareCombination(CombinerSource source,
Enforcement force)
DockableDisplayerDockable that is dropped
over it. This method is usually called by a Combiner or by a DockStation, but other modules
may call this method as well.
prepareCombination in interface DockableDisplayersource - information about the dockable that is dropped, the location of the mouse, etc...force - tells how much the caller would like the result not to be null, if the
force property is high, then the result should more likely not be null.
Note that a result of null is always a valid result, even if the caller does not like it.
null if this displayer does not
have any specific informationprotected BorderForwarder createBorderModifier(JComponent target)
EclipseTabPaneBorderForwarder that is used to set the border of this
panel.
createBorderModifier in class EclipseTabPanetarget - the target component, not null
null
protected BorderForwarder createContentBorderModifier(Dockable dockable,
JComponent target)
CombinedStackDockComponentBorderForwarder for the content component for the tab of dockable
createContentBorderModifier in class EclipseTabPanedockable - 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 | |||||||||