Class CurrentScreenWatch
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.canvas.PixelScaleWatch
-
- org.jzy3d.plot3d.rendering.canvas.CurrentScreenWatch
-
- All Implemented Interfaces:
Runnable
public abstract class CurrentScreenWatch extends PixelScaleWatch
Check periodically if screen size has changed, hence allowing to check a changing monitor.- Author:
- Martin Pernollet
-
-
Constructor Summary
Constructors Constructor Description CurrentScreenWatch(Component component)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
firePixelScaleChanged(double pixelScaleX, double pixelScaleY)
protected void
firePixelScaleInit(double pixelScaleX, double pixelScaleY)
protected abstract void
fireScreenChange(double screenWidth, double screenHeight)
double
getPixelScaleX()
double
getPixelScaleY()
-
Methods inherited from class org.jzy3d.plot3d.rendering.canvas.PixelScaleWatch
getWatchIntervalMs, run, setWatchIntervalMs, watchPixelScaleAndNotifyUponChange
-
-
-
-
Field Detail
-
component
protected Component component
-
-
Constructor Detail
-
CurrentScreenWatch
public CurrentScreenWatch(Component component)
-
-
Method Detail
-
fireScreenChange
protected abstract void fireScreenChange(double screenWidth, double screenHeight)
-
firePixelScaleChanged
protected void firePixelScaleChanged(double pixelScaleX, double pixelScaleY)
- Specified by:
firePixelScaleChanged
in classPixelScaleWatch
-
firePixelScaleInit
protected void firePixelScaleInit(double pixelScaleX, double pixelScaleY)
- Overrides:
firePixelScaleInit
in classPixelScaleWatch
-
getPixelScaleX
public double getPixelScaleX()
- Specified by:
getPixelScaleX
in classPixelScaleWatch
-
getPixelScaleY
public double getPixelScaleY()
- Specified by:
getPixelScaleY
in classPixelScaleWatch
-
-