CH.ifa.draw.figures
Class NumberTextFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.figures.AttributeFigure
-
- CH.ifa.draw.figures.TextFigure
-
- CH.ifa.draw.figures.NumberTextFigure
-
- All Implemented Interfaces:
- Figure, FigureChangeListener, TextHolder, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
- Direct Known Subclasses:
- UpdatableNumberTextFigure
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
Constructors Constructor and Description NumberTextFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetValue()Gets the numerical value of the contained text.intoverlayColumns()Gets the number of columns to be used by the text overlay.voidsetValue(int value)Sets the numberical value of the contained text.-
Methods inherited from class CH.ifa.draw.figures.TextFigure
acceptsTyping, basicDisplayBox, 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, 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
-
-
-
-
Method Detail
-
overlayColumns
public int overlayColumns()
Gets the number of columns to be used by the text overlay.- Specified by:
overlayColumnsin interfaceTextHolder- Overrides:
overlayColumnsin classTextFigure- 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG