Class PanelArtistUtilities

java.lang.Object
com.l2fprod.contrib.freehep.PanelArtistUtilities

public class PanelArtistUtilities extends Object
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 Details

    • PanelArtistUtilities

      public PanelArtistUtilities()
  • Method Details

    • getYFlipTransform

      public static AffineTransform getYFlipTransform(int height)
      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

      public static AffineTransform getCCWRotateTransform(int width, int height)
      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 Parameter
      height - Description of Parameter
      Returns:
      The CCWRotateTransform value
    • getCWRotateTransform

      public static AffineTransform getCWRotateTransform(int width, int height)
      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 Parameter
      height - Description of Parameter
      Returns:
      The CWRotateTransform value