Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.jdt
Class ThemeManager  view ThemeManager download ThemeManager.java

java.lang.Object
  extended bycom.port80.eclipse.jdt.ThemeManager

public class ThemeManager
extends java.lang.Object


Field Summary
private static boolean DEBUG
           
private static java.lang.String[] DEFAULT_COLORS
           
private static java.lang.String[] DEFAULT_CURSORS
           
private static java.lang.String[] DEFAULT_FONTS
           
private static java.lang.String[] DEFAULT_IMAGES
           
private  com.port80.eclipse.util.ColorFactory fColorFactory
           
private  java.util.Map fColorTable
           
private  com.port80.eclipse.util.CursorFactory fCursorFactory
           
private  java.util.Map fCursorTable
           
private  com.port80.eclipse.util.FontFactory fFontFactory
           
private  java.util.Map fFontTable
           
private  com.port80.eclipse.util.ImageFactory fImageFactory
           
private  java.util.Map fImageTable
           
private  java.lang.String fPluginURL
           
private  java.lang.String fTheme
           
private static java.lang.String NAME
           
private static java.lang.String[] STANDARD_COLORS
           
 
Constructor Summary
ThemeManager()
           
 
Method Summary
 void dispose()
           
 org.eclipse.swt.graphics.Color getColor(java.lang.String name)
           
 java.lang.String getColorName(java.lang.String name)
           
 org.eclipse.swt.graphics.Cursor getCursor(java.lang.String name)
           
 java.lang.String getCursorName(java.lang.String name)
           
 org.eclipse.swt.graphics.Font getFont(java.lang.String name)
           
 com.port80.eclipse.util.FontFactory getFontFactory()
           
 java.lang.String getFontName(java.lang.String name)
           
 org.eclipse.swt.graphics.Image getImage(java.lang.String name)
           
 java.lang.String getImageName(java.lang.String name)
           
private  void init()
           
 void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
          Application can hook to this listener to the main window instead of the individual factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

DEFAULT_COLORS

private static final java.lang.String[] DEFAULT_COLORS

DEFAULT_FONTS

private static final java.lang.String[] DEFAULT_FONTS

DEFAULT_IMAGES

private static final java.lang.String[] DEFAULT_IMAGES

DEFAULT_CURSORS

private static final java.lang.String[] DEFAULT_CURSORS

STANDARD_COLORS

private static final java.lang.String[] STANDARD_COLORS

fTheme

private java.lang.String fTheme

fColorFactory

private com.port80.eclipse.util.ColorFactory fColorFactory

fFontFactory

private com.port80.eclipse.util.FontFactory fFontFactory

fCursorFactory

private com.port80.eclipse.util.CursorFactory fCursorFactory

fImageFactory

private com.port80.eclipse.util.ImageFactory fImageFactory

fColorTable

private java.util.Map fColorTable

fFontTable

private java.util.Map fFontTable

fCursorTable

private java.util.Map fCursorTable

fImageTable

private java.util.Map fImageTable

fPluginURL

private java.lang.String fPluginURL
Constructor Detail

ThemeManager

public ThemeManager()
Method Detail

init

private void init()

getColorName

public java.lang.String getColorName(java.lang.String name)

getFontName

public java.lang.String getFontName(java.lang.String name)

getImageName

public java.lang.String getImageName(java.lang.String name)

getCursorName

public java.lang.String getCursorName(java.lang.String name)

getFontFactory

public com.port80.eclipse.util.FontFactory getFontFactory()

getColor

public org.eclipse.swt.graphics.Color getColor(java.lang.String name)

getFont

public org.eclipse.swt.graphics.Font getFont(java.lang.String name)

getCursor

public org.eclipse.swt.graphics.Cursor getCursor(java.lang.String name)

getImage

public org.eclipse.swt.graphics.Image getImage(java.lang.String name)

widgetDisposed

public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
Application can hook to this listener to the main window instead of the individual factories. DisposeListener should be invoked only when application exits. All factory DisposeListener can be called more than once without harm.


dispose

public void dispose()