Class TerraTooltipSkin

    • Constructor Detail

      • TerraTooltipSkin

        public TerraTooltipSkin()
    • Method Detail

      • install

        public void install​(Component component)
        Description copied from class: ComponentSkin
        Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.
        Specified by:
        install in interface Skin
        Overrides:
        install in class WindowSkin
        Parameters:
        component - The component to which the skin is being attached.
      • getPreferredWidth

        public int getPreferredWidth​(int height)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred width given the provided height constraint.
        Specified by:
        getPreferredWidth in interface ConstrainedVisual
        Overrides:
        getPreferredWidth in class WindowSkin
        Parameters:
        height - The height by which to constrain the preferred width, or -1 for no constraint.
        Returns:
        The preferred width given the height constraint.
      • getPreferredHeight

        public int getPreferredHeight​(int width)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred height given the provided width constraint.
        Specified by:
        getPreferredHeight in interface ConstrainedVisual
        Overrides:
        getPreferredHeight in class WindowSkin
        Parameters:
        width - The width by which to constrain the preferred height, or -1 for no constraint.
        Returns:
        The preferred height given the width constraint.
      • layout

        public void layout()
        Description copied from interface: Skin
        If the component on which the skin is installed is a container, lays out the container's children.
        Specified by:
        layout in interface Skin
        Overrides:
        layout in class WindowSkin
      • paint

        public void paint​(java.awt.Graphics2D graphics)
        Description copied from interface: Visual
        Paints the visual.
        Specified by:
        paint in interface Visual
        Overrides:
        paint in class ContainerSkin
        Parameters:
        graphics - The graphics context in which to paint the visual.
      • getCloseTransitionDuration

        public int getCloseTransitionDuration()
      • setCloseTransitionDuration

        public void setCloseTransitionDuration​(int closeTransitionDuration)
      • getCloseTransitionRate

        public int getCloseTransitionRate()
      • setCloseTransitionRate

        public void setCloseTransitionRate​(int closeTransitionRate)
      • windowOpened

        public void windowOpened​(Window window)
        Description copied from interface: WindowStateListener
        Called when a window has opened.
        Parameters:
        window - The newly opened window.
      • previewWindowClose

        public Vote previewWindowClose​(Window window)
        Description copied from interface: WindowStateListener
        Called to preview a window close event.
        Parameters:
        window - The window that wants to close.
        Returns:
        The vote from each listener as to whether to allow the close.
      • windowCloseVetoed

        public void windowCloseVetoed​(Window window,
                                      Vote reason)
        Description copied from interface: WindowStateListener
        Called when a window close event has been vetoed.
        Parameters:
        window - The window that was to close, but now will not.
        reason - The accumulated vote from all the listeners that vetoed this event.