Class EnhancementFunctionPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class EnhancementFunctionPanel extends JPanel
An enhancement function panel displays an enhancement function graphically as a line plot.
Since:
3.1.6
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • EnhancementFunctionPanel

      public EnhancementFunctionPanel()
      Creates a new enhancement function panel with no initial function.
    • EnhancementFunctionPanel

      public EnhancementFunctionPanel(EnhancementFunction func)
      Creates a new enhancement function panel with the specified initial function.
      Parameters:
      func - the initial function.
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • setFunction

      public void setFunction(EnhancementFunction func)
      Sets the current enhancement function.
      Parameters:
      func - the function to use.
    • setRange

      public void setRange(double[] range)
      Sets the data value range. The range is used in combination with the enhancement function to determine the line plot. By default the range is determined from the enhancement function itself.
      Parameters:
      range - the data value range as [min, max].