Class GraphicsEnvironmentPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GraphicsEnvironmentPanel extends JPanel
A panel that display a GraphicsEnvironment. The graphics environment is an object that represents the system graphics capabilities.
Since:
1.0.2
Version:
"1.0.14" - b202111241200L
Author:
Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
See Also:
  • Constructor Details

    • GraphicsEnvironmentPanel

      public GraphicsEnvironmentPanel()
      Create a new panel displaying the default GraphicsEnvironment. The GraphicsEnvironment is obtained by GraphicsEnvironment.getLocalGraphicsEnvironment()
    • GraphicsEnvironmentPanel

      public GraphicsEnvironmentPanel(GraphicsEnvironment ge)
      Create a new panel displaying the given GraphicsEnvironment. If the given environment is null, the default GraphicsEnvironment is obtained by GraphicsEnvironment.getLocalGraphicsEnvironment()
      Parameters:
      ge - the GraphicsEnvironment to display.
  • Method Details

    • initGUI

      protected void initGUI()
      Initialize the panel GUI components.
    • refreshGUI

      protected void refreshGUI()
      Refresh the panel GUI components.
    • setGraphicsEnvironment

      public void setGraphicsEnvironment(GraphicsEnvironment ge)
      Set the GraphicsEnvironment displayed within this panel.
      Parameters:
      ge - the GraphicsEnvironment displayed
    • getGraphicsEnvironment

      public GraphicsEnvironment getGraphicsEnvironment()
      Get the GraphicsEnvironment displayed within this panel.
      Returns:
      the GraphicsEnvironment displayed