org.apache.batik.ext.swing

Class DoubleDocument

public class DoubleDocument extends PlainDocument

Helper class. Only allows an Double value in the document.
Method Summary
doublegetValue()
voidinsertString(int offs, String str, AttributeSet a)
Strip all non digit characters.
voidsetValue(double d)

Method Detail

getValue

public double getValue()

insertString

public void insertString(int offs, String str, AttributeSet a)
Strip all non digit characters. The first character must be '-' or '+'. Only one '.' is allowed.

setValue

public void setValue(double d)
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.