sferyx.administration.renderers
Class CustomBlockView

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
All Implemented Interfaces:
javax.swing.SwingConstants, CSSLayoutViews
Direct Known Subclasses:
CustomFormView, CustomListView, FoldingView, HRuleView

public class CustomBlockView
extends CustomLayoutBoxView

CustomBlockView, could be used to personalize the xml tags.


Field Summary
 
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
CustomBlockView(javax.swing.text.Element elem, int axis)
          Creates a new instance of CustomBlockView
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent e, java.awt.Shape a, javax.swing.text.ViewFactory f)
           
 boolean containsOnlyFloats()
           
 float getMaximumSpan_(int axis)
           
 float getMaximumSpan(int axis)
           
 float getMinimumSpan_(int axis)
           
 float getMinimumSpan(int axis)
           
 float getPreferredSpan_(int axis)
           
 float getPreferredSpan(int axis)
           
 float getTotalSpanV_(javax.swing.text.View v)
           
 float getTotalSpanV(javax.swing.text.View v)
           
 void insertUpdate(javax.swing.event.DocumentEvent e, java.awt.Shape a, javax.swing.text.ViewFactory f)
           
 boolean isVisible()
           
protected  void layout(int width, int height)
           
protected  void loadChildren(javax.swing.text.ViewFactory f)
           
 void paint(java.awt.Graphics g, java.awt.Shape allocation)
           
 void removeUpdate(javax.swing.event.DocumentEvent e, java.awt.Shape a, javax.swing.text.ViewFactory f)
           
protected  void updateLayout(javax.swing.event.DocumentEvent.ElementChange ec, javax.swing.event.DocumentEvent e, java.awt.Shape a)
           
 
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, getLeftInset, 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
 

Constructor Detail

CustomBlockView

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

Method Detail

containsOnlyFloats

public boolean containsOnlyFloats()

getMaximumSpan

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

getMaximumSpan_

public float getMaximumSpan_(int axis)

getPreferredSpan

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

getTotalSpanV

public float getTotalSpanV(javax.swing.text.View v)

getTotalSpanV_

public float getTotalSpanV_(javax.swing.text.View v)

getPreferredSpan_

public float getPreferredSpan_(int axis)

loadChildren

protected void loadChildren(javax.swing.text.ViewFactory f)
Overrides:
loadChildren in class CustomLayoutBoxView

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e,
                          java.awt.Shape a,
                          javax.swing.text.ViewFactory f)
Overrides:
changedUpdate in class CustomLayoutBoxView

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e,
                         java.awt.Shape a,
                         javax.swing.text.ViewFactory f)
Overrides:
insertUpdate in class CustomLayoutBoxView

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e,
                         java.awt.Shape a,
                         javax.swing.text.ViewFactory f)
Overrides:
removeUpdate in class CustomLayoutBoxView

layout

protected void layout(int width,
                      int height)
Overrides:
layout in class CustomLayoutBoxView

updateLayout

protected void updateLayout(javax.swing.event.DocumentEvent.ElementChange ec,
                            javax.swing.event.DocumentEvent e,
                            java.awt.Shape a)
Overrides:
updateLayout in class CustomLayoutBoxView

getMinimumSpan

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

getMinimumSpan_

public float getMinimumSpan_(int axis)

paint

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

isVisible

public boolean isVisible()
Overrides:
isVisible in class CustomLayoutBoxView