org.grinvin.util
Class GrinvinUtilities
java.lang.Object
org.grinvin.util.GrinvinUtilities
public class GrinvinUtilities
extends java.lang.Object
A collection of utility methods for GrInvIn.
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.
|
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.
fontKey
- a String that is the key of a certain font in the defaults table
- 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.
anEvent
- a MouseEvent object
- true if this event specifies a multiple select