JHotDraw 7.6

org.jhotdraw.text
Class ColorToolTipTextFormatter

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatter
      extended by javax.swing.text.DefaultFormatter
          extended by org.jhotdraw.text.ColorFormatter
              extended by org.jhotdraw.text.ColorToolTipTextFormatter
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ColorToolTipTextFormatter
extends ColorFormatter

ColorFormatter is used to format colors into a textual representation which can be displayed as a tooltip.

By default, the formatter is adaptive, meaning that the format depends on the ColorSpace of the current Color value.

Version:
$Id: ColorFormatter.java 632 2010-01-21 16:06:59Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.text.ColorFormatter
ColorFormatter.Format
 
Field Summary
 
Fields inherited from class org.jhotdraw.text.ColorFormatter
allowsNullValue, grayPercentagePattern, hsbPercentagePattern, isAdaptive, lastUsedInputFormat, numberFormat, outputFormat, prefs, rgbHexPattern, rgbIntegerPattern, rgbIntegerShortPattern, rgbPercentagePattern
 
Constructor Summary
ColorToolTipTextFormatter()
           
 
Method Summary
 java.lang.String valueToString(java.lang.Object value)
           
 
Methods inherited from class org.jhotdraw.text.ColorFormatter
createFormatterFactory, createFormatterFactory, getAllowsNullValue, getLastUsedInputFormat, getOutputFormat, isAdaptive, setAdaptive, setAllowsNullValue, setOutputFormat, stringToValue
 
Methods inherited from class javax.swing.text.DefaultFormatter
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
 
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorToolTipTextFormatter

public ColorToolTipTextFormatter()
Method Detail

valueToString

public java.lang.String valueToString(java.lang.Object value)
                               throws java.text.ParseException
Overrides:
valueToString in class ColorFormatter
Throws:
java.text.ParseException

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.