CH.ifa.draw.figures
Class NumberTextFigure

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractFigure
      extended by CH.ifa.draw.figures.AttributeFigure
          extended by CH.ifa.draw.figures.TextFigure
              extended by CH.ifa.draw.figures.NumberTextFigure
All Implemented Interfaces:
Figure, FigureChangeListener, TextHolder, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class NumberTextFigure
extends TextFigure

A TextFigure specialized to edit numbers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
Constructor Summary
NumberTextFigure()
           
 
Method Summary
 int getValue()
          Gets the numerical value of the contained text.
 int overlayColumns()
          Gets the number of columns to be used by the text overlay.
 void setValue(int value)
          Sets the numberical value of the contained text.
 
Methods inherited from class CH.ifa.draw.figures.TextFigure
acceptsTyping, basicDisplayBox, basicMoveBy, changed, connect, createCurrentFont, disconnect, displayBox, drawBackground, drawFrame, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, getAttribute, getFont, getText, handles, moveBy, read, readOnly, release, setAttribute, setCurrentFontName, setCurrentFontSize, setCurrentFontStyle, setFont, setReadOnly, setText, textDisplayBox, updateLocation, write
 
Methods inherited from class CH.ifa.draw.figures.AttributeFigure
draw, getDefaultAttribute, getFillColor, getFrameColor
 
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, size, willChange
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberTextFigure

public NumberTextFigure()
Method Detail

overlayColumns

public int overlayColumns()
Gets the number of columns to be used by the text overlay.

Specified by:
overlayColumns in interface TextHolder
Overrides:
overlayColumns in class TextFigure
See Also:
FloatingTextField

getValue

public int getValue()
Gets the numerical value of the contained text. return the value or 0 in the case of an illegal number format.


setValue

public void setValue(int value)
Sets the numberical value of the contained text.