Class ExampleUtils

java.lang.Object
org.hipparchus.samples.ExampleUtils

public class ExampleUtils extends Object
Graphics utilities for examples.
  • Constructor Details

    • ExampleUtils

      public ExampleUtils()
      Empty constructor.

      This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.

      Since:
      3.0
  • Method Details

    • showExampleFrame

      public static void showExampleFrame(ExampleUtils.ExampleFrame frame)
      Display example.
      Parameters:
      frame - frame to display
    • resizeImage

      public static BufferedImage resizeImage(BufferedImage originalImage, int width, int height, int type)
      Resize an image.
      Parameters:
      originalImage - original image
      width - desired width
      height - desired height
      type - type of the create image
      Returns:
      resized image