Class TerraSplitPaneSkin

    • Constructor Detail

      • TerraSplitPaneSkin

        public TerraSplitPaneSkin()
    • 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 ContainerSkin
        Parameters:
        component - The component to which the skin is being attached.
      • setSize

        public void setSize​(int width,
                            int height)
        Description copied from class: ComponentSkin
        Set the final size of the component after layout has finished.

        All subclasses must call this superclass method in order to set the ComponentSkin.width and ComponentSkin.height values, but may need to do additional calculations before doing so.

        Specified by:
        setSize in interface ConstrainedVisual
        Overrides:
        setSize in class ComponentSkin
        Parameters:
        width - The new (final) width of the component after layout.
        height - The new (final) height of the component after layout.
      • 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 ContainerSkin
        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 ContainerSkin
        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
      • getSplitterHandlePrimaryColor

        public java.awt.Color getSplitterHandlePrimaryColor()
      • setSplitterHandlePrimaryColor

        public void setSplitterHandlePrimaryColor​(java.awt.Color splitterHandlePrimaryColor)
      • setSplitterHandlePrimaryColor

        public final void setSplitterHandlePrimaryColor​(java.lang.String splitterHandlePrimaryColor)
      • setSplitterHandlePrimaryColor

        public final void setSplitterHandlePrimaryColor​(int splitterHandlePrimaryColor)
      • getSplitterHandleSecondaryColor

        public java.awt.Color getSplitterHandleSecondaryColor()
      • setSplitterHandleSecondaryColor

        public void setSplitterHandleSecondaryColor​(java.awt.Color splitterHandleSecondaryColor)
      • setSplitterHandleSecondaryColor

        public final void setSplitterHandleSecondaryColor​(java.lang.String splitterHandleSecondaryColor)
      • setSplitterHandleSecondaryColor

        public final void setSplitterHandleSecondaryColor​(int splitterHandleSecondaryColor)
      • getSplitterThickness

        public int getSplitterThickness()
      • setSplitterThickness

        public void setSplitterThickness​(int splitterThickness)
      • getUseShadow

        public boolean getUseShadow()
      • setUseShadow

        public void setUseShadow​(boolean useShadow)
      • topLeftChanged

        public void topLeftChanged​(SplitPane splitPane,
                                   Component previousTopLeft)
        Description copied from interface: SplitPaneListener
        Called when a split pane's top left component has changed.
        Specified by:
        topLeftChanged in interface SplitPaneListener
        Parameters:
        splitPane - The source of the event.
        previousTopLeft - The previous component. The new component can be found inside the splitPane.
      • bottomRightChanged

        public void bottomRightChanged​(SplitPane splitPane,
                                       Component previousBottomRight)
        Description copied from interface: SplitPaneListener
        Called when a split pane's bottom right component has changed.
        Specified by:
        bottomRightChanged in interface SplitPaneListener
        Parameters:
        splitPane - The source of the event.
        previousBottomRight - The previous component. The new component can be found inside the splitPane.
      • splitRatioChanged

        public void splitRatioChanged​(SplitPane splitPane,
                                      float previousSplitLocation)
        Description copied from interface: SplitPaneListener
        Called when a split pane's split location has changed.
        Specified by:
        splitRatioChanged in interface SplitPaneListener
        Parameters:
        splitPane - The source of the event.
        previousSplitLocation - The previous setting of the splitRatio.
      • lockedChanged

        public void lockedChanged​(SplitPane splitPane)
        Description copied from interface: SplitPaneListener
        Called when a split pane's locked flag has changed.
        Specified by:
        lockedChanged in interface SplitPaneListener
        Parameters:
        splitPane - The source of the event.
      • resizeModeChanged

        public void resizeModeChanged​(SplitPane splitPane,
                                      SplitPane.ResizeMode previousResizeMode)
        Description copied from interface: SplitPaneListener
        Called when a split pane's split location has changed.
        Specified by:
        resizeModeChanged in interface SplitPaneListener
        Parameters:
        splitPane - The source of the event.
        previousResizeMode - The previous setting of the resizeMode.