Class ProgressData


  • public class ProgressData
    extends java.lang.Object
    Object representing information about an ongoing calculation.
    • Field Detail

      • taskid

        protected java.lang.Object taskid
        The task id.
      • area

        protected java.awt.Rectangle area
        The area.
      • imagewidth

        protected int imagewidth
        The image width.
      • imageheight

        protected int imageheight
        The image height.
      • finished

        protected boolean finished
        The state (finished or not).
      • displayid

        protected java.lang.String displayid
        The display id.
    • Constructor Detail

      • ProgressData

        public ProgressData()
        Bean constructor.
      • ProgressData

        public ProgressData​(IComponentIdentifier providerid,
                            java.lang.Object taskid,
                            java.awt.Rectangle area,
                            boolean finished,
                            int imagewidth,
                            int imageheight,
                            java.lang.String displayid)
        Create a new ProgressData.
    • Method Detail

      • setProviderId

        public void setProviderId​(IComponentIdentifier providerid)
        Set the provider id.
      • getTaskId

        public java.lang.Object getTaskId()
        Get the task id.
      • setTaskId

        public void setTaskId​(java.lang.Object taskid)
        Set the task id.
      • getArea

        public java.awt.Rectangle getArea()
        Get the area.
      • setArea

        public void setArea​(java.awt.Rectangle area)
        Set the area.
      • isFinished

        public boolean isFinished()
        Check if calculation is finished.
      • setFinished

        public void setFinished​(boolean finished)
        Set the finished flag.
      • getImageWidth

        public int getImageWidth()
        Get the imagewidth.
        Returns:
        the imagewidth.
      • setImageWidth

        public void setImageWidth​(int imagewidth)
        Set the imagewidth.
        Parameters:
        imagewidth - The imagewidth to set.
      • getImageHeight

        public int getImageHeight()
        Get the imageheight.
        Returns:
        the imageheight.
      • setImageHeight

        public void setImageHeight​(int imageheight)
        Set the imageheight.
        Parameters:
        imageheight - The imageheight to set.
      • getDisplayId

        public java.lang.String getDisplayId()
        Get the displayid.
        Returns:
        the displayid.
      • setDisplayId

        public void setDisplayId​(java.lang.String displayid)
        Set the displayid.
        Parameters:
        displayid - The displayid to set.
      • hashCode

        public int hashCode()
        Calculate the hash code.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if two objects are equal.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        String representation.
        Overrides:
        toString in class java.lang.Object