package renamed
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc;
|
||||
package org.diylc;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
@@ -7,8 +7,8 @@ import java.util.Properties;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import org.apache.log4j.PropertyConfigurator;
|
||||
import org.diylc.gui.MainFrame;
|
||||
|
||||
import com.diyfever.diylc.gui.MainFrame;
|
||||
import com.diyfever.gui.miscutils.PropertyInjector;
|
||||
|
||||
/**
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
public class BadPositionException extends Exception {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
@@ -8,7 +8,8 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import com.diyfever.diylc.model.IComponentInstance;
|
||||
import org.diylc.model.IComponentInstance;
|
||||
|
||||
|
||||
/**
|
||||
* Represents component selection as a {@link List} of
|
||||
@@ -1,11 +1,12 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import com.diyfever.diylc.model.IComponentInstance;
|
||||
import com.diyfever.diylc.model.VisibilityPolicy;
|
||||
import org.diylc.model.IComponentInstance;
|
||||
import org.diylc.model.VisibilityPolicy;
|
||||
|
||||
|
||||
/**
|
||||
* Entity bean that represents a control point. Has methods for reading/writing
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
|
||||
import com.diyfever.diylc.model.IComponentType;
|
||||
import com.diyfever.diylc.model.Project;
|
||||
import org.diylc.model.IComponentType;
|
||||
import org.diylc.model.Project;
|
||||
|
||||
|
||||
/**
|
||||
* Enumerates all possible events between {@link IPlugInPort} and
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import com.diyfever.gui.simplemq.IMessageListener;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import java.awt.Cursor;
|
||||
import java.awt.Dimension;
|
||||
@@ -14,10 +14,11 @@ import javax.swing.JComponent;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.JPopupMenu.Separator;
|
||||
|
||||
import com.diyfever.diylc.model.ComponentLayer;
|
||||
import com.diyfever.diylc.model.IComponentInstance;
|
||||
import com.diyfever.diylc.model.IComponentType;
|
||||
import com.diyfever.diylc.model.Project;
|
||||
import org.diylc.model.ComponentLayer;
|
||||
import org.diylc.model.IComponentInstance;
|
||||
import org.diylc.model.IComponentType;
|
||||
import org.diylc.model.Project;
|
||||
|
||||
import com.diyfever.gui.simplemq.IMessageListener;
|
||||
import com.diyfever.gui.simplemq.MessageDispatcher;
|
||||
import com.diyfever.gui.update.VersionNumber;
|
||||
@@ -1,9 +1,10 @@
|
||||
package com.diyfever.diylc.common;
|
||||
package org.diylc.common;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import com.diyfever.diylc.model.IComponentInstance;
|
||||
import org.diylc.model.IComponentInstance;
|
||||
|
||||
|
||||
/**
|
||||
* Entity class for editable properties extracted from component objects.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui;
|
||||
package org.diylc.gui;
|
||||
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Graphics2D;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui;
|
||||
package org.diylc.gui;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
@@ -8,14 +8,15 @@ import javax.swing.JFileChooser;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.filechooser.FileFilter;
|
||||
|
||||
import com.diyfever.diylc.common.PropertyWrapper;
|
||||
import com.diyfever.diylc.gui.components.OverwritePromptFileChooser;
|
||||
import com.diyfever.diylc.gui.editor.PropertyEditorDialog;
|
||||
import com.diyfever.diylc.plugins.file.BomDialog;
|
||||
import com.diyfever.diylc.plugins.file.BomEntry;
|
||||
import com.diyfever.diylc.plugins.online.view.LoginDialog;
|
||||
import com.diyfever.diylc.plugins.online.view.NewUserDialog;
|
||||
import com.diyfever.diylc.plugins.online.view.UploadDialog;
|
||||
import org.diylc.common.PropertyWrapper;
|
||||
import org.diylc.gui.components.OverwritePromptFileChooser;
|
||||
import org.diylc.gui.editor.PropertyEditorDialog;
|
||||
import org.diylc.plugins.file.BomDialog;
|
||||
import org.diylc.plugins.file.BomEntry;
|
||||
import org.diylc.plugins.online.view.LoginDialog;
|
||||
import org.diylc.plugins.online.view.NewUserDialog;
|
||||
import org.diylc.plugins.online.view.UploadDialog;
|
||||
|
||||
import com.diyfever.gui.AboutDialog;
|
||||
import com.diyfever.gui.IFileChooserAccessory;
|
||||
import com.diyfever.gui.ProgressDialog;
|
||||
@@ -1,11 +1,12 @@
|
||||
package com.diyfever.diylc.gui;
|
||||
package org.diylc.gui;
|
||||
|
||||
import javax.swing.Action;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JComponent;
|
||||
|
||||
import com.diyfever.diylc.common.BadPositionException;
|
||||
import com.diyfever.diylc.common.IPlugInPort;
|
||||
import org.diylc.common.BadPositionException;
|
||||
import org.diylc.common.IPlugInPort;
|
||||
|
||||
|
||||
/**
|
||||
* Base interface for the main GUI component.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui;
|
||||
package org.diylc.gui;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Container;
|
||||
@@ -21,16 +21,17 @@ import javax.swing.JPanel;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.Timer;
|
||||
|
||||
import com.diyfever.diylc.common.BadPositionException;
|
||||
import com.diyfever.diylc.model.Project;
|
||||
import com.diyfever.diylc.plugins.canvas.CanvasPlugin;
|
||||
import com.diyfever.diylc.plugins.clipboard.ClipboardManager;
|
||||
import com.diyfever.diylc.plugins.file.FileManager;
|
||||
import com.diyfever.diylc.plugins.help.HelpManager;
|
||||
import com.diyfever.diylc.plugins.online.OnlineManager;
|
||||
import com.diyfever.diylc.plugins.statusbar.StatusBar;
|
||||
import com.diyfever.diylc.plugins.toolbox.ToolBox;
|
||||
import com.diyfever.diylc.presenter.Presenter;
|
||||
import org.diylc.common.BadPositionException;
|
||||
import org.diylc.model.Project;
|
||||
import org.diylc.plugins.canvas.CanvasPlugin;
|
||||
import org.diylc.plugins.clipboard.ClipboardManager;
|
||||
import org.diylc.plugins.file.FileManager;
|
||||
import org.diylc.plugins.help.HelpManager;
|
||||
import org.diylc.plugins.online.OnlineManager;
|
||||
import org.diylc.plugins.statusbar.StatusBar;
|
||||
import org.diylc.plugins.toolbox.ToolBox;
|
||||
import org.diylc.presenter.Presenter;
|
||||
|
||||
|
||||
public class MainFrame extends JFrame implements IView {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui.components;
|
||||
package org.diylc.gui.components;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui.editor;
|
||||
package org.diylc.gui.editor;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Cursor;
|
||||
@@ -10,7 +10,8 @@ import javax.swing.JColorChooser;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import com.diyfever.diylc.common.PropertyWrapper;
|
||||
import org.diylc.common.PropertyWrapper;
|
||||
|
||||
|
||||
public class ColorEditor extends JLabel {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package com.diyfever.diylc.gui.editor;
|
||||
package org.diylc.gui.editor;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
|
||||
import com.diyfever.diylc.common.PropertyWrapper;
|
||||
import com.diyfever.diylc.model.measures.AbstractMeasure;
|
||||
import org.diylc.common.PropertyWrapper;
|
||||
import org.diylc.model.measures.AbstractMeasure;
|
||||
|
||||
|
||||
public class FieldEditorFactory {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui.editor;
|
||||
package org.diylc.gui.editor;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Container;
|
||||
@@ -11,8 +11,9 @@ import java.lang.reflect.Method;
|
||||
|
||||
import javax.swing.JComboBox;
|
||||
|
||||
import com.diyfever.diylc.common.PropertyWrapper;
|
||||
import com.diyfever.diylc.model.measures.AbstractMeasure;
|
||||
import org.diylc.common.PropertyWrapper;
|
||||
import org.diylc.model.measures.AbstractMeasure;
|
||||
|
||||
import com.diyfever.gui.DoubleTextField;
|
||||
|
||||
public class MeasureEditor extends Container {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.gui.editor;
|
||||
package org.diylc.gui.editor;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import java.awt.GridBagConstraints;
|
||||
@@ -18,8 +18,8 @@ import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.diylc.common.PropertyWrapper;
|
||||
|
||||
import com.diyfever.diylc.common.PropertyWrapper;
|
||||
import com.diyfever.gui.ButtonDialog;
|
||||
|
||||
public class PropertyEditorDialog extends ButtonDialog {
|
||||
@@ -1,10 +1,11 @@
|
||||
package com.diyfever.diylc.gui.editor;
|
||||
package org.diylc.gui.editor;
|
||||
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
|
||||
import com.diyfever.diylc.common.PropertyWrapper;
|
||||
import org.diylc.common.PropertyWrapper;
|
||||
|
||||
|
||||
public class StringEditor extends JTextField {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.images;
|
||||
package org.diylc.images;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.ImageIcon;
|
||||
|
Before Width: | Height: | Size: 875 B After Width: | Height: | Size: 875 B |
|
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 729 B |
|
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 749 B |
|
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 736 B |
|
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 993 B After Width: | Height: | Size: 993 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 863 B After Width: | Height: | Size: 863 B |
|
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 708 B |
|
Before Width: | Height: | Size: 960 B After Width: | Height: | Size: 960 B |
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 728 B |
|
Before Width: | Height: | Size: 595 B After Width: | Height: | Size: 595 B |
|
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 781 B |
|
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 914 B |
|
Before Width: | Height: | Size: 876 B After Width: | Height: | Size: 876 B |
|
Before Width: | Height: | Size: 853 B After Width: | Height: | Size: 853 B |
|
Before Width: | Height: | Size: 596 B After Width: | Height: | Size: 596 B |
|
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 696 B |
|
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 597 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 928 B |
|
Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 892 B |
|
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 751 B |
|
Before Width: | Height: | Size: 834 B After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 857 B After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 842 B |
|
Before Width: | Height: | Size: 910 B After Width: | Height: | Size: 910 B |
|
Before Width: | Height: | Size: 875 B After Width: | Height: | Size: 875 B |
|
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 694 B |
|
Before Width: | Height: | Size: 773 B After Width: | Height: | Size: 773 B |
|
Before Width: | Height: | Size: 1004 B After Width: | Height: | Size: 1004 B |
|
Before Width: | Height: | Size: 995 B After Width: | Height: | Size: 995 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 656 B |
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 675 B |
|
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 708 B |
|
Before Width: | Height: | Size: 832 B After Width: | Height: | Size: 832 B |
|
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 852 B |
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 728 B |
|
Before Width: | Height: | Size: 789 B After Width: | Height: | Size: 789 B |
|
Before Width: | Height: | Size: 785 B After Width: | Height: | Size: 785 B |
|
Before Width: | Height: | Size: 798 B After Width: | Height: | Size: 798 B |
|
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 733 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 747 B |
|
Before Width: | Height: | Size: 709 B After Width: | Height: | Size: 709 B |
|
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 816 B |
|
Before Width: | Height: | Size: 783 B After Width: | Height: | Size: 783 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 728 B |
|
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 835 B |
|
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 895 B |
|
Before Width: | Height: | Size: 947 B After Width: | Height: | Size: 947 B |
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
|
Before Width: | Height: | Size: 879 B After Width: | Height: | Size: 879 B |
|
Before Width: | Height: | Size: 857 B After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 844 B |
|
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 816 B |
|
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 541 B |
|
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 775 B |
|
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 858 B |
|
Before Width: | Height: | Size: 847 B After Width: | Height: | Size: 847 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model;
|
||||
package org.diylc.model;
|
||||
|
||||
/**
|
||||
* Enumerates all drawing layers.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model;
|
||||
package org.diylc.model;
|
||||
|
||||
/**
|
||||
* Enumerates all possible states that a component can be in.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model;
|
||||
package org.diylc.model;
|
||||
|
||||
import java.awt.Graphics2D;
|
||||
import java.io.Serializable;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model;
|
||||
package org.diylc.model;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package com.diyfever.diylc.model;
|
||||
package org.diylc.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.diyfever.diylc.model.annotations.EditableProperty;
|
||||
import com.diyfever.diylc.model.measures.Size;
|
||||
import com.diyfever.diylc.model.measures.SizeUnit;
|
||||
import org.diylc.model.annotations.EditableProperty;
|
||||
import org.diylc.model.measures.Size;
|
||||
import org.diylc.model.measures.SizeUnit;
|
||||
|
||||
|
||||
/**
|
||||
* Entity class that defines a project. Contains project properties and a
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model;
|
||||
package org.diylc.model;
|
||||
|
||||
/**
|
||||
* Enumerates control point visibility policies.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model.annotations;
|
||||
package org.diylc.model.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model.annotations;
|
||||
package org.diylc.model.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model.annotations;
|
||||
package org.diylc.model.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -1,10 +1,11 @@
|
||||
package com.diyfever.diylc.model.annotations;
|
||||
package org.diylc.model.annotations;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
import com.diyfever.diylc.model.VisibilityPolicy;
|
||||
import org.diylc.model.VisibilityPolicy;
|
||||
|
||||
|
||||
/**
|
||||
* Annotation for control points. This annotation may be added fields of type
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model.annotations;
|
||||
package org.diylc.model.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.diyfever.diylc.model.measures;
|
||||
package org.diylc.model.measures;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.text.DecimalFormat;
|
||||