Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
static class: JEditorPane.PlainEditorKit.PlainParagraph.LogicalView [javadoc | source]
java.lang.Object
   javax.swing.text.View
      javax.swing.text.CompositeView
         javax.swing.JEditorPane$PlainEditorKit$PlainParagraph$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.JEditorPane$PlainEditorKit$PlainParagraph$LogicalView Summary:
childAllocation,   forwardUpdateToView,   getPreferredSpan,   getViewAtPoint,   getViewIndexAtPosition,   isAfter,   isBefore,   loadChildren,   paint,   updateChildren
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.JEditorPane$PlainEditorKit$PlainParagraph$LogicalView Detail:
 protected  void childAllocation(int index,
    Rectangle a) 
 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 float getPreferredSpan(int axis) 
 protected View getViewAtPoint(int x,
    int y,
    Rectangle alloc) 
 protected int getViewIndexAtPosition(int pos) 
 protected boolean isAfter(int x,
    int y,
    Rectangle alloc) 
 protected boolean isBefore(int x,
    int y,
    Rectangle alloc) 
 protected  void loadChildren(ViewFactory f) 
 public  void paint(Graphics g,
    Shape allocation) 
 protected boolean updateChildren(ElementChange ec,
    DocumentEvent e,
    ViewFactory f)