Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jplot
Class Utils  view Utils download Utils.java

java.lang.Object
  extended byjplot.Utils

public class Utils
extends java.lang.Object

General utilities, marco classes


Nested Class Summary
static class Utils.CheckBoxWithText
          ------------------------------------------------------------------- A checkbox with a line of text added to it as a label --------------------------------------------------------------------
static class Utils.LabeledComboBox
           
static class Utils.LabeledTextField
           
 
Field Summary
private static javax.swing.JColorChooser colorChooser
           
(package private) static java.lang.String empty
           
static java.lang.String fs
           
static java.lang.String lf
           
 
Constructor Summary
Utils()
           
 
Method Summary
(package private) static void bummer(java.awt.Frame parent, java.lang.String s)
          Bummer message.
static javax.swing.JCheckBox createCheckBox(java.lang.String s, boolean b)
           
static javax.swing.JColorChooser getColorChooser()
          Returns a color chooser on request.
(package private) static java.awt.Font getDefaultFont()
          Returns a new instance of a default font.
static boolean isUnix()
          Says whether we're running on a UNIX platform or not.
static javax.swing.JLabel makeLabel(java.lang.String txt)
          Make a label specifically used by the tic-panel.
(package private) static void oops(java.awt.Frame parent, java.lang.String s)
          Oops message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

empty

static final java.lang.String empty
See Also:
Constant Field Values

colorChooser

private static javax.swing.JColorChooser colorChooser

lf

public static final java.lang.String lf

fs

public static final java.lang.String fs
Constructor Detail

Utils

public Utils()
Method Detail

getColorChooser

public static javax.swing.JColorChooser getColorChooser()
Returns a color chooser on request. Very usefull if the color chooser is often needed, since we only allocate the chooser once


isUnix

public static boolean isUnix()
Says whether we're running on a UNIX platform or not. This is simply checked by the file-separator variable.


oops

static void oops(java.awt.Frame parent,
                 java.lang.String s)
Oops message. Shows a message dialog box with a specified message.


bummer

static void bummer(java.awt.Frame parent,
                   java.lang.String s)
Bummer message. Shows an error message dialog box with a specified message.


getDefaultFont

static java.awt.Font getDefaultFont()
Returns a new instance of a default font. Currently, 'Default' doesn't seem too nice on e.g. unix platforms.


makeLabel

public static javax.swing.JLabel makeLabel(java.lang.String txt)
Make a label specifically used by the tic-panel.


createCheckBox

public static javax.swing.JCheckBox createCheckBox(java.lang.String s,
                                                   boolean b)