|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CombinerTarget
Created by a Combiner
, this object tells how two Dockable
s
are going to be merged.
Method Summary | |
---|---|
DisplayerCombinerTarget |
getDisplayerCombination()
Some Combiner s may use the combining feature of DockableDisplayer s
(DockableDisplayer.prepareCombination(CombinerSource, Enforcement) )
to combine some Dockable s. |
void |
paint(Graphics g,
Component component,
StationPaint paint,
Rectangle stationBounds,
Rectangle dockableBounds)
Paints some lines on the screen that allow the user to understand of what is going to happen if he/she releases the mouse now. Implementations interested in painting something in relation to the position of the mouse can use the following piece of code to get the mouse position: |
Method Detail |
---|
void paint(Graphics g, Component component, StationPaint paint, Rectangle stationBounds, Rectangle dockableBounds)
CombinerSource source = ... // the source that was used to create this target
Point mouse = source.getMousePosition();
if( mouse != null ){
mouse = SwingUtilities.convertPoint( source.getOld().getComponent(), mouse, component );
g
- the graphics context to usecomponent
- the component on which g
paints.paint
- painting algorithms fitting to the current DockTheme
stationBounds
- an estimate of the area which will be affected by inserting
the combined Dockable
, not null
dockableBounds
- the boundaries which a representation of the combined Dockable
has. If possible this is the exact location and size, including any title. If the
station cannot exactly tell where the Dockable
is going to be
(e.g. when CombinerSource.getSize()
returned null
), then
this may be the location and size of a title. Never null
.DisplayerCombinerTarget getDisplayerCombination()
Combiner
s may use the combining feature of DockableDisplayer
s
(DockableDisplayer.prepareCombination(CombinerSource, Enforcement)
)
to combine some Dockable
s. This method returns the information that was provided by the displayer.
null
, null
is always a valid result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |