Package org.processmining.plugins.psd.ui
Class PSDReplaceableScalableComponent
- java.lang.Object
-
- org.processmining.plugins.psd.ui.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
-
-
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 voidaddUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)Adds an updatelistener to this scalable component.javax.swing.JComponentgetComponent()Returns the component that will be scaled using getScale and setScale methods Most implementations will actually override JComponent and returnthisin this method.doublegetScale()Returns the current scale.voidremoveUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)Removes an updatelistener from this scalable component.voidreplaceComponent(org.processmining.framework.util.ui.scalableview.ScalableComponent component)voidsetScale(double newScale)Sets the current scale.
-
-
-
Method Detail
-
getComponent
public javax.swing.JComponent getComponent()
Description copied from interface:org.processmining.framework.util.ui.scalableview.ScalableComponentReturns the component that will be scaled using getScale and setScale methods Most implementations will actually override JComponent and returnthisin this method.- Specified by:
getComponentin interfaceorg.processmining.framework.util.ui.scalableview.ScalableComponent- Returns:
- a component
-
getScale
public double getScale()
Description copied from interface:org.processmining.framework.util.ui.scalableview.ScalableComponentReturns the current scale.- Specified by:
getScalein interfaceorg.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.ScalableComponentSets the current scale.- Specified by:
setScalein interfaceorg.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.ScalableComponentAdds 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:
addUpdateListenerin interfaceorg.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.ScalableComponentRemoves an updatelistener from this scalable component.- Specified by:
removeUpdateListenerin interfaceorg.processmining.framework.util.ui.scalableview.ScalableComponent
-
-