sferyx.administration.renderers
Class FoldingView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.CompositeView
          extended by javax.swing.text.BoxView
              extended by javax.swing.text.html.BlockView
                  extended by sferyx.administration.renderers.CustomLayoutBoxView
                      extended by sferyx.administration.renderers.CustomBlockView
                          extended by sferyx.administration.renderers.FoldingView
All Implemented Interfaces:
javax.swing.SwingConstants, CSSLayoutViews

public class FoldingView
extends CustomBlockView

Support for text folding functionalities.


Field Summary
 int foldingSignHeight
           
 int foldingSignWidth
           
 int foldingSignX
           
 int foldingSignY
           
 
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
FoldingView(javax.swing.text.Element elem, int axis)
          Creates a new instance of FoldingView
 
Method Summary
 short getLeftInset()
           
 float getMaximumSpan(int axis)
           
 float getMinimumSpan(int axis)
           
 float getPreferredSpan(int axis)
           
 boolean isExpanded()
           
 void paint(java.awt.Graphics g, java.awt.Shape allocation)
           
 void setExpanded(boolean expanded)
           
 
Methods inherited from class sferyx.administration.renderers.CustomBlockView
changedUpdate, containsOnlyFloats, getMaximumSpan_, getMinimumSpan_, getPreferredSpan_, getTotalSpanV_, getTotalSpanV, insertUpdate, isVisible, layout, loadChildren, removeUpdate, updateLayout
 
Methods inherited from class sferyx.administration.renderers.CustomLayoutBoxView
adjustAllParagraphsLayout, adjustParagraphLayout, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, forwardUpdate, getAbsoluteX_, getAbsoluteX, getAbsoluteY_, getAbsoluteY, getAlignment, getAttributes, getBottomInset, getBottomMargin, getBottomPadding, getChildAllocation, getFloatingChildrenSpan, getHeightCSSValue_, getHeightCSSValue, getInsideAllocation, getLeftMargin, getLeftPadding, getLeftRightBorderInset, getMaxWidthCSSValue, getMinWidthCSSValue, getMyIndex, getMyOffset, getNextVisualPositionFrom, getOffset, getResizeWeight, getRightInset, getRightMargin, getRightPadding, getSpan, getStyleSheet, getSuperPreferredSpan, getTopBottomBorderInset, getTopInset, getTopMargin, getTopPadding, getView, getViewAtPoint, getViewAtPointNormal, getWidth, getWidthCSSValue_, getWidthCSSValue, isAbsolutePositioning, isRelativePositioning, layoutChanged, layoutMajorAxis, layoutMinorAxis, layoutSuperMajorAxis, loadChildren_, modelToView, paintThisViewOnly, replace_, setInsets, setParent, setPropertiesFromAttributes, setSize, viewToModel
 
Methods inherited from class javax.swing.text.BoxView
baselineLayout, baselineRequirements, flipEastAndWestAtEnds, getAxis, getHeight, isAfter, isAllocationValid, isBefore, isLayoutValid, paintChild, preferenceChanged, replace, setAxis
 
Methods inherited from class javax.swing.text.CompositeView
getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, modelToView, setParagraphInsets
 
Methods inherited from class javax.swing.text.View
append, breakView, createFragment, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, modelToView, remove, removeAll, updateChildren, viewToModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foldingSignX

public int foldingSignX

foldingSignY

public int foldingSignY

foldingSignWidth

public int foldingSignWidth

foldingSignHeight

public int foldingSignHeight
Constructor Detail

FoldingView

public FoldingView(javax.swing.text.Element elem,
                   int axis)
Creates a new instance of FoldingView

Method Detail

getMaximumSpan

public float getMaximumSpan(int axis)
Overrides:
getMaximumSpan in class CustomBlockView

getPreferredSpan

public float getPreferredSpan(int axis)
Overrides:
getPreferredSpan in class CustomBlockView

getMinimumSpan

public float getMinimumSpan(int axis)
Overrides:
getMinimumSpan in class CustomBlockView

getLeftInset

public short getLeftInset()
Overrides:
getLeftInset in class CustomLayoutBoxView

setExpanded

public void setExpanded(boolean expanded)

isExpanded

public boolean isExpanded()

paint

public void paint(java.awt.Graphics g,
                  java.awt.Shape allocation)
Overrides:
paint in class CustomBlockView