ca.sqlpower.architect.swingui.olap
Class OSUtils
java.lang.Object
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.
|
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 |
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
OSUtils
public OSUtils()
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 foraddVariant - 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