Skip to content

Commit

Permalink
Merge pull request praxis-live#26 from codelerity/graph-refactor
Browse files Browse the repository at this point in the history
Refactor praxislive.graph into praxislive.pxr.graph
  • Loading branch information
neilcsmith-net authored Jul 11, 2024
2 parents 1ca7e38 + c0d8b6d commit cf33a57
Show file tree
Hide file tree
Showing 28 changed files with 32 additions and 103 deletions.
65 changes: 0 additions & 65 deletions modules/praxislive.graph/pom.xml

This file was deleted.

5 changes: 0 additions & 5 deletions modules/praxislive.pxr.graph/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
<artifactId>praxislive-code</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.praxislive.ide</groupId>
<artifactId>praxislive-graph</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.praxislive.ide</groupId>
<artifactId>praxislive-model</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.praxislive.core.PortAddress;
import org.praxislive.core.Value;
import org.praxislive.core.types.PMap;
import org.praxislive.ide.graph.PinID;
import org.praxislive.ide.pxr.graph.scene.PinID;
import org.praxislive.ide.model.ContainerProxy;
import org.praxislive.ide.properties.PraxisProperty;
import java.awt.EventQueue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
package org.praxislive.ide.pxr.graph;

import java.awt.Color;
import org.praxislive.ide.graph.LAFScheme;
import org.praxislive.ide.pxr.graph.scene.LAFScheme;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;
import org.praxislive.core.PortInfo;
import org.praxislive.ide.graph.PinID;
import org.praxislive.ide.model.ProxyException;
import org.openide.awt.CloseButtonFactory;
import org.openide.nodes.Node;
import org.openide.util.Exceptions;
import org.openide.util.NbBundle;
import org.praxislive.core.Connection;
import org.praxislive.ide.pxr.graph.scene.PinID;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
import org.praxislive.ide.core.api.Callback;
import org.praxislive.ide.core.api.Syncable;
import org.praxislive.ide.core.ui.api.Actions;
import org.praxislive.ide.graph.Alignment;
import org.praxislive.ide.graph.EdgeID;
import org.praxislive.ide.graph.EdgeWidget;
import org.praxislive.ide.graph.NodeWidget;
import org.praxislive.ide.graph.ObjectSceneAdaptor;
import org.praxislive.ide.graph.PinID;
import org.praxislive.ide.graph.PinWidget;
import org.praxislive.ide.graph.PraxisGraphScene;
import org.praxislive.ide.pxr.graph.scene.Alignment;
import org.praxislive.ide.pxr.graph.scene.EdgeID;
import org.praxislive.ide.pxr.graph.scene.EdgeWidget;
import org.praxislive.ide.pxr.graph.scene.NodeWidget;
import org.praxislive.ide.pxr.graph.scene.ObjectSceneAdaptor;
import org.praxislive.ide.pxr.graph.scene.PinID;
import org.praxislive.ide.pxr.graph.scene.PinWidget;
import org.praxislive.ide.pxr.graph.scene.PraxisGraphScene;
import org.praxislive.ide.model.ComponentProxy;
import org.praxislive.ide.model.ContainerProxy;
import org.praxislive.ide.model.RootProxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Point;
import java.awt.Rectangle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

/**
* Types of positional alignment, for use with widget elements such as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Color;
import java.awt.Dimension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

/**
* ID of a connection (edge) between two pin IDs on nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Graphics2D;
import java.awt.Point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import org.netbeans.api.visual.layout.LayoutFactory;
import org.netbeans.api.visual.widget.ImageWidget;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.BasicStroke;
import java.awt.Color;
Expand Down Expand Up @@ -68,7 +68,7 @@ public class LAFScheme {
= BorderFactory.createOpaqueBorder(2, 2, 2, 2);
private static final PointShape POINT_SHAPE_IMAGE
= PointShapeFactory.createImagePointShape(
ImageUtilities.loadImage("org/praxislive/ide/graph/resources/vmd-pin.png")); // NOI18N
ImageUtilities.loadImage("org/praxislive/ide/pxr/graph/scene/resources/vmd-pin.png")); // NOI18N

private static final Colors DEFAULT_RESOURCES
= new Colors(new Color(0x748CC0), new Color(0xBACDF0));
Expand Down Expand Up @@ -189,8 +189,8 @@ protected boolean isNodeMinimizeButtonOnRight(NodeWidget widget) {

protected Image getMinimizeWidgetImage(NodeWidget widget) {
return widget.isMinimized()
? ImageUtilities.loadImage("org/praxislive/ide/graph/resources/vmd-expand.png") // NOI18N
: ImageUtilities.loadImage("org/praxislive/ide/graph/resources/vmd-collapse.png"); // NOI18N
? ImageUtilities.loadImage("org/praxislive/ide/pxr/graph/scene/resources/vmd-expand.png") // NOI18N
: ImageUtilities.loadImage("org/praxislive/ide/pxr/graph/scene/resources/vmd-collapse.png"); // NOI18N
}

protected void installUI(EdgeWidget widget) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

/**
* This interface represents an ability to collapse and expand a widget. It is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Color;
import java.awt.Cursor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.util.Set;
import org.netbeans.api.visual.model.ObjectSceneEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

/**
* ID of a pin on a node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Point;
import java.awt.Rectangle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Point;
import org.netbeans.api.visual.action.ConnectDecorator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Point;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Dimension;
import java.awt.Point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Color;
import java.awt.Point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Please visit https://www.praxislive.org if you need additional information or
* have any questions.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.Point;
import java.awt.event.KeyEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.praxislive.ide.graph;
package org.praxislive.ide.pxr.graph.scene;

import java.awt.BasicStroke;
import java.awt.Color;
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
<module>modules/praxislive.core.ui</module>
<module>modules/praxislive.editor</module>
<module>modules/praxislive.editor.saveflash</module>
<module>modules/praxislive.graph</module>
<module>modules/praxislive.model</module>
<module>modules/praxislive.opengl</module>
<module>modules/praxislive.project</module>
Expand Down

0 comments on commit cf33a57

Please sign in to comment.