Package com.l2fprod.contrib.freehep
Class PanelArtistUtilities
java.lang.Object
com.l2fprod.contrib.freehep.PanelArtistUtilities
This class is a collection of static methods which are useful for
implementations of the PanelArtist interface. Most methods return an
AffineTransform which will perform some common operation on a window.
- Version:
- $Id: PanelArtistUtilities.java,v 1.1 2001/11/04 11:10:27 l2fprod Exp $
- Author:
- Charles Loomis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AffineTransform
getCCWRotateTransform
(int width, int height) This returns an affine transform which will rotate the contents of the window by 90 degrees.static AffineTransform
getCWRotateTransform
(int width, int height) This returns an affine transform which will rotate the contents of the window by -90 degrees.static AffineTransform
getYFlipTransform
(int height) This returns an affine transform which will flip the vertical axis around.
-
Constructor Details
-
PanelArtistUtilities
public PanelArtistUtilities()
-
-
Method Details
-
getYFlipTransform
This returns an affine transform which will flip the vertical axis around. (NOTE: that this transform should be pre-concatenated with the existing one!) The returned transform will maintain the centerpoint of the window and flip the direction of the y-axis.- Parameters:
height
- Description of Parameter- Returns:
- The YFlipTransform value
-
getCCWRotateTransform
This returns an affine transform which will rotate the contents of the window by 90 degrees. (NOTE: that this transform should be pre-concatenated with the existing one!) The returned transform will rotate the contents of the window by 90 degrees while keeping the centerpoint the same. The x and y-scaling will be adjusted to keep the same area visible.- Parameters:
width
- Description of Parameterheight
- Description of Parameter- Returns:
- The CCWRotateTransform value
-
getCWRotateTransform
This returns an affine transform which will rotate the contents of the window by -90 degrees. (NOTE: that this transform should be pre-concatenated with the existing one!) The returned transform will rotate the contents of the window by -90 degrees while keeping the centerpoint the same. The x and y-scaling will be adjusted to keep the same area visible.- Parameters:
width
- Description of Parameterheight
- Description of Parameter- Returns:
- The CWRotateTransform value
-