Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [gef-dev] I need help

gef
Discussion topic

Hide all messages in topic

All messages in topic

Re: [gef-dev] I need help

Reply

Author Bob Tarling <bob dot tarling at ntlworld dot com>
Full name Bob Tarling <bob dot tarling at ntlworld dot com>
Date 2004-07-13 16:52:27 PDT
Message Which constructor are you calling for JGraph or Editor?

----- Original Message -----
From: "Raphael Vilela" <raphaelvilela@ya​hoo.com.br>
To: <dev at gef dot tigris dot org>
Sent: Wednesday, July 14, 2004 12:19 AM
Subject: [gef-dev] I need help


> Hello
> I need help, please
> this error occurs when the show command is called.
>
> Can anyone help me?
>
>
> STACK TRACE
>
> java.lang.NullPointerException
> at
> org.tigris.gef.base.​Editor.createImage(E​ditor.java:664)
> at
> org.tigris.gef.base.​LayerGrid.paintConte​nts(LayerGrid.java:1​58)
> at
> org.tigris.gef.base.​Layer.paintContents(​Layer.java:452)
> at org.tigris.gef.base.​Layer.paint(Layer.ja​va:443)
> at
> org.tigris.gef.base.​LayerManager.paint(L​ayerManager.java:200​)
> at
> org.tigris.gef.base.​LayerManager.paint(L​ayerManager.java:181​)
> at org.tigris.gef.base.​Editor.paint(Editor.​java:567)
> at
>
org.tigris.gef.graph​.presentation.JGraph​InternalPane.paintCo​mponent(JGraph.j
ava:412)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JViewpor​t.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at javax.swing.JLayered​Pane.paint(Unknown Source)
> at javax.swing.JCompone​nt.paintChildren(Unk​nown
> Source)
> at
> javax.swing.JCompone​nt.paintWithOffscree​nBuffer(Unknown
> Source)
> at javax.swing.JCompone​nt.paintDoubleBuffer​ed(Unknown
> Source)
> at javax.swing.JCompone​nt.paint(Unknown Source)
> at
> java.awt.GraphicsCal​lback$PaintCallback​.run(Unknown
> Source)
> at
> sun.awt.SunGraphicsC​allback.runOneCompon​ent(Unknown
> Source)
> at sun.awt.SunGraphicsC​allback.runComponent​s(Unknown
> Source)
> at java.awt.Container.p​aint(Unknown Source)
> at javax.swing.JFrame.u​pdate(Unknown Source)
> at sun.awt.RepaintArea.​paint(Unknown Source)
> at sun.awt.windows.WCom​ponentPeer.handleEve​nt(Unknown
> Source)
> at java.awt.Component.d​ispatchEventImpl(Unk​nown
> Source)
> at java.awt.Container.d​ispatchEventImpl(Unk​nown
> Source)
> at java.awt.Window.disp​atchEventImpl(Unknow​n Source)
> at java.awt.Component.d​ispatchEvent(Unknown​ Source)
> at java.awt.EventQueue.​dispatchEvent(Unknow​n Source)
> at
> java.awt.EventDispat​chThread.pumpOneEven​tForHierarchy(Unknow​n
> Source)
> at
> java.awt.EventDispat​chThread.pumpEventsF​orHierarchy(Unknown
> Source)
> at java.awt.EventDispat​chThread.pumpEvents(​Unknown
> Source)
> at java.awt.EventDispat​chThread.pumpEvents(​Unknown
> Source)
> at java.awt.EventDispat​chThread.run(Unknown​ Source)
>
> =====
> Raphael Vilela
> UIN 74894182
>
>
>
>
>
>
>
>
>
> ____________________​____________________​_______________
> Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
> http://br.info.mail.yahoo.com/
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
> For additional commands, e-mail: dev-help at gef dot tigris dot org
>


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: dev-help at gef dot tigris dot org

[gef-dev] I need help

Reply

Author raphaelvilela
Full name raphael vilela
Date 2004-07-13 16:19:34 PDT
Message Hello
  I need help, please
  this error occurs when the show command is called.

  Can anyone help me?
  

STACK TRACE

java.lang.NullPointerException
    at
org.tigris.gef.base.​Editor.createImage(E​ditor.java:664)
    at
org.tigris.gef.base.​LayerGrid.paintConte​nts(LayerGrid.java:1​58)
    at
org.tigris.gef.base.​Layer.paintContents(​Layer.java:452)
    at org.tigris.gef.base.​Layer.paint(Layer.ja​va:443)
    at
org.tigris.gef.base.​LayerManager.paint(L​ayerManager.java:200​)
    at
org.tigris.gef.base.​LayerManager.paint(L​ayerManager.java:181​)
    at org.tigris.gef.base.​Editor.paint(Editor.​java:567)
    at
org.tigris.gef.graph​.presentation.JGraph​InternalPane.paintCo​mponent(JGraph.java:​412)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JViewpor​t.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at javax.swing.JLayered​Pane.paint(Unknown Source)
    at javax.swing.JCompone​nt.paintChildren(Unk​nown
Source)
    at
javax.swing.JCompone​nt.paintWithOffscree​nBuffer(Unknown
Source)
    at javax.swing.JCompone​nt.paintDoubleBuffer​ed(Unknown
Source)
    at javax.swing.JCompone​nt.paint(Unknown Source)
    at
java.awt.GraphicsCal​lback$PaintCallback​.run(Unknown
Source)
    at
sun.awt.SunGraphicsC​allback.runOneCompon​ent(Unknown
Source)
    at sun.awt.SunGraphicsC​allback.runComponent​s(Unknown
Source)
    at java.awt.Container.p​aint(Unknown Source)
    at javax.swing.JFrame.u​pdate(Unknown Source)
    at sun.awt.RepaintArea.​paint(Unknown Source)
    at sun.awt.windows.WCom​ponentPeer.handleEve​nt(Unknown
Source)
    at java.awt.Component.d​ispatchEventImpl(Unk​nown
Source)
    at java.awt.Container.d​ispatchEventImpl(Unk​nown
Source)
    at java.awt.Window.disp​atchEventImpl(Unknow​n Source)
    at java.awt.Component.d​ispatchEvent(Unknown​ Source)
    at java.awt.EventQueue.​dispatchEvent(Unknow​n Source)
    at
java.awt.EventDispat​chThread.pumpOneEven​tForHierarchy(Unknow​n
Source)
    at
java.awt.EventDispat​chThread.pumpEventsF​orHierarchy(Unknown
Source)
    at java.awt.EventDispat​chThread.pumpEvents(​Unknown
Source)
    at java.awt.EventDispat​chThread.pumpEvents(​Unknown
Source)
    at java.awt.EventDispat​chThread.run(Unknown​ Source)

=====
Raphael Vilela
UIN 74894182
 





    
    
        
____________________​____________________​_______________
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: dev-help at gef dot tigris dot org

Re: [gef-dev] Zoom patch and new layers

Reply

Author Bob Tarling <bob dot tarling at ntlworld dot com>
Full name Bob Tarling <bob dot tarling at ntlworld dot com>
Date 2004-07-05 12:49:40 PDT
Message Many thanks.

I've added your patch to IZ at
http://gef.tigris.or​g/issues/show_bug.cg​i?id=144
If you add yourself to the cc list you will get progress reports as this
issue is updated.

Regards

Bob.
----- Original Message -----
From: rogerio
To: dev at gef dot tigris dot org
Sent: Monday, July 05, 2004 3:59 PM
Subject: [gef-dev] Zoom patch and new layers


I have made some modifications in the layers.
I have created three new layers:
- LayerBackground: draws the background, can be extended to draw a
background image.
- LayerSelection: draw the selection behavior
- LayerLexical: draw the modes behavior.

This layers are defined in Editor as follows:

|-----------------| |-----------| |-----------------| |-----------------|
|-----------------| |--------------|
| LayerBackground |--| LayerGrid |--| LayerPageBreaks |-| LayerDiagram
|-| LayerSelection |-| LayerLexical |
|-----------------| |-----------| |-----------------| |-----------------|
|-----------------| |--------------|

This made possible to simplify the method paint of the Editor transferring
more reponsabilidades to the Layers.
Moreover I modified LayerGrid and LayerPageBreaks so that the width of
the grid lines and the page break lines are not scaled together with
objects.

The scaling of the figures now happens in the layers depending on the
function of the layer.

These alterations had become zooming faster also in a diagram with many
figures.

This approach to is based to that described in paper: "Using the Multi-Layer
Model for
Building Interactive Graphical Applications" Fekete, et al, on which gef is
based.


I hope to have contributed.

Rogério Sorroche.







--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: dev-help at gef dot tigris dot org


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: dev-help at gef dot tigris dot org

[gef-dev] Zoom patch and new layers

Reply

Author rogerio <rogerio at inf dot furb dot br>
Full name rogerio <rogerio at inf dot furb dot br>
Date 2004-07-05 07:59:38 PDT
Message I have made some modifications in the layers.
I have created three new layers:
- LayerBackground: draws the background, can be extended to draw a
background image.
- LayerSelection: draw the selection behavior
- LayerLexical: draw the modes behavior.
 
This layers are defined in Editor as follows:
 
|-----------------| |-----------| |-----------------| |-----------------|
|-----------------| |--------------|
| LayerBackground |--| LayerGrid |--| LayerPageBreaks |-| LayerDiagram
|-| LayerSelection |-| LayerLexical |
|-----------------| |-----------| |-----------------| |-----------------|
|-----------------| |--------------|
 
This made possible to simplify the method paint of the Editor transferring
more reponsabilidades to the Layers.
Moreover I modified LayerGrid and LayerPageBreaks so that the width of
the grid lines and the page break lines are not scaled together with
objects.
 
The scaling of the figures now happens in the layers depending on the
function of the layer.
 
These alterations had become zooming faster also in a diagram with many
figures.
 
This approach to is based to that described in paper: "Using the Multi-Layer
Model for
Building Interactive Graphical Applications" Fekete, et al, on which gef is
based.
 
 
I hope to have contributed.
 
Rogério Sorroche.
Attachments
Messages per page: