Home » openjdk-7 » javax » swing » text » [javadoc | source]
javax.swing.text
static class: FlowView.LogicalView [javadoc | source]
java.lang.Object
   javax.swing.text.View
      javax.swing.text.CompositeView
         javax.swing.text.FlowView$LogicalView

All Implemented Interfaces:
    SwingConstants

This class can be used to represent a logical view for a flow. It keeps the children updated to reflect the state of the model, gives the logical child views access to the view hierarchy, and calculates a preferred span. It doesn't do any rendering, layout, or model/view translation.
Fields inherited from javax.swing.text.View:
BadBreakWeight,  GoodBreakWeight,  ExcellentBreakWeight,  ForcedBreakWeight,  X_AXIS,  Y_AXIS,  sharedBiasReturn
Constructor:
 LogicalView(Element elem) 
Method from javax.swing.text.FlowView$LogicalView Summary:
childAllocation,   forwardUpdateToView,   getAttributes,   getMinimumSpan,   getPreferredSpan,   getViewAtPoint,   getViewIndexAtPosition,   isAfter,   isBefore,   loadChildren,   paint
Methods from javax.swing.text.CompositeView:
childAllocation,   flipEastAndWestAtEnds,   getBottomInset,   getChildAllocation,   getInsideAllocation,   getLeftInset,   getNextEastWestVisualPositionFrom,   getNextNorthSouthVisualPositionFrom,   getNextVisualPositionFrom,   getRightInset,   getTopInset,   getView,   getViewAtPoint,   getViewAtPosition,   getViewCount,   getViewIndex,   getViewIndexAtPosition,   isAfter,   isBefore,   loadChildren,   modelToView,   modelToView,   replace,   setInsets,   setParagraphInsets,   setParent,   viewToModel
Methods from javax.swing.text.View:
append,   breakView,   changedUpdate,   createFragment,   forwardUpdate,   forwardUpdateToView,   getAlignment,   getAttributes,   getBreakWeight,   getChildAllocation,   getContainer,   getDocument,   getElement,   getEndOffset,   getGraphics,   getMaximumSpan,   getMinimumSpan,   getNextVisualPositionFrom,   getParent,   getPreferredSpan,   getResizeWeight,   getStartOffset,   getToolTipText,   getView,   getViewCount,   getViewFactory,   getViewIndex,   getViewIndex,   insert,   insertUpdate,   isVisible,   modelToView,   modelToView,   modelToView,   paint,   preferenceChanged,   remove,   removeAll,   removeUpdate,   replace,   setParent,   setSize,   updateChildren,   updateLayout,   viewToModel,   viewToModel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.FlowView$LogicalView Detail:
 protected  void childAllocation(int index,
    Rectangle a) 
    Returns the allocation for a given child. Implemented to do nothing, as the logical view doesn't perform layout on the children.
 protected  void forwardUpdateToView(View v,
    DocumentEvent e,
    Shape a,
    ViewFactory f) 
    Forward the DocumentEvent to the given child view. This is implemented to reparent the child to the logical view (the children may have been parented by a row in the flow if they fit without breaking) and then execute the superclass behavior.
 public AttributeSet getAttributes() 
    Fetches the attributes to use when rendering. This view isn't directly responsible for an element so it returns the outer classes attributes.
 public float getMinimumSpan(int axis) 
    Determines the minimum span for this view along an axis. The is implemented to find the minimum unbreakable span.
 public float getPreferredSpan(int axis) 
    Determines the preferred span for this view along an axis.
 protected View getViewAtPoint(int x,
    int y,
    Rectangle alloc) 
    Fetches the child view at the given point. Implemented to return null, as hit detection is not performed on the logical view.
 protected int getViewIndexAtPosition(int pos) 
 protected boolean isAfter(int x,
    int y,
    Rectangle alloc) 
    Tests whether a point lies after the rectangle range. Implemented to return false, as hit detection is not performed on the logical view.
 protected boolean isBefore(int x,
    int y,
    Rectangle alloc) 
    Tests whether a point lies before the rectangle range. Implemented to return false, as hit detection is not performed on the logical view.
 protected  void loadChildren(ViewFactory f) 
 public  void paint(Graphics g,
    Shape allocation) 
    Renders using the given rendering surface and area on that surface. This is implemented to do nothing, the logical view is never visible.