A Contour is a lightweight component which only paints the outline
of component when dragged. It is also used as a placeholder for some information during dragging.
Usually Contour is added to
JLayeredPane of a
RootPaneContainer so that it looks like floating above other windows.
Notes: this class has to be public so that JIDE can use it in different packages,
not meant to release to end user as a public API. JIDE will not gurantee the class
will remain as it is.
isSingle() When you dragged a component, several other components could be dragged.
For example, if user drags on title bar of FrameContainer, all components in the
FrameContainer are considered as dragged.
public boolean
isTabDocking() Returns true if the contour is in tab-dock mode.
public boolean
isVisible() Determines whether this component should be visible when its
parent is visible.
public void
setAllowDocking(boolean allowDocking) Sets the value of docking.
When you dragged a component, several other components could be dragged.
For example, if user drags on title bar of FrameContainer, all components in the
FrameContainer are considered as dragged. If user drags on tab, only selected one
is dragged.
true if all dragged components are affected; false otherwise.
Determines whether this component should be visible when its
parent is visible. Components are
initially visible, with the exception of top level components such
as Frame objects.
true if the component is visible,false otherwise See Also:IContour.setVisible since: JDK1.0
setAllowDocking
public void setAllowDocking(boolean allowDocking)(Code)
Sets the value of docking.
Parameters: allowDocking - true if docking is allowed; false otherwise.
setAttachedComponent
public void setAttachedComponent(Component attachedComponent)(Code)
Sets the attached components.
Parameters: attachedComponent - attached component to be set
setAttachedSide
public void setAttachedSide(int attachedSide)(Code)
Sets the side of the attached component which the contour is attached to.
Parameters: attachedSide - the new attached side to be set
public void setBounds(int x, int y, int width, int height)(Code)
setChangeCursor
public void setChangeCursor(boolean changeCursor)(Code)
setDraggingInformation
public void setDraggingInformation(JComponent comp, int saveX, int saveY, int saveMouseModifier)(Code)
Stores information before the contour is hidden. Those information
will be used to restore when the contour is set visible again.
Parameters: comp - the dragged component Parameters: saveX - X position of the contour Parameters: saveY - Y position of the contour Parameters: saveMouseModifier - mouse modifier in the MouseEvent
Makes the component visible or invisible.
Overrides Component.setVisible.
Parameters: aFlag - true to make the component visible; false tomake it invisible