|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepresentativeAnchorDescriptor<D extends Dockable>
This interface is used to modify the behaviour of a representative anchor.
| Method Summary | |
|---|---|
void |
addLockingAnchor(ToolWindowAnchor anchor)
Add an anchor used to indicate where the dockable can be placed. |
boolean |
containsLockingAnchor(ToolWindowAnchor anchor)
Checks if the specified anchor is registered as a locking anchor. |
void |
ensureVisible()
Ensure that the representative anchor is visible to the user. |
ToolWindowAnchor |
getAnchor()
|
D |
getDockable()
Returns the descriptor owner. |
Icon |
getIcon()
Returns the current icon. |
ToolWindowAnchor[] |
getLockingAnchors()
Returns the anchors register as locking anchors. |
int |
getPreviewDelay()
Returns the preview delay. |
float |
getPreviewTransparentRatio()
Returns the transparent ratio. |
String |
getTitle()
Returns the current title. |
boolean |
isPreviewEnabled()
Returns the preview mode status. |
boolean |
isVisible()
Returns true if the representative anchor button is visible, false otherwise. |
void |
removeAllLockingAnchor()
Remove all anchors so the dockable can stay only in the current position |
void |
removeLockingAnchor(ToolWindowAnchor anchor)
Remove an anchor to indicate where the dockable cannot be placed. |
void |
setIcon(Icon icon)
Sets the icon of the representative anchor. |
void |
setPreviewDelay(int delay)
Sets the preview delay. |
void |
setPreviewEnabled(boolean enabled)
Sets the preview mode. |
void |
setPreviewTransparentRatio(float transparentRatio)
Sets the transparent ratio of the preview. |
void |
setTitle(String title)
Sets the title of the representative anchor. |
void |
setVisible(boolean visible)
Enable or disable the representative anchor button. |
void |
showMessage(Icon icon,
String message)
Show a message near the representative anchor. |
| Methods inherited from interface org.noos.xing.mydoggy.Observable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
D getDockable()
ToolWindowAnchor getAnchor()
void setVisible(boolean visible)
visible - true to enable make visible the representative anchor button, false otherwise.boolean isVisible()
void setTitle(String title)
title - the new title of the representative anchor.String getTitle()
void setIcon(Icon icon)
icon - the new icon of the representative anchor.Icon getIcon()
void setPreviewEnabled(boolean enabled)
enabled - true to enable preview mode;
false to disable preview mode.isPreviewEnabled()boolean isPreviewEnabled()
true if the preview mode is enabled;
false otherwise.setPreviewEnabled(boolean)void setPreviewDelay(int delay)
delay - the preview delaygetPreviewDelay()int getPreviewDelay()
setPreviewDelay(int)void setPreviewTransparentRatio(float transparentRatio)
transparentRatio - the transparent ratio.getPreviewTransparentRatio()float getPreviewTransparentRatio()
setPreviewTransparentRatio(float)void addLockingAnchor(ToolWindowAnchor anchor)
anchor - an anchor used to indicate where the dockable can be placed.void removeLockingAnchor(ToolWindowAnchor anchor)
anchor - an anchor to indicate where the dockable cannot be placed.void removeAllLockingAnchor()
ToolWindowAnchor[] getLockingAnchors()
boolean containsLockingAnchor(ToolWindowAnchor anchor)
anchor - the anchor whose presence must be checked.
true if the anchor is present, false otherwise.void ensureVisible()
void showMessage(Icon icon,
String message)
icon - an icon.message - the message to be shown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||