Class Histogram

    • Field Detail

      • m_Index

        protected Index m_Index
        the attribute index, in case of Instances.
      • m_DataName

        protected String m_DataName
        the name for the data.
      • m_Options

        protected HistogramOptions m_Options
        the histogram options themselves.
    • Constructor Detail

      • Histogram

        public Histogram()
    • Method Detail

      • setIndex

        public void setIndex​(Index value)
        Sets the attribute index in case of Instances data.
        Parameters:
        value - the index
      • getIndex

        public Index getIndex()
        Returns the attirbute index in case of Instances data.
        Returns:
        the index
      • indexTipText

        public String indexTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property
      • setDataName

        public void setDataName​(String value)
        Sets the attribute index in case of Instances data.
        Parameters:
        value - the index
      • getDataName

        public String getDataName()
        Returns the attirbute index in case of Instances data.
        Returns:
        the index
      • dataNameTipText

        public String dataNameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property
      • setOptions

        public void setOptions​(HistogramOptions value)
        Sets the display options.
        Parameters:
        value - the options
      • getOptions

        public HistogramOptions getOptions()
        Returns the display options
        Returns:
        the options
      • optionsTipText

        public String optionsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property
      • accepts

        public Class[] accepts()
        Returns the class that the consumer accepts.
        Specified by:
        accepts in interface InputConsumer
        Returns:
        the Class of objects that can be processed
      • display

        protected void display​(Token token)
        Displays the token (the panel and dialog have already been created at this stage).
        Specified by:
        display in class AbstractDisplay
        Parameters:
        token - the token to display
      • createDisplayPanel

        public DisplayPanel createDisplayPanel​(Token token)
        Creates a new display panel for the token.
        Specified by:
        createDisplayPanel in interface DisplayPanelProvider
        Parameters:
        token - the token to display in a new panel, can be null
        Returns:
        the generated panel
      • displayPanelRequiresScrollPane

        public boolean displayPanelRequiresScrollPane()
        Returns whether the created display panel requires a scroll pane or not.
        Specified by:
        displayPanelRequiresScrollPane in interface DisplayPanelProvider
        Returns:
        true if the display panel requires a scroll pane
      • supplyText

        public String supplyText()
        Supplies the text. May get called even if actor hasn't been executed yet.
        Specified by:
        supplyText in interface TextSupplier
        Specified by:
        supplyText in interface TextSupporter
        Returns:
        the text, null if none available