gishur.graph.awt
Class FlowTypeFormat

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--gishur.graph.awt.FlowTypeFormat
All Implemented Interfaces:
javax.accessibility.Accessible, java.lang.Cloneable, Cloneable, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, TypeFormat

public class FlowTypeFormat
extends java.awt.Panel
implements TypeFormat, java.awt.event.FocusListener

Version:
1.0
Author:
Thomas Wolf
See Also:
Serialized Form

Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
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
 
Constructor Summary
FlowTypeFormat()
           
 
Method Summary
 java.lang.Object clone()
          Creates a new object of the same class as this object.
 void focusGained(java.awt.event.FocusEvent e)
          Invoked when a component gains the keyboard focus.
 void focusLost(java.awt.event.FocusEvent e)
          Invoked when a component loses the keyboard focus.
 java.awt.Component getComponent()
          Returns the java.awt.Component, that handles the input.
 java.lang.String getFormatName()
          Returns the name, under which this TypeFormat should be handled.
 java.awt.Dimension getMinimumSize()
          Gets the mininimum size of this component.
 java.awt.Dimension getPreferredSize()
          Gets the preferred size of this component.
 java.lang.Class[] getTypeClasses()
          Returns all classes, that this TypeFormat likes to handle.
 java.lang.Object getValue()
          Returns the actual value.
 void setValue(java.lang.Object value)
          Sets the value; it should be showed by the connected input component.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowTypeFormat

public FlowTypeFormat()
Method Detail

clone

public java.lang.Object clone()
Creates a new object of the same class as this object. It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No constructor is called. In some Implementations, the fields are cloned, if possible (deep clone).
Specified by:
clone in interface Cloneable
Overrides:
clone in class java.lang.Object
Returns:
a clone of this object.

getTypeClasses

public java.lang.Class[] getTypeClasses()
Returns all classes, that this TypeFormat likes to handle.
Specified by:
getTypeClasses in interface TypeFormat
Returns:
all classes, that this TypeFormat likes to handle.

getFormatName

public java.lang.String getFormatName()
Returns the name, under which this TypeFormat should be handled.
Specified by:
getFormatName in interface TypeFormat
Returns:
the name, under which this TypeFormat should be handled.

getComponent

public java.awt.Component getComponent()
Returns the java.awt.Component, that handles the input.
Specified by:
getComponent in interface TypeFormat
Returns:
the java.awt.Component, that handles the input.

setValue

public void setValue(java.lang.Object value)
Sets the value; it should be showed by the connected input component.
Specified by:
setValue in interface TypeFormat
Parameters:
value - the value (of a accepted type)

getValue

public java.lang.Object getValue()
Returns the actual value.
Specified by:
getValue in interface TypeFormat
Returns:
the actual value.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the preferred size of this component.
Overrides:
getPreferredSize in class java.awt.Container

getMinimumSize

public java.awt.Dimension getMinimumSize()
Gets the mininimum size of this component.
Overrides:
getMinimumSize in class java.awt.Container

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Invoked when a component gains the keyboard focus.
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Invoked when a component loses the keyboard focus.
Specified by:
focusLost in interface java.awt.event.FocusListener