Class PSDReplaceableScalableComponent

  • All Implemented Interfaces:
    org.processmining.framework.util.ui.scalableview.ScalableComponent

    public class PSDReplaceableScalableComponent
    extends java.lang.Object
    implements org.processmining.framework.util.ui.scalableview.ScalableComponent
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.processmining.framework.util.ui.scalableview.ScalableComponent

        org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener
    • Constructor Summary

      Constructors 
      Constructor Description
      PSDReplaceableScalableComponent​(org.processmining.framework.util.ui.scalableview.ScalableComponent component)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addUpdateListener​(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
      Adds an updatelistener to this scalable component.
      javax.swing.JComponent getComponent()
      Returns the component that will be scaled using getScale and setScale methods Most implementations will actually override JComponent and return this in this method.
      double getScale()
      Returns the current scale.
      void removeUpdateListener​(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
      Removes an updatelistener from this scalable component.
      void replaceComponent​(org.processmining.framework.util.ui.scalableview.ScalableComponent component)  
      void setScale​(double newScale)
      Sets the current scale.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PSDReplaceableScalableComponent

        public PSDReplaceableScalableComponent​(org.processmining.framework.util.ui.scalableview.ScalableComponent component)
    • Method Detail

      • getComponent

        public javax.swing.JComponent getComponent()
        Description copied from interface: org.processmining.framework.util.ui.scalableview.ScalableComponent
        Returns the component that will be scaled using getScale and setScale methods Most implementations will actually override JComponent and return this in this method.
        Specified by:
        getComponent in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
        Returns:
        a component
      • getScale

        public double getScale()
        Description copied from interface: org.processmining.framework.util.ui.scalableview.ScalableComponent
        Returns the current scale.
        Specified by:
        getScale in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
        Returns:
        the current scale as a double
      • setScale

        public void setScale​(double newScale)
        Description copied from interface: org.processmining.framework.util.ui.scalableview.ScalableComponent
        Sets the current scale.

        Specified by:
        setScale in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
      • replaceComponent

        public void replaceComponent​(org.processmining.framework.util.ui.scalableview.ScalableComponent component)
      • addUpdateListener

        public void addUpdateListener​(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
        Description copied from interface: org.processmining.framework.util.ui.scalableview.ScalableComponent
        Adds an updatelistener to this scalable component. This listener will be updated as soon as the contents of the component change, i.e. if the component
        Specified by:
        addUpdateListener in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
      • removeUpdateListener

        public void removeUpdateListener​(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
        Description copied from interface: org.processmining.framework.util.ui.scalableview.ScalableComponent
        Removes an updatelistener from this scalable component.
        Specified by:
        removeUpdateListener in interface org.processmining.framework.util.ui.scalableview.ScalableComponent