org.kde.koala
Class KPixmapProvider

java.lang.Object
  extended by org.kde.koala.KPixmapProvider
All Implemented Interfaces:
org.kde.qt.QtSupport
Direct Known Subclasses:
KURLPixmapProvider

public class KPixmapProvider
extends java.lang.Object
implements org.kde.qt.QtSupport

A tiny abstract class with just one method: pixmapFor() It will be called whenever an icon is searched for text. Used e.g. by KHistoryCombo

Author:
Carsten Pfeiffer

Constructor Summary
protected KPixmapProvider(java.lang.Class dummy)
           
 
Method Summary
 org.kde.qt.QPixmap pixmapFor(java.lang.String text)
           
 org.kde.qt.QPixmap pixmapFor(java.lang.String text, int size)
          You may subclass this and return a pixmap of size size for text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KPixmapProvider

protected KPixmapProvider(java.lang.Class dummy)
Method Detail

pixmapFor

public org.kde.qt.QPixmap pixmapFor(java.lang.String text,
                                    int size)
You may subclass this and return a pixmap of size size for text.

Parameters:
text - the text that is associated with the pixmap
size - the size of the icon in pixels, 0 for defaylt size. See KIcon.StdSize.
Returns:
the pixmap for the arguments, or null if there is none

pixmapFor

public org.kde.qt.QPixmap pixmapFor(java.lang.String text)