5 messages in org.netbeans.graph.usersRe: Getter for passed Border in Swing...
FromSent OnAttachments
BSE DeveloperMay 4, 2007 3:17 am 
David KasparMay 4, 2007 6:55 am 
BSE DeveloperMay 6, 2007 10:39 pm 
BSE DeveloperMay 7, 2007 12:49 am 
David KasparMay 7, 2007 1:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Getter for passed Border in SwingBorder classActions...
From:David Kaspar (Davi@Sun.COM)
Date:May 4, 2007 6:55:14 am
List:org.netbeans.graph.users

Hi Bernd,

Rather I would not add the "getter" method directly to the Widget class. Instead I would like to add a new static method: javax.swing.border.Border BorderSupport.getSwingBorder(org.netbeans.api.visual.border.Border)

This method would return the Swing-border if the input parameter is a wrapper-border created by: BorderFactory.createSwingBorder or Widget.setBorder(javax.swing.border.Border) method.

Let me know if the proposed API is ok for you. If so, I will enter an API change issue on "graph" module. Unfortunately I have to postpone all changes to June 2007 - right now I do not have enough time to go through the whole API-review process. If you would like to have the API change as soon as possible then I can immediately send you the patch of sources of the "graph/lib" module. The change is really simple (upto 10 lines including javadoc).

Regards, David

BSE Developer wrote:

Hello David,

is it possible to add a getter method for the passed swing border in the SwingBorder class ? I want to get the border to find out, which type of swing border is passed, e.g. CompoundBorder. The following treatment unfortunately depends on the border type.

Regards, Bernd