Class IvMFilter

  • All Implemented Interfaces:
    java.lang.Comparable<IvMFilter>

    public abstract class IvMFilter
    extends java.lang.Object
    implements java.lang.Comparable<IvMFilter>
    • Constructor Detail

      • IvMFilter

        public IvMFilter()
        Constructor. User is waiting when this function is called.
    • Method Detail

      • getName

        public abstract java.lang.String getName()
                                          throws java.lang.Exception
        Returns the name of this filter.
        Returns:
        Throws:
        java.lang.Exception
      • createGui

        protected abstract IvMFilterGui createGui​(IvMDecoratorI decorator)
                                           throws java.lang.Exception
        Initialises the JPanel containing the filter settings.
        Returns:
        Throws:
        java.lang.Exception
      • isEnabled

        protected abstract boolean isEnabled()
                                      throws java.lang.Exception
        Returns whether this filter is actually filtering something. If this method returns false, no other filtering function will be called and the entire log will be used.
        Returns:
        Throws:
        java.lang.Exception
      • update

        protected final void update()
        This function is called when the user updates a filter and the filtering has to be recomputed.
      • createFilterGui

        public final void createFilterGui​(java.lang.Runnable onUpdate,
                                          IvMDecoratorI decorator)
      • setEnabledFilter

        public void setEnabledFilter​(boolean enabledFilter)
      • isEnabledFilter

        public final boolean isEnabledFilter()
      • getFilterName

        public final java.lang.String getFilterName()
      • compareTo

        public int compareTo​(IvMFilter o)
        Specified by:
        compareTo in interface java.lang.Comparable<IvMFilter>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object