Package com.ribs
Class RUBorders
java.lang.Object
com.ribs.RUBorders
A class to help manage and archive borders.
 
 Would be nice if border archival supported multiple  
 Would also be nice to archive more border specific attributes, like EmptyBorder insets
 and LineBorder color and thickness (again, only useful with new border inspector UI).
  
 Might also be nice to do "Border was explicitly overridden by Ribs" trick with borders, like we do with
 foreground/background (with reset button). This might make it viable to offer border editing to all components.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BorderfromXML(JComponent aComponent, RXElement anElement) Border XML unarchival.static BorderReturns the given border, or if border is TitledBorder, the titled inner border.static StringReturns the title of a given border (if it's a titled border).static FontgetTitleFont(Border aBorder) Returns the title font of the given border (if it's a TitledBorder).static booleanReturns whether a border is effectively not there (either null or an EmptyBorder with no margin).static BorderSets the title of a given border (if it's a titled border).static voidsetTitleFont(Border aBorder, Font aFont) Sets the title font of the given border (if it's a TitledBorder).static RXElementBorder XML archival.
- 
Constructor Details- 
RUBorderspublic RUBorders()
 
- 
- 
Method Details- 
getTitleReturns the title of a given border (if it's a titled border).
- 
setTitleSets the title of a given border (if it's a titled border).
- 
getTitleFontReturns the title font of the given border (if it's a TitledBorder).
- 
setTitleFontSets the title font of the given border (if it's a TitledBorder).
- 
getBorderReturns the given border, or if border is TitledBorder, the titled inner border.
- 
isEmptyReturns whether a border is effectively not there (either null or an EmptyBorder with no margin).
- 
toXMLBorder XML archival.
- 
fromXMLBorder XML unarchival.- Parameters:
- aComponent- the component that borders will be set on
- anElement- the xml node that may (or may not) have a border element in
 
 
-