gumbo.visualize.data.impl.swing
Class SwingListEntry

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.util.relation.AbstractTreeNodeDelegator
              |
              +--gumbo.graphic.space.AbstractSpaceNode
                    |
                    +--gumbo.graphic.impl.swing.SwingSpaceNode
                          |
                          +--gumbo.graphic.impl.swing.SwingShape
                                |
                                +--gumbo.visualize.data.impl.swing.SwingDataShape
                                      |
                                      +--gumbo.visualize.data.impl.swing.SwingListEntry
All Implemented Interfaces:
AxisBound3Boundable, AxisLayoutGraphic, BoundableGraphic, DataModelListener, Disposable, Graphic, GraphicGeometry, GraphicPresence, GraphicResource, GraphicView, InteractableGraphic, Interactor, IntersectableGraphic, java.io.Serializable, SpaceNode, TransformNode, TranslationNode

public class SwingListEntry
extends SwingDataShape

A default list entry implemented using a JTextField, which is automatically updated with the associated model's String client data. Intended for use with SwingListView, which controls layout.

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
See Also:
Serialized Form

Field Summary
static java.awt.Color SEPARATOR_COLOR
          Default entry separator color.
static java.awt.Font TEXT_FONT
          Default entry text font.
 
Constructor Summary
SwingListEntry(PartView view)
           
 
Method Summary
protected  void implDispose()
          Disposes the super, then self.
 void prepareGraphicPresence()
          Informs this graphic entity that, in anticipation of realization, it should update as needed those aspects of its graphic state (geometry, appearance) and that of any dependents (siblings, descendants) that can affect its presentation.
 void realizeGraphicPresence()
          Informs this graphic entity that external (sibling, ancestor) and internal (self, descendant) state changes that can affect its presentation are complete and assumed valid, and that it should update its presentation as needed to be consistent with its graphic state.
protected  void updateFeedback()
          Default implementation: Sets the background and foreground colors of the graphic according to DataFeedback.INSTANCE.text???Color().
 
Methods inherited from class gumbo.visualize.data.impl.swing.SwingDataShape
clientDataChanged, getAutoLabel, getDataView, initSwingDataShape
 
Methods inherited from class gumbo.graphic.impl.swing.SwingShape
getInteractorState, initSwingShape, newTreeNodeDelegate
 
Methods inherited from class gumbo.graphic.impl.swing.SwingSpaceNode
canIntersectGraphic, getGraphic, getGraphicAxisBound3, getGraphicLocalSpace, getGraphicTransform, getGraphicTranslation, initSwingSpaceNode, intersectGraphic, isSpaceTransforming, setGraphicTranslation
 
Methods inherited from class gumbo.graphic.space.AbstractSpaceNode
getGraphicSpaceTree
 
Methods inherited from class gumbo.util.relation.AbstractTreeNodeDelegator
getTreeNodeDelegate
 
Methods inherited from class gumbo.util.AbstractDisposable
dispose, isDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gumbo.graphic.Graphic
getGraphic
 
Methods inherited from interface gumbo.util.Disposable
dispose, isDisposed
 
Methods inherited from interface gumbo.graphic.probe.AxisBound3Boundable
getGraphicAxisBound3
 
Methods inherited from interface gumbo.graphic.space.GraphicGeometry
getGraphicLocalSpace
 
Methods inherited from interface gumbo.graphic.space.TranslationNode
getGraphicTranslation, setGraphicTranslation
 
Methods inherited from interface gumbo.graphic.space.TransformNode
getGraphicTransform, isSpaceTransforming
 
Methods inherited from interface gumbo.graphic.space.SpaceNode
getGraphicSpaceTree
 

Field Detail

TEXT_FONT

public static final java.awt.Font TEXT_FONT
Default entry text font.


SEPARATOR_COLOR

public static final java.awt.Color SEPARATOR_COLOR
Default entry separator color.

Constructor Detail

SwingListEntry

public SwingListEntry(PartView view)
Method Detail

updateFeedback

protected void updateFeedback()
Default implementation: Sets the background and foreground colors of the graphic according to DataFeedback.INSTANCE.text???Color().

Overrides:
updateFeedback in class SwingShape

prepareGraphicPresence

public void prepareGraphicPresence()
Description copied from interface: GraphicPresence
Informs this graphic entity that, in anticipation of realization, it should update as needed those aspects of its graphic state (geometry, appearance) and that of any dependents (siblings, descendants) that can affect its presentation. Does not actually affect the presentation (see realizeGraphicDisplay()). Allows for efficient batching of graphic state changes.

Specified by:
prepareGraphicPresence in interface GraphicPresence
Overrides:
prepareGraphicPresence in class SwingSpaceNode

realizeGraphicPresence

public void realizeGraphicPresence()
Description copied from interface: GraphicPresence
Informs this graphic entity that external (sibling, ancestor) and internal (self, descendant) state changes that can affect its presentation are complete and assumed valid, and that it should update its presentation as needed to be consistent with its graphic state. Allows for efficient batching of graphic state realizations.

Specified by:
realizeGraphicPresence in interface GraphicPresence
Overrides:
realizeGraphicPresence in class SwingSpaceNode

implDispose

protected void implDispose()
Disposes the super, then self.

Overrides:
implDispose in class SwingDataShape