From pivot-user-return-700-apmail-incubator-pivot-user-archive=incubator.apache.org@incubator.apache.org Mon Nov 30 22:18:08 2009
Return-Path:
Delivered-To: apmail-incubator-pivot-user-archive@minotaur.apache.org
Received: (qmail 36987 invoked from network); 30 Nov 2009 22:18:08 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3)
by minotaur.apache.org with SMTP; 30 Nov 2009 22:18:08 -0000
Received: (qmail 94088 invoked by uid 500); 30 Nov 2009 22:18:08 -0000
Delivered-To: apmail-incubator-pivot-user-archive@incubator.apache.org
Received: (qmail 94040 invoked by uid 500); 30 Nov 2009 22:18:07 -0000
Mailing-List: contact pivot-user-help@incubator.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: pivot-user@incubator.apache.org
Delivered-To: mailing list pivot-user@incubator.apache.org
Received: (qmail 94030 invoked by uid 99); 30 Nov 2009 22:18:07 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 22:18:07 +0000
X-ASF-Spam-Status: No, hits=-1.8 required=10.0
tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
Received: from [192.101.109.31] (HELO emailgw03.pnl.gov) (192.101.109.31)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 22:17:54 +0000
X-IronPort-AV: E=Sophos;i="4.47,316,1257148800";
d="scan'208,217";a="11644054"
Received: from emailbh03.pnl.gov ([130.20.249.81])
by emailgw03.pnl.gov with ESMTP; 30 Nov 2009 14:17:33 -0800
Received: from EMAIL02.pnl.gov ([130.20.128.219]) by emailbh03.pnl.gov with Microsoft SMTPSVC(6.0.3790.3959);
Mon, 30 Nov 2009 14:17:33 -0800
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CA720A.E936FABF"
X-MimeOLE: Produced By Microsoft Exchange V6.5
Subject: RE: Graph library for use with pivot
Date: Mon, 30 Nov 2009 14:17:32 -0800
Message-ID:
In-Reply-To: <33362201-19FE-4068-9804-73DAA1A5315A@mac.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Graph library for use with pivot
Thread-Index: AcpyCo3ZpsUwfkHHSF+82faVgCKW0AAADGaw
References: <1C191A2D-A86A-4312-9BD2-108B77FD9DFA@mac.com> <33362201-19FE-4068-9804-73DAA1A5315A@mac.com>
From: "Scarberry, Randall E (Randy)"
To:
X-OriginalArrivalTime: 30 Nov 2009 22:17:33.0091 (UTC) FILETIME=[E9C7DF30:01CA720A]
X-Virus-Checked: Checked by ClamAV on apache.org
This is a multi-part message in MIME format.
------_=_NextPart_001_01CA720A.E936FABF
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
That's very helpful. Thanks!
________________________________
From: Greg Brown [mailto:gkbrown@mac.com]=20
Sent: Monday, November 30, 2009 2:14 PM
To: pivot-user@incubator.apache.org
Subject: Re: Graph library for use with pivot
Randy,
I put together a quick example to demonstrate how you might do this in
Pivot. You can see the results here - it shows the "Hello World" example
code from the JGraph distribution running in a Pivot window:
http://ixnay.biz/pivot/1.4/demos/jgraph_demo.html=20
This is really just a proof of concept, but you can at least see that it
is possible (and not terribly difficult).
Also, I discovered that it is actually possible to wrap an instance of
mxGraph directly rather than wrapping an mxGraphComponent, so the event
handling issue I mentioned earlier may not be a problem.
Greg
On Nov 30, 2009, at 10:36 AM, Greg Brown wrote:
I am personally not aware of any existing JGraph libraries for
Pivot, but it may be possible to simply embed your existing Swing-based
graphs in a Pivot app. Both Swing and Pivot use Java2D for rendering, so
you'd just need to write a Pivot wrapper for the JGraph component. You
might run into some issues handling mouse input, but if that is not a
requirement for your application, it should actually be pretty
straightforward: you'd write a custom Pivot component whose skin is
basically just a thin wrapper around a JGraph instance. =20
The Pivot/JFree library is actually implemented exactly like
this - it uses a higher level abstraction that effectively hides the
fact that JFree is used under the hood, but the general concepts are the
same:=20
http://code.google.com/p/pivot-jfree/=20
If you have any questions, please feel free to post them here
and we'll do our best to help!
Greg
=09
On Nov 30, 2009, at 9:24 AM, Scarberry, Randall E (Randy) wrote:
Does anyone know of a Java graph library that would work
well with pivot? A project of mine involves "webifying" a Swing-based
desktop application that makes heavy use of Jgraph, which is a
swing-dependent library. If we find a replacement for Jgraph without
the swing dependencies, we may use pivot for the web version.
Thanks! =20
Randy S.=20
------_=_NextPart_001_01CA720A.E936FABF
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I put together a quick example to demonstrate how you might do this =
in=20
Pivot. You can see the results here - it shows the "Hello World" example =
code=20
from the JGraph distribution running in a Pivot window:

This is really just a proof of concept, but you can at least see =
that it is=20
possible (and not terribly difficult).

Also, I discovered that it is actually possible to wrap an instance =
of=20
mxGraph directly rather than wrapping an mxGraphComponent, so the event =
handling=20
issue I mentioned earlier may not be a problem.

Greg

On Nov 30, 2009, at 10:36 AM, Greg Brown wrote:

I=20
am personally not aware of any existing JGraph libraries for Pivot, =
but it may=20
be possible to simply embed your existing Swing-based graphs in a =
Pivot app.=20
Both Swing and Pivot use Java2D for rendering, so you'd just need to =
write a=20
Pivot wrapper for the JGraph component. You might run into some =
issues=20
handling mouse input, but if that is not a requirement for your =
application,=20
it should actually be pretty straightforward: you'd write a custom =
Pivot=20
component whose skin is basically just a thin wrapper around a JGraph=20
instance.

The Pivot/JFree library is actually implemented exactly like this =
- it=20
uses a higher level abstraction that effectively hides the fact that =
JFree is=20
used under the hood, but the general concepts are the same:

If you have any questions, please feel free to post them here and =
we'll=20
do our best to help!

Greg

On Nov 30, 2009, at 9:24 AM, Scarberry, Randall E (Randy) =
wrote:

Does anyone know of a Java graph =
library that=20
would work well with pivot? A project of mine involves =
"webifying" a=20
Swing-based desktop application that makes heavy use of Jgraph, =
which is a=20
swing-dependent library. If we find a replacement for Jgraph =
without=20
the swing dependencies, we may use pivot for the web =
version.