TV-Browser 2.7.5 API

tvraterplugin
Class RatingIconTextFactory

java.lang.Object
  extended by tvraterplugin.RatingIconTextFactory

public class RatingIconTextFactory
extends Object

The Icon and Text that is displayed in the ProgramTable and various other Dialogs

Author:
bodo

Field Summary
(package private) static Properties _genre
          The Genres
(package private) static ImageIcon[] _icons
          Icons used to show the Ratings
 
Constructor Summary
RatingIconTextFactory()
           
 
Method Summary
static Properties getGenres()
          Returns the Genre-Property
static ImageIcon getImageIconForRating(int rating)
          Returns an Icon for a Rating
static String getStringForRating(int type, int rating)
          Returns the String for a specific Rating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_icons

static final ImageIcon[] _icons
Icons used to show the Ratings


_genre

static Properties _genre
The Genres

Constructor Detail

RatingIconTextFactory

public RatingIconTextFactory()
Method Detail

getGenres

public static Properties getGenres()
Returns the Genre-Property

Returns:
Genre-Property

getImageIconForRating

public static ImageIcon getImageIconForRating(int rating)
Returns an Icon for a Rating

Parameters:
rating - Rating (0-5)
Returns:
Icon for Rating

getStringForRating

public static String getStringForRating(int type,
                                        int rating)
Returns the String for a specific Rating

Parameters:
type - Type (Rating.OVERALL ...)
rating - the actual Rating (0-5)
Returns:
String for the Rating

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)