org.netbeans.api.visual 2.28.1

org.netbeans.api.visual.border
Class BorderSupport

java.lang.Object
  extended by org.netbeans.api.visual.border.BorderSupport

public final class BorderSupport
extends Object

This class contains support method for working with borders.


Method Summary
static Border getSwingBorder(Border border)
          Returns a swing border of a border created using BorderFactory.createSwingBorder or Widget.setBorder(javax.swing.border.Border).
static boolean isOuterResizeBorder(Border border)
          Returns whether a resize border is outer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isOuterResizeBorder

public static boolean isOuterResizeBorder(Border border)
Returns whether a resize border is outer.

Parameters:
border - the border created by
Returns:
true if the border is created the createResizeBorder method as outer parameter set to true; false otherwise

getSwingBorder

public static Border getSwingBorder(Border border)
Returns a swing border of a border created using BorderFactory.createSwingBorder or Widget.setBorder(javax.swing.border.Border).

Parameters:
border - the widget border
Returns:
Swing border if possible; otherwise null
Since:
2.6

org.netbeans.api.visual 2.28.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.