Class PathRenderer

    • Constructor Detail

      • PathRenderer

        public PathRenderer()
        Deprecated.
    • Method Detail

      • getClientEndPreferredSize

        protected int getClientEndPreferredSize​(PathElement pathElement)
        Deprecated.
        The path client end preferred size. End size is used when drawing adornment on path end (e.g. arrow on the end). Override to change the client end size.
        Parameters:
        pathElement - path element.
        Returns:
        end size, or 0 to use default end size.
      • getSupplierEndPreferredSize

        protected int getSupplierEndPreferredSize​(PathElement pathElement)
        Deprecated.
        The path supplier end preferred size. End size is used when drawing adornment on path end (e.g. arrow on the end). Override to change the supplier end size.
        Parameters:
        pathElement - path element.
        Returns:
        end size, or 0 to use default end size.
      • getClientEndRenderer

        @CheckForNull
        protected PathEndRenderer getClientEndRenderer​(PathElement pathElement)
        Deprecated.
        Provides the path client end renderer. Override the method to return the custom path end renderer.
        Parameters:
        pathElement - path element.
        Returns:
        custom renderer, or null to use default end renderer.
        See Also:
        PathEndRenderer
      • getSupplierEndRenderer

        @CheckForNull
        protected PathEndRenderer getSupplierEndRenderer​(PathElement pathElement)
        Deprecated.
        Provides the path supplier end renderer. Override the method to return the custom path end renderer.
        Parameters:
        pathElement - path element.
        Returns:
        custom renderer, or null to use default end renderer.
        See Also:
        PathEndRenderer
      • getLineWidth

        public int getLineWidth​(PresentationElement presentationElement)
        Deprecated.
        Returns path line width. Override to use the custom line width.
        Parameters:
        presentationElement - drawing path.
        Returns:
        line width, or 0 to use default line width.
      • drawPathAdornment

        @OpenApi
        protected void drawPathAdornment​(java.awt.Graphics g,
                                         PathElement pathElement)
        Deprecated.
        Draws the path adornment. By default draws no adornment. Override the method to add the custom adornment drawing.
        Parameters:
        g - graphics where path is drawn.
        pathElement - path to draw adornment for.