Class JXRendererHyperlink

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants, PainterAware

public class JXRendererHyperlink extends JXHyperlink implements PainterAware
A JXHyperlink optimized for usage in renderers and with a minimal background painter support.

Note: the painter support will be switched to painter_work as soon it enters main.

Author:
Jeanette Winzenburg
See Also:
  • Field Details

    • painter

      protected Painter painter
  • Constructor Details

    • JXRendererHyperlink

      public JXRendererHyperlink()
  • Method Details

    • setPainter

      public void setPainter(Painter painter)
      TODO maven-javadoc-plugin 3.3.2 needs a doc here
      Specified by:
      setPainter in interface PainterAware
      Parameters:
      painter - Painter
    • getPainter

      public Painter getPainter()
      Specified by:
      getPainter in interface PainterAware
      Returns:
      Painter
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • paintComponentWithPainter

      protected void paintComponentWithPainter(Graphics2D g)
      PRE: painter != null
      Parameters:
      g -
    • updateUI

      public void updateUI()
      Description copied from class: JXHyperlink
      Notification from the UIManager that the LaF has changed. Replaces the current UI object with the latest version from the UIManager.
      Overrides:
      updateUI in class JXHyperlink
      See Also:
    • setToolTipText

      public void setToolTipText(String text)

      Overridden to not automatically de/register itself from/to the ToolTipManager. As rendering component it is not considered to be active in any way, so the manager must not listen.

      Overrides:
      setToolTipText in class JComponent
    • invalidate

      public void invalidate()
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      invalidate in class Container
      Since:
      1.5
    • validate

      public void validate()
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      validate in class Container
    • revalidate

      public void revalidate()
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      revalidate in class JComponent
    • repaint

      public void repaint(long tm, int x, int y, int width, int height)
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      repaint in class JComponent
    • repaint

      public void repaint(Rectangle r)
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      repaint in class JComponent
    • repaint

      public void repaint()
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      repaint in class Component
      Since:
      1.5
    • firePropertyChange

      protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      firePropertyChange in class Component
    • firePropertyChange

      public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
      Overridden for performance reasons. See the Implementation Note for more information.
      Overrides:
      firePropertyChange in class JComponent