ca.sqlpower.architect.swingui.olap
Class OSUtils

java.lang.Object
  extended by ca.sqlpower.architect.swingui.olap.OSUtils

public class OSUtils
extends java.lang.Object

A collection of utility methods for the OLAP Swing UI. Also the place where we keep all the icons.


Field Summary
static javax.swing.ImageIcon CUBE_ADD_ICON
           
static javax.swing.ImageIcon CUBE_ICON
           
static javax.swing.ImageIcon CUBE_USAGE_ADD_ICON
           
static javax.swing.ImageIcon CUBE_USAGE_ICON
           
static javax.swing.ImageIcon DIMENSION_ADD_ICON
           
static javax.swing.ImageIcon DIMENSION_ICON
           
static javax.swing.ImageIcon DIMENSION_USAGE_ADD_ICON
           
static javax.swing.ImageIcon FORMULA_ADD_ICON
           
static javax.swing.ImageIcon FORMULA_ICON
           
static javax.swing.ImageIcon HIERARCHY_ADD_ICON
           
static javax.swing.ImageIcon HIERARCHY_ICON
           
static javax.swing.ImageIcon LEVEL_ADD_ICON
           
static javax.swing.ImageIcon LEVEL_ICON
           
static javax.swing.ImageIcon LEVEL_PROP_ADD_ICON
           
static javax.swing.ImageIcon LEVEL_PROP_ICON
           
static javax.swing.ImageIcon MEASURE_ADD_ICON
           
static javax.swing.ImageIcon MEASURE_ICON
           
static javax.swing.ImageIcon MEASURE_PROP_ADD_ICON
           
static javax.swing.ImageIcon MEASURE_PROP_ICON
           
static javax.swing.ImageIcon NAMED_SET_ADD_ICON
           
static javax.swing.ImageIcon NAMED_SET_ICON
           
static javax.swing.ImageIcon SCHEMA_ADD_ICON
           
static javax.swing.ImageIcon SCHEMA_EXPORT_ICON
           
static javax.swing.ImageIcon SCHEMA_ICON
           
static javax.swing.ImageIcon SEC_CUBE_GRANT_ADD_ICON
           
static javax.swing.ImageIcon SEC_CUBE_GRANT_ICON
           
static javax.swing.ImageIcon SEC_GRANT_ADD_ICON
           
static javax.swing.ImageIcon SEC_GRANT_ICON
           
static javax.swing.ImageIcon SEC_HIERARCHY_GRANT_ADD_ICON
           
static javax.swing.ImageIcon SEC_HIERARCHY_GRANT_ICON
           
static javax.swing.ImageIcon SEC_ROLE_ADD_ICON
           
static javax.swing.ImageIcon SEC_ROLE_ICON
           
static javax.swing.ImageIcon SEC_SCHEMA_GRANT_ADD_ICON
           
static javax.swing.ImageIcon SEC_SCHEMA_GRANT_ICON
           
static javax.swing.ImageIcon SEC_UNION_ADD_ICON
           
static javax.swing.ImageIcon SEC_UNION_ICON
           
static javax.swing.ImageIcon VIRTUAL_CUBE_ADD_ICON
           
static javax.swing.ImageIcon VIRTUAL_CUBE_ICON
           
 
Constructor Summary
OSUtils()
           
 
Method Summary
static javax.swing.Icon iconFor(OLAPObject value)
          Returns the appropriate icon for the given OLAP object.
static javax.swing.Icon iconFor(OLAPObject value, boolean addVariant)
          Returns the appropriate icon for the given OLAP object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUBE_ICON

public static final javax.swing.ImageIcon CUBE_ICON

CUBE_ADD_ICON

public static final javax.swing.ImageIcon CUBE_ADD_ICON

CUBE_USAGE_ICON

public static final javax.swing.ImageIcon CUBE_USAGE_ICON

CUBE_USAGE_ADD_ICON

public static final javax.swing.ImageIcon CUBE_USAGE_ADD_ICON

DIMENSION_ICON

public static final javax.swing.ImageIcon DIMENSION_ICON

DIMENSION_ADD_ICON

public static final javax.swing.ImageIcon DIMENSION_ADD_ICON

DIMENSION_USAGE_ADD_ICON

public static final javax.swing.ImageIcon DIMENSION_USAGE_ADD_ICON

FORMULA_ICON

public static final javax.swing.ImageIcon FORMULA_ICON

FORMULA_ADD_ICON

public static final javax.swing.ImageIcon FORMULA_ADD_ICON

HIERARCHY_ICON

public static final javax.swing.ImageIcon HIERARCHY_ICON

HIERARCHY_ADD_ICON

public static final javax.swing.ImageIcon HIERARCHY_ADD_ICON

LEVEL_ICON

public static final javax.swing.ImageIcon LEVEL_ICON

LEVEL_ADD_ICON

public static final javax.swing.ImageIcon LEVEL_ADD_ICON

LEVEL_PROP_ICON

public static final javax.swing.ImageIcon LEVEL_PROP_ICON

LEVEL_PROP_ADD_ICON

public static final javax.swing.ImageIcon LEVEL_PROP_ADD_ICON

MEASURE_ICON

public static final javax.swing.ImageIcon MEASURE_ICON

MEASURE_ADD_ICON

public static final javax.swing.ImageIcon MEASURE_ADD_ICON

MEASURE_PROP_ICON

public static final javax.swing.ImageIcon MEASURE_PROP_ICON

MEASURE_PROP_ADD_ICON

public static final javax.swing.ImageIcon MEASURE_PROP_ADD_ICON

NAMED_SET_ICON

public static final javax.swing.ImageIcon NAMED_SET_ICON

NAMED_SET_ADD_ICON

public static final javax.swing.ImageIcon NAMED_SET_ADD_ICON

SCHEMA_ICON

public static final javax.swing.ImageIcon SCHEMA_ICON

SCHEMA_ADD_ICON

public static final javax.swing.ImageIcon SCHEMA_ADD_ICON

SEC_GRANT_ICON

public static final javax.swing.ImageIcon SEC_GRANT_ICON

SEC_GRANT_ADD_ICON

public static final javax.swing.ImageIcon SEC_GRANT_ADD_ICON

SEC_CUBE_GRANT_ICON

public static final javax.swing.ImageIcon SEC_CUBE_GRANT_ICON

SEC_CUBE_GRANT_ADD_ICON

public static final javax.swing.ImageIcon SEC_CUBE_GRANT_ADD_ICON

SEC_HIERARCHY_GRANT_ICON

public static final javax.swing.ImageIcon SEC_HIERARCHY_GRANT_ICON

SEC_HIERARCHY_GRANT_ADD_ICON

public static final javax.swing.ImageIcon SEC_HIERARCHY_GRANT_ADD_ICON

SEC_SCHEMA_GRANT_ICON

public static final javax.swing.ImageIcon SEC_SCHEMA_GRANT_ICON

SEC_SCHEMA_GRANT_ADD_ICON

public static final javax.swing.ImageIcon SEC_SCHEMA_GRANT_ADD_ICON

SEC_ROLE_ICON

public static final javax.swing.ImageIcon SEC_ROLE_ICON

SEC_ROLE_ADD_ICON

public static final javax.swing.ImageIcon SEC_ROLE_ADD_ICON

SEC_UNION_ICON

public static final javax.swing.ImageIcon SEC_UNION_ICON

SEC_UNION_ADD_ICON

public static final javax.swing.ImageIcon SEC_UNION_ADD_ICON

VIRTUAL_CUBE_ICON

public static final javax.swing.ImageIcon VIRTUAL_CUBE_ICON

VIRTUAL_CUBE_ADD_ICON

public static final javax.swing.ImageIcon VIRTUAL_CUBE_ADD_ICON

SCHEMA_EXPORT_ICON

public static final javax.swing.ImageIcon SCHEMA_EXPORT_ICON
Constructor Detail

OSUtils

public OSUtils()
Method Detail

iconFor

public static javax.swing.Icon iconFor(OLAPObject value)
Returns the appropriate icon for the given OLAP object.

Parameters:
value - The object you want an icon for
Returns:
The most appropriate icon for the given object. The icon size will be 16x16, and it will have an alpha mask. If no appropriate icon is available, a completely transparent 16x16 icon will be returned.

iconFor

public static javax.swing.Icon iconFor(OLAPObject value,
                                       boolean addVariant)
Returns the appropriate icon for the given OLAP object.

Parameters:
value - The object you want an icon for
addVariant - true for the variant of the icon with an "add" badge, false for the undecorated icon.
Returns:
The most appropriate icon for the given object. The icon size will be 16x16, and it will have an alpha mask. If no appropriate icon is available, a completely transparent 16x16 icon will be returned.


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca