com.ibm.as400.ui.tools
Class SelectionBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by com.ibm.as400.ui.tools.SelectionBorder
All Implemented Interfaces:
Serializable, Border

public class SelectionBorder
extends AbstractBorder

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  boolean m_bPrimary
           
protected  Color m_defaultColor
           
protected  Color m_primaryColor
           
protected  boolean m_resizable
           
 
Constructor Summary
Constructor and Description
SelectionBorder()
           
 
Method Summary
Modifier and Type Method and Description
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 boolean isPrimarySelection()
           
 boolean isResizable()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void setAsPrimarySelection(boolean b)
           
 void setDefaultColor(Color c)
           
 void setPrimaryColor(Color c)
           
 void setResizable(boolean b)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_defaultColor

protected Color m_defaultColor

m_primaryColor

protected Color m_primaryColor

m_bPrimary

protected boolean m_bPrimary

m_resizable

protected boolean m_resizable
Constructor Detail

SelectionBorder

public SelectionBorder()
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder

setResizable

public void setResizable(boolean b)

isResizable

public boolean isResizable()

setDefaultColor

public void setDefaultColor(Color c)

setPrimaryColor

public void setPrimaryColor(Color c)

setAsPrimarySelection

public void setAsPrimarySelection(boolean b)

isPrimarySelection

public boolean isPrimarySelection()

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border
Overrides:
isBorderOpaque in class AbstractBorder