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
0
votes
1 answer

IQ math calculation

Can anyone explain how below conversation works? clarke1.As =_IQ15toIQ((AdcResult.ADCRESULT0<<3)-_IQ15(0.50))<<1; Piccolo devices have 12-bit ADC and 16-bit ADC registers. The AdcResult.ADCRESULT registers are right justified for Piccolo devices;…
Daniel
  • 121
  • 1
  • 1
  • 7
0
votes
0 answers

mousewheel event not triggered after clicking off the canvas

thanks to http://www.eqqon.com/index.php/Piccolo_Snippets, i had mousewheel zooming working well until i added winform widgets to the form outside of the canvas; see pic of a test form below: i found that if i clicked on button1, and moused back…
4mla1fn
  • 169
  • 1
  • 15
0
votes
0 answers

Display panel-like graphic editor within JSP

I am planning my first web project and currently evaluate, which technology to use. Since JSP seems to be a good start into webdev with Java, I was wondering if and how JSP is capable of displaying some complex graphic editing functionality. Think…
Jonas Bausch
  • 185
  • 3
  • 12
0
votes
1 answer

Unable to stretch zero rectange in Piccolo2D?

Why isn't first and third rectangle appear in the sample below? Looks like rectangle is broken once it has zero size. package tests.piccolo; import org.piccolo2d.extras.PFrame; import org.piccolo2d.nodes.PPath; public class Try_EmptyRectangle { …
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Is Pcanvas support double click actions to zoom instead of drag actions?

When I played the zoom example of Piccolo demo, I got one wonder that is Pcanvas only support drag actions to zoom ? Thus I went to review the source code of Pcanvas, then I found it has one variable PZoomEventHandler to control the zoom actions.…
ShadowScorpion
  • 207
  • 6
  • 21
0
votes
1 answer

How to inverse mouse wheel zoom handling in Piccolo2D?

In most applications rotating wheel down descreases the size of scaled objects, while rotating wheel up increases sizes. In piccolo2d default behavior is reversed: private static void showWorldNode() { new PFrame() { @Override …
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Android Studio sudden appearance of unresolved symbols after pulling from Git

I am new to Android development so I apologize for anything I forget to clarify. I am working on a group project in Android studio, checked out from Git. I previously was able to build the project fine, but after a recent pull I suddenly have many…
Kah
  • 627
  • 2
  • 11
  • 28
0
votes
1 answer

How to use multiple layers in Piccolo2D?

I want t have some picture above another one and want to utilize PCamera's addLayer() method. Is this possible? The following code throws NullPointerException. What's wrong with it? package test.piccolo; import java.awt.Color; import…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

How to receive keyboard events in Piccolo2D?

Neither of handlers below executed on key pressing: public class Try_KeyboardInput_01 { private static final Logger log = LoggerFactory.getLogger(Try_KeyboardInput_01.class); @SuppressWarnings("serial") public static void main(String[]…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Does JavaFX support hierarchical transformations of nested objects like Piccolo2D

Piccolo2D has two significant advantages above Swing: Each child can be shifted both in negative and positive directions of coordinates (Swing supports preliminary positive directions (and layout managers)) Each component has associated affine…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

How to know input event handler owner in Piccolo2D?

I see no getSource() method in PInputEvent class. I want to get reference to an object, which handler was added to. UPDATE In the following example, three concentric circles created. Each bigger circle owns smaller one. Mouse click handler is…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

How to implement hover behavior in Piccolo2D?

What is the simplest way to implement "hover behavior" in Piccolo2D? I.e. to change object's color or style when mouse cursor is above it? Need to take in account both move ins and outs correctly.
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

java graphic library(processing, Piccolo, and JOGL)

I'm trying to draw a interactive scatter plot with java. There are more than a million gene data to plot. For this process I recently examined the performance of drawing(and also moving and zooming) with 30 thousands gene data by using both…
sehilyi
  • 17
  • 5
0
votes
1 answer

PSelectionEventHandler does not trigger callback

I am using Piccolo2D library for drawing nodes on canvas. I've setup PSelectionEventHandler like in Piccolo2D's example at:SelectionExample.java and then I set breakpoint in private void nodeSelected(final PNotification n) { } // nodeSelected but…
KernelPanic
  • 2,328
  • 7
  • 47
  • 90
-4
votes
1 answer

Creating draggable and resizable Component in Java

How to create a component that can be dragged and resized in Java Swing? Like "Text Tools" text box feature in MS Paint, highlighted by red border in image. I only want drag and resize feature, not text formatting. How can I implement this component…
Akshat
  • 720
  • 9
  • 24
1
2