Menu

#1 Controlling Painting Edge Types

open
nobody
None
5
2006-04-07
2006-04-07
hmulhim
No

Hi,

I currently developed the package and made the Edge
interface support a getType() method.

I added this part so that the user can diffrentiate
between different types of edges.

Anyhow, I wonder if we can have a LegendPainter Control
from which we can have control over painting special
edages.

For example, the legend gives us the ability to
view/unview special node types, I want the legend to be
extended to have the edges painted or not!

thanks.

Attached is my little update I included in the source
files, Mainly:
1- added a getType method in the Edge interface.
2- fixed the SpringLayoutStrategy to include a new
moveNode method, this will give developers a more
powerful means to extend this special class. (for
example you can put some constraints when moving some
nodes)
3- Changed All Class arguments used between many
classes to String arguments.
4- Updated the DefaultNode constructors to have a type
and label Constructor.
5- Changed the example to a better one. (Deleted the
NodeType1, NodeType2, NodeType3 classes).

I am also considerring developping the DefaultNode
class and DefaultEdge class. Maybe later.

Discussion

  • hmulhim

    hmulhim - 2006-04-07

    Contains an updated source files of Version 0.1

     
  • Nobody/Anonymous

    Logged In: NO

    sdddddddddddddddddddd

     

Log in to post a comment.

Monday.com Logo