diff --git a/src/example/layering_a_screen/ExampleA.java b/src/example/layering_a_screen/ExampleA.java deleted file mode 100644 index de5a27291..000000000 --- a/src/example/layering_a_screen/ExampleA.java +++ /dev/null @@ -1,20 +0,0 @@ -package layering_a_screen; - -import com.valkryst.VTerminal.plaf.VTerminalLookAndFeel; - -import javax.swing.*; - -public class ExampleA { - public static void main(final String[] args) { - try { - UIManager.setLookAndFeel(VTerminalLookAndFeel.getInstance(24)); - } catch (final UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - SwingUtilities.invokeLater(() -> { - final var layeredPane = new JLayeredPane(); - layeredPane.setLayout(new OverlayLayout(layeredPane)); - }); - } -} diff --git a/src/example/layering_a_screen/ExampleB.java b/src/example/layering_a_screen/ExampleB.java deleted file mode 100644 index 589446600..000000000 --- a/src/example/layering_a_screen/ExampleB.java +++ /dev/null @@ -1,27 +0,0 @@ -package layering_a_screen; - -import com.valkryst.VTerminal.component.VPanel; -import com.valkryst.VTerminal.plaf.VTerminalLookAndFeel; - -import javax.swing.*; - -public class ExampleB { - public static void main(final String[] args) { - try { - UIManager.setLookAndFeel(VTerminalLookAndFeel.getInstance(24)); - } catch (final UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - SwingUtilities.invokeLater(() -> { - final var layeredPane = new JLayeredPane(); - layeredPane.setLayout(new OverlayLayout(layeredPane)); - - final var bottomPanel = new VPanel(40, 20); - layeredPane.add(bottomPanel, Integer.valueOf(0)); - - final var topPanel = new VPanel(40, 20); - layeredPane.add(topPanel, Integer.valueOf(0)); - }); - } -} diff --git a/src/example/layering_a_screen/ExampleC.java b/src/example/layering_a_screen/ExampleC.java deleted file mode 100644 index b993e860f..000000000 --- a/src/example/layering_a_screen/ExampleC.java +++ /dev/null @@ -1,29 +0,0 @@ -package layering_a_screen; - -import com.valkryst.VTerminal.component.VPanel; -import com.valkryst.VTerminal.plaf.VTerminalLookAndFeel; - -import javax.swing.*; - -public class ExampleC { - public static void main(final String[] args) { - try { - UIManager.setLookAndFeel(VTerminalLookAndFeel.getInstance(24)); - } catch (final UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - SwingUtilities.invokeLater(() -> { - final var layeredPane = new JLayeredPane(); - layeredPane.setLayout(new OverlayLayout(layeredPane)); - - final var bottomPanel = new VPanel(40, 20); - bottomPanel.setOpaque(true); - layeredPane.add(bottomPanel, Integer.valueOf(0)); - - final var topPanel = new VPanel(40, 20); - bottomPanel.setOpaque(false); - layeredPane.add(topPanel, Integer.valueOf(1)); - }); - } -} diff --git a/src/example/layering_a_screen/ExampleD.java b/src/example/layering_a_screen/ExampleD.java deleted file mode 100644 index a73278a91..000000000 --- a/src/example/layering_a_screen/ExampleD.java +++ /dev/null @@ -1,51 +0,0 @@ -package layering_a_screen; - -import com.valkryst.VTerminal.component.VPanel; -import com.valkryst.VTerminal.plaf.VTerminalLookAndFeel; - -import javax.swing.*; -import java.awt.*; -import java.util.concurrent.ThreadLocalRandom; - -public class ExampleD { - public static void main(final String[] args) { - try { - UIManager.setLookAndFeel(VTerminalLookAndFeel.getInstance(24)); - } catch (final UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - SwingUtilities.invokeLater(() -> { - final var layeredPane = new JLayeredPane(); - layeredPane.setLayout(new OverlayLayout(layeredPane)); - - final var bottomPanel = new VPanel(40, 20); - bottomPanel.setOpaque(true); - layeredPane.add(bottomPanel, Integer.valueOf(0)); - - final var topPanel = new VPanel(20, 20); - topPanel.setOpaque(false); - layeredPane.add(topPanel, Integer.valueOf(1)); - - final var frame = new JFrame(); - frame.add(layeredPane); - frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); - frame.setVisible(true); - frame.pack(); - frame.setLocationRelativeTo(null); - - for (int y = 0 ; y < bottomPanel.getHeightInTiles() ; y++) { - for (int x = 0 ; x < bottomPanel.getWidthInTiles() ; x++) { - bottomPanel.setCodePointAt(x, y, getRandomCodePoint()); - } - } - - bottomPanel.setBackground(Color.RED); - topPanel.setBackground(new Color(0, 0, 255, 100)); - }); - } - - private static int getRandomCodePoint() { - return ThreadLocalRandom.current().nextInt(33, 127); - } -} diff --git a/src/example/layering_a_screen/ExampleE.java b/src/example/layering_a_screen/ExampleE.java deleted file mode 100644 index 84b1af097..000000000 --- a/src/example/layering_a_screen/ExampleE.java +++ /dev/null @@ -1,51 +0,0 @@ -package layering_a_screen; - -import com.valkryst.VTerminal.component.VPanel; -import com.valkryst.VTerminal.plaf.VTerminalLookAndFeel; - -import javax.swing.*; -import java.awt.*; -import java.util.concurrent.ThreadLocalRandom; - -public class ExampleE { - public static void main(final String[] args) { - try { - UIManager.setLookAndFeel(VTerminalLookAndFeel.getInstance(24)); - } catch (final UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - SwingUtilities.invokeLater(() -> { - final var layeredPane = new JLayeredPane(); - layeredPane.setLayout(new OverlayLayout(layeredPane)); - - final var bottomPanel = new VPanel(40, 20); - bottomPanel.setOpaque(true); - layeredPane.add(bottomPanel, Integer.valueOf(0)); - - final var topPanel = new VPanel(20, 20); - topPanel.setOpaque(true); - layeredPane.add(topPanel, Integer.valueOf(1)); - - final var frame = new JFrame(); - frame.add(layeredPane); - frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); - frame.setVisible(true); - frame.pack(); - frame.setLocationRelativeTo(null); - - for (int y = 0 ; y < bottomPanel.getHeightInTiles() ; y++) { - for (int x = 0 ; x < bottomPanel.getWidthInTiles() ; x++) { - bottomPanel.setCodePointAt(x, y, getRandomCodePoint()); - } - } - - bottomPanel.setBackground(Color.RED); - topPanel.setBackground(new Color(0, 0, 255, 100)); - }); - } - - private static int getRandomCodePoint() { - return ThreadLocalRandom.current().nextInt(33, 127); - } -} \ No newline at end of file