public class ApplicationResizeManager
extends java.lang.Object
Constructor and Description |
---|
ApplicationResizeManager(javax.swing.JFrame frame)
Default constructor; only expanding allowed
|
ApplicationResizeManager(javax.swing.JFrame frame,
EZoomModes zoomMode,
double xScale,
double yScale)
Constructor
|
ApplicationResizeManager(javax.swing.JFrame frame,
java.lang.String zoomMode,
double xScale,
double yScale)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.AffineTransform |
getScaleTransformation()
Returns the affine scale transformation which has to be used in the paint method of a graphic object
|
double |
getScaleX()
Returns the x scaling value.
|
double |
getScaleY()
Returns the y scaling value.
|
void |
resizeApplication()
Controls the resizing of visual application frame.
|
void |
setReferenceSize(double xScale,
double yScale)
Sets the reference size of the visual application frame with respect to the design size of the application.
|
void |
setResizeModeToNoZoom()
Sets the resize mode of the visual application frame to "NOZOOM".
|
void |
setResizeModeToZoom()
Sets the resize mode of the visual application frame to "ZOOM".
|
void |
setResizeModeToZoomMaxOnly()
Sets the resize mode of the visual application frame to "ZOOM" but allows only magnification of the application frame.
|
public ApplicationResizeManager(javax.swing.JFrame frame)
frame
- Jframe to be resizedpublic ApplicationResizeManager(javax.swing.JFrame frame, java.lang.String zoomMode, double xScale, double yScale)
frame
- JFrame to be resizedzoomMode
- zoommode (ZOOM, NOZOOM, ZOOMMAXONLY)xScale
- initial horizontal scalingyScale
- initial vertical scalingpublic ApplicationResizeManager(javax.swing.JFrame frame, EZoomModes zoomMode, double xScale, double yScale)
frame
- JFrame to be resizedzoomMode
- zoommode (ZOOM, NOZOOM, ZOOMMAXONLY)xScale
- initial horizontal scalingyScale
- initial vertical scalingpublic void setResizeModeToZoom()
public void setResizeModeToNoZoom()
public void setResizeModeToZoomMaxOnly()
public void setReferenceSize(double xScale, double yScale)
xScale
- initial horizontal scaling factoryScale
- initial vertical scaling factorpublic void resizeApplication()
public java.awt.geom.AffineTransform getScaleTransformation()
public double getScaleX()
public double getScaleY()
13-September-2017 07:50 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft