[Java-link-svn] SF.net SVN: java-link: [26] branches/private_welterde0/libgui/src/main/java /org/jl
Status: Pre-Alpha
Brought to you by:
welterde0
|
From: <wel...@us...> - 2006-11-25 17:14:05
|
Revision: 26
http://svn.sourceforge.net/java-link/?rev=26&view=rev
Author: welterde0
Date: 2006-11-25 09:14:00 -0800 (Sat, 25 Nov 2006)
Log Message:
-----------
removed legay code(part 2)
Removed Paths:
-------------
branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java
branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootFrame.java
branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootPane.java
branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/Window.java
branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/WindowListener.java
branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/widgets/
Deleted: branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java
===================================================================
--- branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java 2006-11-25 17:12:10 UTC (rev 25)
+++ branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java 2006-11-25 17:14:00 UTC (rev 26)
@@ -1,36 +0,0 @@
-/*
- * GUIRenderer.java
- *
- * Created on 5. Oktober 2006, 14:39
- *
- * JLink: An Introversion Uplink Clone with multiplayer support.
- * Copyright (C) 2006 Tassilo Schweyer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.jlink.libgui;
-
-/**
- *
- * @author welterde
- */
-public class GUIRenderer {
-
- /** Creates a new instance of GUIRenderer */
- public GUIRenderer() {
- }
-
-}
Deleted: branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootFrame.java
===================================================================
--- branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootFrame.java 2006-11-25 17:12:10 UTC (rev 25)
+++ branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootFrame.java 2006-11-25 17:14:00 UTC (rev 26)
@@ -1,86 +0,0 @@
-/*
- * RootFrame.java
- *
- * Created on 14. September 2006, 19:15
- *
- * JLink: An Introversion Uplink Clone with multiplayer support.
- * Copyright (C) 2006 Tassilo Schweyer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.jlink.libgui;
-
-import java.awt.GraphicsEnvironment;
-import java.awt.GraphicsDevice;
-
-import javax.swing.JFrame;
-import javax.swing.JPanel;
-
-/**
- *
- * @author welterde
- */
-public class RootFrame {
-
- /** Creates a new instance of RootFrame */
- public RootFrame(JPanel panel) {
- if(panel == null)
- throw new NullPointerException();
- this.comp_panel = panel;
- this.comp_frame = new JFrame("JLink");
- this.comp_frame.add(this.comp_panel);
- this.comp_frame.pack();
- }
-
-
- public void show(boolean fullscreen) {
- //try to do fullscreen
- if(fullscreen) {
- GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
- GraphicsDevice gs = ge.getDefaultScreenDevice();
- //check if we can switch to fullscreen
- if (gs.isFullScreenSupported()) {
- //TODO: write fullscreen code
- fullscreen = false;
- } else {
- //if not, force fall over to windowed mode
- fullscreen = false;
- }
- }
- if(!fullscreen) {
- this.comp_frame.setSize(1024, 768);
- this.comp_frame.pack();
- this.comp_frame.setVisible(true);
- }
- }
- public void unshow() {
- this.comp_frame.setVisible(false);
- }
- public void dispose() {
- this.comp_frame.dispose();
- }
-
-
-
-
-
-
-
-
-
- private JPanel comp_panel = null;
- private JFrame comp_frame = null;
-}
Deleted: branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootPane.java
===================================================================
--- branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootPane.java 2006-11-25 17:12:10 UTC (rev 25)
+++ branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/RootPane.java 2006-11-25 17:14:00 UTC (rev 26)
@@ -1,67 +0,0 @@
-/*
- * RootPane.java
- *
- * Created on 13. September 2006, 21:28
- *
- * JLink: An Introversion Uplink Clone with multiplayer support.
- * Copyright (C) 2006 Tassilo Schweyer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.jlink.libgui;
-
-import javax.swing.JPanel;
-import javax.swing.JPopupMenu;
-import javax.swing.JMenuItem;
-
-import org.apache.commons.configuration.Configuration;
-import org.apache.commons.configuration.ConversionException;
-
-/**
- *
- * @author welterde
- */
-public class RootPane extends JPanel {
-
- /** Creates a new instance of RootPane */
- public RootPane(Configuration conf) {
- //try to get an default value for X
- try {
- this.win_default_x = conf.getInt("win_x", 768);
- } catch(ConversionException exc) {
- //TODO: log it
- }
- //set X for panel
- //try to get an default value for Y
- try {
- this.win_default_y = conf.getInt("win_y", 768);
- } catch(ConversionException exc) {
- //TODO: log it
- }
-
- }
-
-
-
-
-
- //Base configuration
- private int win_default_x = 200;
- private int win_default_y = 200;
-
-
-
-}
Deleted: branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/Window.java
===================================================================
--- branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/Window.java 2006-11-25 17:12:10 UTC (rev 25)
+++ branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/Window.java 2006-11-25 17:14:00 UTC (rev 26)
@@ -1,57 +0,0 @@
-/*
- * Window.java
- *
- * Created on 14. September 2006, 15:16
- *
- * JLink: An Introversion Uplink Clone with multiplayer support.
- * Copyright (C) 2006 Tassilo Schweyer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.jlink.libgui;
-
-import javax.swing.JInternalFrame;
-import javax.swing.JPanel;
-import javax.swing.JPopupMenu;
-
-/**
- * TODO: add Popupmenu in titlebar
- * TODO: add transparency
- * @author welterde
- */
-public abstract class Window extends JInternalFrame {
-
- /**
- * Creates a new instance of Window
- */
- public Window(String title, boolean resizable, boolean closeable, boolean maximizable, boolean iconifiable) {
- super(title, resizable, closeable, maximizable, iconifiable);
- this.pay_panel = this.getPanel();
- }
-
-
-
- //abstract methods
- protected abstract JPanel getPanel();
-
- protected void setModifiedState(boolean modified) {
- //TODO: write modified code thingy
- }
-
-
-
- private JPanel pay_panel = null;
-}
Deleted: branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/WindowListener.java
===================================================================
--- branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/WindowListener.java 2006-11-25 17:12:10 UTC (rev 25)
+++ branches/private_welterde0/libgui/src/main/java/org/jlink/libgui/WindowListener.java 2006-11-25 17:14:00 UTC (rev 26)
@@ -1,41 +0,0 @@
-/*
- * WindowListener.java
- *
- * Created on 14. September 2006, 22:17
- *
- * JLink: An Introversion Uplink Clone with multiplayer support.
- * Copyright (C) 2006 Tassilo Schweyer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.jlink.libgui;
-
-/**
- *
- * @author welterde
- */
-public interface WindowListener {
- //modified state change
- public void modified();
- public void discarded();//spelled right?
- public void saved();
-
- //window itself
- public void maximized();
- public void minimized();
- public void resized(int x, int y);
- public void moved(int abs_x, int abs_y);
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|