JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class SwingBorder

java.lang.Object
  extended by com.jformdesigner.model.SwingBorder
All Implemented Interfaces:
SwingResource, javax.swing.border.Border

public class SwingBorder
extends java.lang.Object
implements javax.swing.border.Border, SwingResource

Used to specify borders from the Swing UI (look and feel) resources. Invokes UIManager.getBorder(key) to get the real border.

Since:
3.0

Constructor Summary
SwingBorder(java.lang.String key)
          Constructs a border from the Swing UI resources.
SwingBorder(java.lang.String key, javax.swing.border.Border border)
          For internal use only.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether another object is equal to this object.
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 java.lang.String getKey()
          Returns The name of the Swing border.
 int hashCode()
          Returns the hash code for this object.
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwingBorder

public SwingBorder(java.lang.String key)
Constructs a border from the Swing UI resources.

Parameters:
key - The name of the Swing border.

SwingBorder

public SwingBorder(java.lang.String key,
                   javax.swing.border.Border border)
For internal use only.

Method Detail

getKey

public java.lang.String getKey()
Returns The name of the Swing border.


equals

public boolean equals(java.lang.Object obj)
Determines whether another object is equal to this object.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hash code for this object.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border

JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.