Questions tagged [piccolo]

Piccolo2d is a toolkit that supports the development of 2D structured graphics programs, in general, and Zoomable User Interfaces (ZUI), in particular.

Definition:

Piccolo2D is a structured 2D graphics framework toolkit which supports Zoomable User Interfaces.

Links:

30 questions
10
votes
2 answers

Interactive Python Network/Graph Modeling

I'm looking for a python library that will allow me to interactively draw networks and graphs and attach data to nodes and edges. I have found two libraries for Java that seem to do what I need: JUNG and piccolo2d. Are there any python equivalents…
wkz
  • 2,203
  • 1
  • 15
  • 21
5
votes
2 answers

Draw Gaussian curve in Java

I'm coding an interactive applet with Piccolo and I need to include a Gaussian curve (aka Normal distribution chart) inside it. I imagine any kind of Java implementation would be enough, but I can't find any. Ideally, I'd like to pass a set of…
Seb
  • 24,920
  • 5
  • 67
  • 85
2
votes
1 answer

How to embed Piccolo2D canvas inside JavaFX?

How to embed Piccolo2D canvas inside JavaFX? I thought it should work via SwingNode, since Piccolo has Swing control named PCanvas. This approach works with Swing: public static void main(String[] args) { PPath ellipse =…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
2
votes
1 answer

How to scale about point?

I find the following code inside PAffineTransform: /** * Scales the transform about the given point by the given scale. * * @param scale to transform the transform by * @param x x coordinate around which the scale should take…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
2
votes
3 answers

Piccolo zoomable interface, how to change text when zooming

I'm experimenting with some Piccolo to create a zoomable interface. I'm creating a rectangle on a canvas with some PText on it. Now when zooming, I want to change the text to something different. I've done this in my initialize: // …
user1480139
  • 283
  • 4
  • 16
1
vote
1 answer

Extending PLayer in Piccolo2d

I have next problem. In my project I need to delegate message to the third-party library when nodes are added or removed from layer. In order to achieve this I have extended PLayer in next way: public class DelegateLayer extends PLayer { private…
Anjenson
  • 117
  • 1
  • 11
1
vote
1 answer

How to make endless (infinite) nodes in Piccolo2D?

I would like to draw some infinite object in Piccolo2D, like endless rectangular (cartesian) grid. It would be greate to have some geometric object on this grid, like in graphics editor. Unfortunately, Piccolo somehow determines, whether it is…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
3 answers

No versions available for org.eclipse.swt.win32.win32:x86_64:jar

While trying to depend on piccolo2d-swt-examples artifact (in m2e), I am getting the following message VersionRangeResolutionException: No versions available for org.eclipse.swt.win32.win32:x86_64:jar:[3.3.0-v3346,) within specified range What is…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
1 answer

How to fine-control pickability in Piccolo2D?

In the code below, two circles are drawn, and added to one grouping node. The following behavior variants observed: 1) Able to drag by any point of circle, including exterior and interior; if drag by intercircle point, drag does not occur 2) Able to…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
1 answer

How to make holes in a shape in Piccolo2D?

In main Java it supports "winding rule" which may help to make holes in the shapes. Unfortunately, this concept is ignored in Piccolo2D: public class Try_Holes_01 { @SuppressWarnings("serial") public static void main(String[] args) { …
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
2 answers

C# Piccolo ZUI - Squiggles only when CTRL wiggles?

I am using the Piccolo 2D ZUI library in a C# Winform application. One of the examples that the library shows is adding a squiggle (line drawing) handler to the canvas. The problem is that if you enable the squiggle handler and allow canvas…
John M
  • 14,338
  • 29
  • 91
  • 143
1
vote
1 answer

SimpleEllipseExample just does not work in Piccolo2D?

What piccolo example below should actually do? I draws nothing for me. And paint method never called: package test.piccolo; import java.awt.Graphics2D; import java.awt.geom.Ellipse2D; import java.awt.geom.Rectangle2D; import…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
1 answer

How to draw a curved line in Piccolo2D?

I am trying to create a curved line in Piccolo2D with Java. This is my code public class MyCanvas extends PSwingCanvas{ private void drawLine(PPath inSocket, PPath outSocket) { float startX = (float)inSocket.getX(); float startY =…
Ankit
  • 6,772
  • 11
  • 48
  • 84
0
votes
0 answers

Is there a way to use picocli annotation processing for Kotlin projects using Maven build system?

I see this link for annotation processing for Kotlin projects using Gradle, but nothing for Kotlin projects using Maven.
Jeff McClure
  • 41
  • 1
  • 3
0
votes
1 answer

How can we show the tooltip of a curved line (drawn with piccolo2d) only along the curve and not in the contained area?

In the sample code below (Modified TooltipExample.java from https://github.com/piccolo2d/piccolo2d.java/tree/master/examples/src/main/java/org/piccolo2d/examples), I created a curved line inside a rectangle. It appears that the area/bounds contained…
Srvnti
  • 3
  • 4
1
2