Documentation of 'jvx.gui.PuHistogram' Java class
PuHistogram ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.gui

Class PuHistogram

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf


    public final class PuHistogram
    extends PsObject
    General purpose histogram.
    Since:
    JavaView 3.99.045 moved to jvx from dev.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    02.09.09, 2.00 moved (kp) Moved to jvx from dev.
    27.05.07, 1.10 revised (kp) Increased functionality.
    20.05.07, 1.00 created (kp)
    • Constructor Detail

      • PuHistogram

        public PuHistogram(java.lang.String name,
                           PsUpdateIf parent)
        Create new instance with given name and parent. The name appears as label on the histogram, and the parent is informed whenever the histogram has changed using parent.update(this).
        Parameters:
        name - Name of histogram to appear as label in histogram.
        parent - Parent of histogram to receive update events.
    • Method Detail

      • init

        public void init()
        Assign default values, and may be used to reset instance.
        Overrides:
        init in class PsObject
      • reset

        public void reset()
        Reset the progress bar.
      • update

        public boolean update(java.lang.Object event)
        Description copied from class: PsObject
        Update all inspector panels, send update to all registered update listeners and finally update parent. Each of those updates has this object as event independent of the argument of this method.

        Central update method of this object. Must be overwritten if this class receives unknown events, say, from new children. Any subclass must class invoke super.update(event) on all events it does handle itself.

        Specified by:
        update in interface PsUpdateIf
        Overrides:
        update in class PsObject
        Parameters:
        event - carries a lot of information
        Returns:
        true if event has been handled, otherwise false
        See Also:
        PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)
      • isEnabled

        public boolean isEnabled()
        Check whether slider is enabled or disabled.
      • setEnabled

        public void setEnabled(boolean flag)
        Enable or disable the slider for interactive use. If disabled, the double variable can still be modified by calls setValue(double), and the slider is always updated.
        Version:
        06.01.02, 1.10 revised (kp) Update all panels instead of directly enabling the info panel only.
      • getBackground

        public java.awt.Color getBackground()
        Get color of background of info panel.
        Since:
        JavaView 3.50.003
        Version:
        01.08.04, 1.00 created (kp)
      • setBackground

        public void setBackground(java.awt.Color color)
        Set color of background of info panel.
        Since:
        JavaView 3.50.003
        Version:
        01.08.04, 1.00 created (kp)
      • setSamples

        public void setSamples(PdVector data)
        Assign set of samples.
      • getSampleBnd

        public PdVector getSampleBnd()
        Get user defined bounds of samples.
      • setSampleBnd

        public void setSampleBnd(double sampleMin,
                                 double sampleMax)
        Set user defined bounds of samples.
      • getClassType

        public int getClassType()
        Get the class type which determines computation of number of bins. Possible types are like PuHistogram#NUMBINS_SCOTT etc.
        Returns:
        the classType
      • setClassType

        public void setClassType(int classType)
        Set the class type which determines computation of number of bins. Possible types are like PuHistogram#NUMBINS_SCOTT etc.
        Parameters:
        classType - the classType to set
      • getCountType

        public int getCountType()
        Get the count type which determines counting of number of items per bin. Possible types are like PuHistogram#COUNT_RELATIVE etc.
        Returns:
        the countType
      • setCountType

        public void setCountType(int countType)
        Set the count type which determines counting of number of items per bin. Possible types are like PuHistogram#COUNT_RELATIVE etc.
        Parameters:
        countType - the countType to set
      • getNumBins

        public int getNumBins()
        Get the width of individual bins.
        Returns:
        the width of an individual bin
      • isEnabledShowCounts

        public boolean isEnabledShowCounts()
        Determines if showing of total number of items per bin over each column is enabled.
        Returns:
        true if counts are shown
      • setEnabledShowCounts

        public void setEnabledShowCounts(boolean flag)
        Enable showing of total number of items per bin over each column is enabled.
        Parameters:
        flag - true enables showing of numbers
      • isEnabledShowAxisTicks

        public boolean isEnabledShowAxisTicks()
        Determines if showing of ticks and labels along both axis is enabled.
        Returns:
        true if counts are shown
      • setEnabledShowAxisTicks

        public void setEnabledShowAxisTicks(boolean flag)
        Enable showing of ticks and labels along axis.
        Parameters:
        flag - true enables showing of ticks along both axis
      • isEnabledShowAxisLabels

        public boolean isEnabledShowAxisLabels()
        Determines if showing of labels along both axis is enabled.
        Returns:
        true if counts are shown
      • setEnabledShowAxisLabels

        public void setEnabledShowAxisLabels(boolean flag)
        Enable showing of labels along axis.
        Parameters:
        flag - true enables showing of labels along both axis
      • isEnabledSampleBnd

        public boolean isEnabledSampleBnd()
        Determines if manual limits of sample data are enabled.
        Returns:
        true if manual limits are enabled
      • setEnabledSampleBnd

        public void setEnabledSampleBnd(boolean flag)
        Enable use of manual limits of sample data.
        Parameters:
        flag - true enables use of manual limits
      • isEnabledShowTitle

        public boolean isEnabledShowTitle()
        Determines if title is shown on top of histogram.
        Returns:
        true if title is shown
      • setEnabledShowTitle

        public void setEnabledShowTitle(boolean flag)
        Enable showing of title on top f histogram.
        Parameters:
        flag - true enables showing of title
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.