vipratech.beans.standardbeans
Class TextFlowCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--vipratech.awt.VCanvas
                    |
                    +--vipratech.beans.standardbeans.TextFlowCanvas

public class TextFlowCanvas
extends VCanvas

The TextFlowCanvas class is used to display the text that needs to flow on to subsequent lines. Useful for labels with several sentences. It extends vipratech.awt.RootCanvas.

Version:
1.03, March 11 2001
Author:
Warwick Bailey   warwick-bailey@bigfoot.com
See Also:
Serialized Form

Fields inherited from class vipratech.awt.VCanvas
fm
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
TextFlowCanvas()
          Constructor.
 
Method Summary
 java.lang.String getKey()
          Returns the key for the component that is used to extract a locale specific label from a key/value pair in a resource bundle.
 java.util.Locale getLocale()
          Returns the locale for this component.
 java.awt.Dimension getMinimumSize()
          Returns the minumum size.
 java.lang.String getText()
          Returns the complete text.
 void paint(java.awt.Graphics g)
          Calculates the size of the canvas and then strips the text into lines.
 void propertyChange(java.beans.PropertyChangeEvent event)
          Allows this component to be wired up to vipratech.beans.LanguageChoice at design time.
 void setKey(java.lang.String key)
          Sets a key for the component that can be used to extract a locale specific label from a key/value pair in a resource bundle.
 void setLocale(java.util.Locale locale)
          Sets the locale for this component.
 void setText(java.lang.String text)
          Sets the complete text to be stripped into lines.
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextFlowCanvas

public TextFlowCanvas()
Constructor.
Method Detail

paint

public final void paint(java.awt.Graphics g)
Calculates the size of the canvas and then strips the text into lines.
Overrides:
paint in class java.awt.Canvas

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Allows this component to be wired up to vipratech.beans.LanguageChoice at design time.

getMinimumSize

public final java.awt.Dimension getMinimumSize()
Returns the minumum size.
Overrides:
getMinimumSize in class java.awt.Component

setKey

public final void setKey(java.lang.String key)
Sets a key for the component that can be used to extract a locale specific label from a key/value pair in a resource bundle.

getKey

public final java.lang.String getKey()
Returns the key for the component that is used to extract a locale specific label from a key/value pair in a resource bundle.

setLocale

public final void setLocale(java.util.Locale locale)
Sets the locale for this component.
Overrides:
setLocale in class java.awt.Component

getLocale

public final java.util.Locale getLocale()
Returns the locale for this component.
Overrides:
getLocale in class java.awt.Component

setText

public final void setText(java.lang.String text)
Sets the complete text to be stripped into lines.

getText

public final java.lang.String getText()
Returns the complete text.

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de