类 AwtMixerService

java.lang.Object
pkg.exoad.poprock.core.AwtMixerService

@ServiceClass(requiresArming=false) public final class AwtMixerService extends Object
AwtMixerService - A utility class designed to convert from common AWT Utility classes to Poprock versions. For example, instead of having to import Dimension, you can easily just use Poprock's core Size when importing pkg.exoad.poprock.core
作者:
Jack Meng
  • 构造器详细资料

    • AwtMixerService

      private AwtMixerService()
  • 方法详细资料

    • convertPointClass

      public static Offset convertPointClass(Point point)
      Converts from an AWT Point class to a Poprock Offset class which is basically the same thing.
      参数:
      point - The AWT Point object
      返回:
      The Poprock Offset object
      另请参阅:
    • convertDimensionClass

      public static Size convertDimensionClass(Dimension dim)
      Converts from an AWT Dimension class to a Poprock Size class.
      参数:
      dim - The AWT Dimension object
      返回:
      The Poprock Size object
      另请参阅: