org.grinvin.util

Class GrinvinUtilities


public class GrinvinUtilities
extends java.lang.Object

A collection of utility methods for GrInvIn.

Method Summary

static String
getStyleSheetForFont(String fontKey)
Returns a string containing a style sheet that sets the font to the font specified by the given key in the defaults table.
static boolean
isMultipleSelectionEvent(MouseEvent anEvent)
Returns true if the mouse event specifies a multiple select.

Method Details

getStyleSheetForFont

public static String getStyleSheetForFont(String fontKey)
Returns a string containing a style sheet that sets the font to the font specified by the given key in the defaults table.
Parameters:
fontKey - a String that is the key of a certain font in the defaults table
Returns:
a String containing the content of a style sheet

isMultipleSelectionEvent

public static boolean isMultipleSelectionEvent(MouseEvent anEvent)
Returns true if the mouse event specifies a multiple select. This means that the left mouse button is used and the control key is down on Windows or the command key is down on Mac.
Parameters:
anEvent - a MouseEvent object
Returns:
true if this event specifies a multiple select