/** * Removes a font from this title. * @param font the font to remove */ protected void removeFont( AbstractDockFont font ){ fonts.remove( font ); font.connect( null ); }
/** * Makes sure that this {@link DockFont} reads its values from the * {@link FontManager} of <code>controller</code>.<br> * Use {@link #setManager(bibliothek.gui.dock.util.UIProperties) setManager(null)} to disconnect. * @param controller the new source for fonts, can be <code>null</code> */ public void connect( DockController controller ){ setManager( controller == null ? null : controller.getFonts() ); }
/** * Gets the {@link FontModifier} which is currently represented by this {@link DockFont}. * @return the modifier, can be <code>null</code> */ public FontModifier font(){ return value(); }
/** * Removes a font from this title. * @param font the font to remove */ protected void removeFont( AbstractDockFont font ){ fonts.remove( font ); font.connect( null ); }
/** * Gets the {@link FontModifier} which is currently represented by this {@link DockFont}. * @return the modifier, can be <code>null</code> */ public FontModifier font(){ return value(); }
/** * Makes sure that this {@link DockFont} reads its values from the * {@link FontManager} of <code>controller</code>.<br> * Use {@link #setManager(bibliothek.gui.dock.util.UIProperties) setManager(null)} to disconnect. * @param controller the new source for fonts, can be <code>null</code> */ public void connect( DockController controller ){ setManager( controller == null ? null : controller.getFonts() ); }
/** * Adds a font to the list of fonts, this title will ensure that * <code>font</code> gets connected to a {@link FontManager} as soon * as this title is bound. * @param font the new font */ protected void addFont( AbstractDockFont font ){ fonts.add( font ); if( bound ){ font.connect( getDockable().getController() ); } }
/** * Gets a modified version of <code>font</code> * @param font some font to modify * @return the font that should be used, can be <code>null</code> */ public Font font( Font font ){ FontModifier modifier = value(); if( modifier == null ) return null; return modifier.modify( font ); } }
/** * Adds a font to the list of fonts, this title will ensure that * <code>font</code> gets connected to a {@link FontManager} as soon * as this title is bound. * @param font the new font */ protected void addFont( AbstractDockFont font ){ fonts.add( font ); if( bound ){ font.connect( getDockable().getController() ); } }
/** * Gets a modified version of <code>font</code> * @param font some font to modify * @return the font that should be used, can be <code>null</code> */ public Font font( Font font ){ FontModifier modifier = value(); if( modifier == null ) return null; return modifier.modify( font ); } }
public void unbind() { if( !bound ) throw new IllegalArgumentException( "Do not call unbind twice" ); bound = false; dockable.removeDockableListener( listener ); rootHandler.setController( null ); for( AbstractDockColor color : colors ) color.connect( null ); for( AbstractDockFont font : fonts ) font.connect( null ); orientationConverter.setProperties( (DockProperties)null ); if( border != null ){ border.setController( null ); } setText( "" ); setIcon( null ); setTooltip( null ); background.setController( null ); }
public void unbind() { if( !bound ) throw new IllegalArgumentException( "Do not call unbind twice" ); bound = false; dockable.removeDockableListener( listener ); rootHandler.setController( null ); for( AbstractDockColor color : colors ) color.connect( null ); for( AbstractDockFont font : fonts ) font.connect( null ); orientationConverter.setProperties( (DockProperties)null ); if( border != null ){ border.setController( null ); } setText( "" ); setIcon( null ); setTooltip( null ); background.setController( null ); }
font.connect( controller );
font.connect( controller );