org.eclipse.ecf.presence.ui
Class RosterWorkbenchAdapter2Factory
java.lang.Object
org.eclipse.ecf.presence.ui.RosterWorkbenchAdapter2Factory
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdapterFactory
public class RosterWorkbenchAdapter2Factory
- extends java.lang.Object
- implements org.eclipse.core.runtime.IAdapterFactory
Adapter factory for adapter to IWorkbenchAdapter2 (foreground and background
color and font for labels). Subclasses may override as appropriate.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RosterWorkbenchAdapter2Factory
public RosterWorkbenchAdapter2Factory()
getAdapter
public java.lang.Object getAdapter(java.lang.Object adaptableObject,
java.lang.Class adapterType)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdapterFactory
getForegroundForRosterEntry
protected org.eclipse.swt.graphics.RGB getForegroundForRosterEntry(IRosterEntry element)
- Parameters:
element
- to get foreground color for. This implementation returns null,
meaning that the default color will be used. Subclasses should
override as appropriate.
- Returns:
- RGB to use as foreground color. If
null
use
default color
getFontForRosterEntry
protected org.eclipse.swt.graphics.FontData getFontForRosterEntry(IRosterEntry element)
- Parameters:
element
- to get fontdata for. This implementation returns null, meaning
that the default font will be used. Subclasses should override
as appropriate.
- Returns:
- FontData to use for rendering given element. If
null
use default FontData
getBackgroundForRosterEntry
protected org.eclipse.swt.graphics.RGB getBackgroundForRosterEntry(IRosterEntry element)
- Parameters:
element
- to get background color for. This implementation returns null,
meaning that the default color will be used. Subclasses should
override as appropriate.
- Returns:
- RGB to use as background color. If
null
use
default color
getForegroundForRosterItem
protected org.eclipse.swt.graphics.RGB getForegroundForRosterItem(IRosterItem element)
- Parameters:
element
- to get foreground color for. This implementation returns null,
meaning that the default color will be used. Subclasses should
override as appropriate.
- Returns:
- RGB to use as foreground color. If
null
use
default color
getFontForRosterItem
protected org.eclipse.swt.graphics.FontData getFontForRosterItem(IRosterItem element)
- Parameters:
element
- to get fontdata for. This implementation returns null, meaning
that the default font will be used. Subclasses should override
as appropriate.
- Returns:
- FontData to use for rendering given element. If
null
use default FontData
getBackgroundForRosterItem
protected org.eclipse.swt.graphics.RGB getBackgroundForRosterItem(IRosterItem element)
- Parameters:
element
- to get background color for. This implementation returns null,
meaning that the default color will be used. Subclasses should
override as appropriate.
- Returns:
- RGB to use as background color. If
null
use
default color
getForegroundForRosterGroup
protected org.eclipse.swt.graphics.RGB getForegroundForRosterGroup(IRosterGroup element)
- Parameters:
element
- to get foreground color for. This implementation returns null,
meaning that the default color will be used. Subclasses should
override as appropriate.
- Returns:
- RGB to use as foreground color. If
null
use
default color
getFontForRosterGroup
protected org.eclipse.swt.graphics.FontData getFontForRosterGroup(IRosterGroup element)
- Parameters:
element
- to get fontdata for. This implementation returns null, meaning
that the default font will be used. Subclasses should override
as appropriate.
- Returns:
- FontData to use for rendering given element. If
null
use default FontData
getBackgroundForRosterGroup
protected org.eclipse.swt.graphics.RGB getBackgroundForRosterGroup(IRosterGroup element)
- Parameters:
element
- to get background color for.
- Returns:
- RGB to use as background color. If
null
use
default color
getForegroundForRoster
protected org.eclipse.swt.graphics.RGB getForegroundForRoster(IRoster element)
- Parameters:
element
- to get foreground color for.
- Returns:
- RGB to use as foreground color. If
null
use
default color
getFontForRoster
protected org.eclipse.swt.graphics.FontData getFontForRoster(IRoster element)
- Parameters:
element
- to get fontdata for. This implementation returns null, meaning
that the default font will be used. Subclasses should override
as appropriate.
- Returns:
- FontData to use for rendering given element. If
null
use default FontData
getBackgroundForRoster
protected org.eclipse.swt.graphics.RGB getBackgroundForRoster(IRoster element)
- Parameters:
element
- to get background color for. This implementation returns null,
meaning that the default color will be used. Subclasses should
override as appropriate.
- Returns:
- RGB to use as background color. If
null
use
default color
getAdapterList
public java.lang.Class[] getAdapterList()
- Specified by:
getAdapterList
in interface org.eclipse.core.runtime.IAdapterFactory