Documentation of 'org.joone.edit.CaseAwareTextDisplay' Java class
CaseAwareTextDisplay
org.joone.edit

Class CaseAwareTextDisplay

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible


    public class CaseAwareTextDisplay
    extends java.awt.Canvas
    implements java.io.Serializable
    It is a subclass of java.awt.Canvas and displays text. It has several properties of various sorts. The font property is a simple (unbound) property that is inherited from Canvas. The other properties inherited from Canvas are foreground and background. This Bean overrides the property setters, converting them to bound and constrained properties. The CaseAwareTextDisplay Bean also implements some new bound properties: text, topMargin, leftMargin, and textCase. The text property contains the text to be shown starting at the pixel offsets indicated by the topMargin and leftMargin properties. The text is painted using the inherited font, foreground, and background properties. The textCase property is maintained by the Bean as an int and indicates whether the text is to be displayed as typed -- in uppercase, lowercase, or initial caps.
    See Also:
    JooneFileChooserEditor, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.BaselineResizeBehavior
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int AS_IS 
      static java.lang.String BACKGROUND 
      static int FIRST_IN_CAPS 
      static java.lang.String FONT 
      static java.lang.String FOREGROUND 
      static java.lang.String LEFT_MARGIN 
      static int LOWERCASE 
      static java.lang.String TEXT 
      static java.lang.String TEXT_CASE 
      static java.lang.String TOP_MARGIN 
      static int UPPERCASE 
      • Fields inherited from class java.awt.Component

        BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addPropertyChangeListener(java.beans.PropertyChangeListener listener) 
      void addVetoableChangeListener(java.beans.VetoableChangeListener vetoListener) 
      int getLeftMargin() 
      java.lang.String getText() 
      int getTextCase() 
      int getTopMargin() 
      void paint(java.awt.Graphics g) 
      void removePropertyChangeListener(java.beans.PropertyChangeListener listener) 
      void removeVetoableChangeListener(java.beans.VetoableChangeListener vetoListener) 
      void setBackground(java.awt.Color newColor) 
      void setForeground(java.awt.Color newColor) 
      void setLeftMargin(int pixels) 
      void setText(java.lang.String text) 
      void setTextCase(int textCase) 
      void setTopMargin(int pixels) 
      • Methods inherited from class java.awt.Canvas

        addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CaseAwareTextDisplay

        public CaseAwareTextDisplay()
    • Method Detail

      • getText

        public java.lang.String getText()
      • setText

        public void setText(java.lang.String text)
      • getTopMargin

        public int getTopMargin()
      • setTopMargin

        public void setTopMargin(int pixels)
      • getLeftMargin

        public int getLeftMargin()
      • setLeftMargin

        public void setLeftMargin(int pixels)
      • setForeground

        public void setForeground(java.awt.Color newColor)
        Overrides:
        setForeground in class java.awt.Component
      • setBackground

        public void setBackground(java.awt.Color newColor)
        Overrides:
        setBackground in class java.awt.Component
      • getTextCase

        public int getTextCase()
      • setTextCase

        public void setTextCase(int textCase)
      • paint

        public void paint(java.awt.Graphics g)
        Overrides:
        paint in class java.awt.Canvas
      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
        Overrides:
        addPropertyChangeListener in class java.awt.Component
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
        Overrides:
        removePropertyChangeListener in class java.awt.Component
      • addVetoableChangeListener

        public void addVetoableChangeListener(java.beans.VetoableChangeListener vetoListener)
      • removeVetoableChangeListener

        public void removeVetoableChangeListener(java.beans.VetoableChangeListener vetoListener)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.