Class RootPanel

    • Constructor Detail

      • RootPanel

        public RootPanel()
    • Method Detail

      • resetScrollPosition

        public void resetScrollPosition()
      • setEnclosingScrollPane

        protected void setEnclosingScrollPane​(@Nullable
                                              JScrollPane scrollPane)
        The method is invoked by addNotify() and removeNotify() to ensure that any enclosing JScrollPane works correctly with this panel. This method can be safely invoked with a null scrollPane.
        Parameters:
        scrollPane - the enclosing JScrollPane or null if the panel is no longer enclosed in a JScrollPane.
      • getEnclosingScrollPane

        protected JScrollPane getEnclosingScrollPane()
      • getFixedRectangle

        public Rectangle getFixedRectangle()
        Gets the fixedRectangle attribute of the BasicPanel object
        Specified by:
        getFixedRectangle in interface FSCanvas
        Returns:
        The fixedRectangle value
      • addNotify

        public void addNotify()
        Overrides the default implementation to test for and configure any JScrollPane parent.
        Overrides:
        addNotify in class JComponent
      • init

        protected final void init()
      • getScreenExtents

        public Rectangle getScreenExtents()
      • doDocumentLayout

        public void doDocumentLayout​(@Nullable
                                     Graphics g)
      • addDocumentListener

        public void addDocumentListener​(DocumentListener listener)
        Adds the specified Document listener to receive Document events from this component. If listener l is null, no exception is thrown and no action is performed.
        Parameters:
        listener - Contains the DocumentListener for DocumentEvent data.
      • removeDocumentListener

        public void removeDocumentListener​(DocumentListener listener)
        Removes the specified Document listener from receive Document events from this component. If listener l is null, no exception is thrown and no action is performed.
        Parameters:
        listener - Contains the DocumentListener to remove.
      • hasDocumentListeners

        protected boolean hasDocumentListeners()
      • fireDocumentStarted

        protected void fireDocumentStarted()
      • fireDocumentLoaded

        protected void fireDocumentLoaded()
      • fireOnLayoutException

        protected void fireOnLayoutException​(Throwable t)
      • fireOnRenderException

        protected void fireOnRenderException​(Throwable t)
      • getCellRendererPane

        public CellRendererPane getCellRendererPane()
        Returns:
        a CellRendererPane suitable for drawing components in (with CellRendererPane.paintComponent)
      • isHover

        public boolean isHover​(Element e)
        Description copied from interface: UserInterface
        Gets the hover attribute of the UserInterface object
        Specified by:
        isHover in interface UserInterface
        Parameters:
        e - PARAM
        Returns:
        The hover value
      • isActive

        public boolean isActive​(Element e)
        Description copied from interface: UserInterface
        Gets the active attribute of the UserInterface object
        Specified by:
        isActive in interface UserInterface
        Parameters:
        e - PARAM
        Returns:
        The active value
      • isFocus

        public boolean isFocus​(Element e)
        Description copied from interface: UserInterface
        Gets the focus attribute of the UserInterface object
        Specified by:
        isFocus in interface UserInterface
        Parameters:
        e - PARAM
        Returns:
        The focus value
      • relayout

        protected void relayout()
      • getLayoutWidth

        public double getLayoutWidth()
      • isPrintView

        public boolean isPrintView()
      • getRootBox

        public Box getRootBox()
      • setRootBox

        public void setRootBox​(@Nullable
                               Box rootBox)
      • getRootLayer

        public Layer getRootLayer()
      • find

        public Box find​(int x,
                        int y)
      • isExtentsHaveChanged

        protected boolean isExtentsHaveChanged()
      • isNeedRelayout

        protected boolean isNeedRelayout()
      • setNeedRelayout

        protected void setNeedRelayout​(boolean needRelayout)
      • isDefaultFontFromComponent

        public boolean isDefaultFontFromComponent()
      • setDefaultFontFromComponent

        public void setDefaultFontFromComponent​(boolean defaultFontFromComponent)