|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.basic.BasicCombiner
bibliothek.extension.gui.dock.station.SplitCombiner
@ClientOnly public class SplitCombiner
This is an alternative implementation of a Combiner, normally not used by this framework. This
Combiner creates a SplitDockStation if the parent station is a ScreenDockStation.
| Constructor Summary | |
|---|---|
SplitCombiner()
|
|
| Method Summary | |
|---|---|
Dockable |
combine(CombinerSource source,
CombinerTarget target)
Merges two Dockables into a new Dockable. |
protected boolean |
isCentered(int width,
int height,
int x,
int y)
Tells whether the position x/y is centered in width/height. |
CombinerTarget |
prepare(CombinerSource source,
boolean force)
Prepares information telling how two Dockables may be combined. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SplitCombiner()
| Method Detail |
|---|
public CombinerTarget prepare(CombinerSource source,
boolean force)
CombinerDockables may be combined.
prepare in interface Combinerprepare in class BasicCombinersource - the Dockable which may be combined, their parent station and
other helpful information.force - if true then a combination must happen, otherwise the
result may be null indicating that a combination is not desired by
this Combiner.
Dockables, may be null to indicate that
a combination is not desired
protected boolean isCentered(int width,
int height,
int x,
int y)
x/y is centered in width/height.
width - the width of some areaheight - the height of some areax - x-coordinate of a pointy - y-coordinate of a point
true if x/y is centered
public Dockable combine(CombinerSource source,
CombinerTarget target)
CombinerDockables into a new Dockable. This method may
set the DockController of the created element in order to initialize
it more efficiently.
combine in interface Combinercombine in class BasicCombinersource - information about the two Dockables that are going to be merged, not null. This
object may or may not have been created by this Combiner, some sanity checks are advised before using ittarget - information that was created by Combiner.prepare(CombinerSource, boolean) using source, not null
Dockable, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||