sferyx.administration.renderers
Class SferyxUtilities

java.lang.Object
  extended by sferyx.administration.renderers.SferyxUtilities

public class SferyxUtilities
extends java.lang.Object


Field Summary
static float hidpiScale
           
static java.awt.Color realTransparentColor
           
static java.awt.Color transparentColor
           
 
Constructor Summary
SferyxUtilities()
          Creates a new instance of SferyxUtilities
 
Method Summary
static java.lang.String addAllAttributesForSelector(javax.swing.text.Element elem, javax.swing.text.html.StyleSheet ss, javax.swing.text.MutableAttributeSet sas)
           
static java.lang.String colorToString(java.awt.Color color)
           
static boolean containsTagAttributeFromElement(javax.swing.text.Element element)
           
static float convertEmValue(java.lang.String nextToken)
           
static java.lang.String convertFromXHTMLtoHTML(java.lang.String line)
           
static void convertSelectedCellsToList(HTMLBrowser htmlEditor, javax.swing.JEditorPane html, java.lang.String tag)
           
static java.lang.String convertStyleDeclarationtoURL(java.lang.String declaration)
           
static byte[] decodeBase64(java.lang.String s)
          Translates the specified Base64 string into a byte array.
static boolean decodeCSSChildFunction(java.lang.String funct, int elementIndex)
           
static java.lang.String dumpDocumentElement(javax.swing.text.Element elem)
           
static java.lang.String dumpElementContent(javax.swing.text.Element elem)
           
static java.lang.String dumpElementContent(javax.swing.text.Element elem, int start, int length)
           
static java.lang.String dumpSelectedTableCells(java.util.Vector selectedTableCells)
           
static java.lang.String encodeBase64(byte[] buf)
          Translates the specified byte array into Base64 string.
static java.lang.String encodeQuotedPrintable(java.lang.String data)
           
static void findNextOccuranceAndRepalce(java.lang.String word, java.lang.String replacement, javax.swing.text.JTextComponent textComponent, boolean matchCase)
           
static java.lang.String formatRomanDigit(int level, int digit)
           
static java.lang.String formatRomanNumerals(int num)
           
static java.lang.String formatRomanNumerals(int level, int num)
          Converts the item number into a roman numeral
static int getAbsolutePositioningReferenceOffset_(javax.swing.text.View v)
           
static int getAbsolutePositioningReferenceOffset(javax.swing.text.View v)
           
static int getAbsolutePositioningReferenceOffset1(javax.swing.text.View v)
           
static int getAbsolutePositioningReferenceOffsetX_(javax.swing.text.View v)
           
static int getAbsolutePositioningReferenceOffsetX(javax.swing.text.View v)
           
static javax.swing.text.View getAbsolutePositioningReferenceParent(javax.swing.text.View v)
           
static int getAbsoluteX(javax.swing.text.View view)
           
static int getAbsoluteY(javax.swing.text.View view)
           
static java.lang.Object getAttributeValueFromString(javax.swing.text.AttributeSet attr, java.lang.String attributeName)
           
static int getBibiLevel(int pos, javax.swing.text.html.HTMLDocument doc)
           
static int getBibiLevel(int pos, javax.swing.JEditorPane editor)
           
static java.awt.Color getBorderColor(javax.swing.text.Element elem, javax.swing.text.AttributeSet attribs)
           
static java.lang.String getBorderStlyeValue(javax.swing.text.AttributeSet attribs, java.lang.Object attribute_class)
           
static java.awt.Stroke getBorderStroke(java.awt.Stroke stroke, float borderWidth, java.lang.String style)
           
static int getBorderThiknessValue(javax.swing.text.AttributeSet attribs, java.lang.Object attribute_class, javax.swing.text.Element elem)
           
static java.awt.Color getBottomBorderColor(javax.swing.text.Element elem, javax.swing.text.AttributeSet attribs)
           
static java.lang.String getBottomBorderStyle(javax.swing.text.AttributeSet attribs)
           
static int getBottomMargin(javax.swing.text.View view)
           
static int getBottomPadding(javax.swing.text.View view)
           
static java.awt.image.BufferedImage getBufferedImage(java.awt.Image img)
           
static int getCellBottomBorderSize(javax.swing.text.AttributeSet attribs, javax.swing.text.Element elem)
           
static int getCellLeftBorderSize(javax.swing.text.AttributeSet attribs, javax.swing.text.Element elem)
           
static int getCellRightBorderSize(javax.swing.text.AttributeSet attribs, javax.swing.text.Element elem)
           
static int getCellTopBorderSize(javax.swing.text.AttributeSet attribs, javax.swing.text.Element elem)
           
static java.awt.Color getColor(javax.swing.text.Element elem, javax.swing.text.AttributeSet attribs, java.lang.Object attribute_class)
           
static java.lang.Object getDefinedAttributeFromElement(javax.swing.text.Element element, java.lang.Object attribute)
           
static javax.swing.text.Element getElementForJavaFormItemComponent(javax.swing.JComponent component, HTMLBrowser htmlEditor)
           
static javax.swing.text.Element getElementForJavaFormItemComponent(javax.swing.JComponent component, javax.swing.JEditorPane htmlEditor)
           
static int getElementIndex(javax.swing.text.Element child)
           
static java.lang.String getElementString_(javax.swing.text.Element elem)
           
static java.lang.String getElementString(javax.swing.text.Element elem)
           
static java.lang.String getElementStringWithoutClass_(javax.swing.text.Element elem)
           
static java.lang.String getElementStringWithoutClass(javax.swing.text.Element elem)
           
static java.lang.String getElementStringWithoutClassAndID(javax.swing.text.Element elem)
           
static java.lang.String getElementStringWithoutClassAndWithoutAttributes(javax.swing.text.Element elem)
           
static java.lang.String getElementStringWithoutID(javax.swing.text.Element elem)
           
static javax.swing.text.View getGhostViewForTableElement(javax.swing.text.Element elem, javax.swing.JEditorPane container)
           
static javax.swing.text.View getGhostViewForTableElement(javax.swing.text.View rootView, javax.swing.text.Element elem)
           
static HTMLBrowser getHostHTMLEditor(java.awt.Container container)
           
static HTMLBrowser getHostHTMLEditor(javax.swing.text.View view)
           
static java.lang.Object getIgnoreCaseAttributeName(java.lang.String attrName, javax.swing.text.AttributeSet attr)
           
static javax.swing.text.View getImageViewForPoint(javax.swing.JEditorPane textComponent, int x, int y)
           
protected static javax.swing.text.View getImageViewForPoint(javax.swing.text.View rootView, int x, int y)
           
static int getIndexNthElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static boolean getIsNumberFromCSStringAPercent(java.lang.String value)
           
static javax.swing.JComponent getJavaFormItemComponent(sferyx.javascript.engine.DocumentElement elem, HTMLBrowser htmlEditor)
           
static javax.swing.JComponent getJavaFormItemComponent(sferyx.javascript.engine.DocumentElement elem, javax.swing.JEditorPane htmlEditor)
           
static javax.swing.JComponent getJavaFormItemComponent(javax.swing.text.Element elem, javax.swing.JEditorPane htmlEditor)
           
static java.lang.String getJVMVersion()
           
static java.awt.Color getLeftBorderColor(javax.swing.text.Element elem, javax.swing.text.AttributeSet attribs)
           
static java.lang.String getLeftBorderStyle(javax.swing.text.AttributeSet attribs)
           
static int getLeftMargin(javax.swing.text.View view)
           
static int getLeftPadding(javax.swing.text.View view)
           
static int getMargin(javax.swing.text.View view, java.lang.Object standardKey, java.lang.Object alternativeKey)
           
static javax.swing.text.AttributeSet getMarginValueFromComplexAtribute(javax.swing.text.AttributeSet viewAttribs)
           
static int getMaxVerticalSpan_(javax.swing.text.View v)
           
static int getMaxVerticalSpan(javax.swing.text.View v)
           
static int getNestedDivsDepth(int offset, EditorHTMLDocument htdoc)
           
static int getNestedTablesDepth(int offset, EditorHTMLDocument htdoc)
           
static javax.swing.text.View getNextBoxLayoutView(int index, javax.swing.text.View parent)
           
static javax.swing.text.Element getNextElementFromSameParent(javax.swing.text.Element child)
           
static javax.swing.text.View getNextLayoutView(int index, javax.swing.text.View parent)
           
static int getNthIndexLastElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static float getNumberFromCSString(java.lang.String value)
           
static int getPadding(javax.swing.text.View view, java.lang.Object standardKey, java.lang.Object alternativeKey)
           
static javax.swing.text.AttributeSet getPaddingValueFromComplexAtribute(javax.swing.text.AttributeSet viewAttribs)
           
static javax.swing.text.View getParentParagraph(javax.swing.text.View view)
           
static javax.swing.text.Element getPreviousElementFromSameParent(javax.swing.text.Element child)
           
static javax.swing.text.View getPreviousFloatView(int index, javax.swing.text.View parent)
           
static javax.swing.text.View getPreviousFloatView(javax.swing.text.View fromView)
           
static javax.swing.text.View getPreviousLayoutView(int index, javax.swing.text.View parent)
           
static javax.swing.text.View getPreviousLayoutView(javax.swing.text.View fromView)
           
static javax.swing.text.View getPreviousNonFloatView(int index, javax.swing.text.View parent)
           
static java.awt.Color getRightBorderColor(javax.swing.text.Element elem, javax.swing.text.AttributeSet attribs)
           
static java.lang.String getRightBorderStyle(javax.swing.text.AttributeSet attribs)
           
static int getRightMargin(javax.swing.text.View view)
           
static int getRightPadding(javax.swing.text.View view)
           
static int getScreenResolution()
           
static javax.swing.text.Element getSelectedTableElement(java.util.Vector selectedTableCells)
           
static int getSelectorScore(java.lang.String selector)
           
static java.lang.String getSelectorStringForElement_(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElement(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClass_(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClass(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClassAndID(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClassAndWithoutAttributes_(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClassAndWithoutAttributes(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClassForDirectParents_(javax.swing.text.Element elem)
           
static java.lang.String getSelectorStringForElementWithoutClassForDirectParents(javax.swing.text.Element elem)
           
static java.lang.String getStartTagString(javax.swing.text.Element elem)
           
static java.lang.String getStartTagStringWithoutAttribute(javax.swing.text.Element elem, java.lang.Object attrib)
           
static java.lang.String getStartTagStringWithoutSomeAttributes(javax.swing.text.Element elem, java.lang.Object[] skippedAttrbiutes)
           
static float getStyleSheetCSSHeightForElement(javax.swing.text.html.StyleSheet styleSheet, javax.swing.text.AttributeSet attributes)
           
static float getStyleSheetCSSHeightForView(javax.swing.text.html.StyleSheet styleSheet, javax.swing.text.View view)
           
static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.Element elem, javax.swing.text.html.CSS.Attribute attrib)
           
static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.Element elem, java.lang.String attrib)
           
static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.html.StyleSheet styleSheet, javax.swing.text.AttributeSet attribs, javax.swing.text.html.CSS.Attribute attrib)
           
static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.html.StyleSheet styleSheet, javax.swing.text.AttributeSet attribs, java.lang.String attrib)
           
static float getStyleSheetCSSWidthForElement(javax.swing.text.html.StyleSheet styleSheet, javax.swing.text.AttributeSet attributes)
           
static float getStyleSheetCSSWidthForView(javax.swing.text.html.StyleSheet styleSheet, javax.swing.text.View view)
           
static java.awt.Color getTopBorderColor(javax.swing.text.Element elem, javax.swing.text.AttributeSet attribs)
           
static java.lang.String getTopBorderStyle(javax.swing.text.AttributeSet attribs)
           
static int getTopMargin(javax.swing.text.View view)
           
static int getTopPadding(javax.swing.text.View view)
           
static int getTotalSpanBetween(int from, int to, javax.swing.text.View parent)
           
static java.lang.String getURLFromStyleDeclaration(java.lang.String declaration)
           
static javax.swing.text.View getViewForComponent(javax.swing.JComponent component, javax.swing.JEditorPane textComponent)
           
protected static javax.swing.text.View getViewForComponent(javax.swing.text.View rootView, javax.swing.JComponent component)
           
static javax.swing.text.View getViewForElement(javax.swing.text.Element elem, javax.swing.JEditorPane textComponent)
           
protected static javax.swing.text.View getViewForElement(javax.swing.text.View rootView, javax.swing.text.Element elem)
           
static int getX(javax.swing.text.View view)
           
static int getY(javax.swing.text.View view)
           
static int indexOfView(javax.swing.text.View v)
           
static void insertElementAtIndex(javax.swing.text.Element parent, javax.swing.text.Element child, int index)
           
static java.lang.String invertClassString(java.lang.String classString)
           
static boolean isAdditionStyleDefinition(java.lang.Object key)
           
static boolean isAttributeSetEmpty(javax.swing.text.AttributeSet attribs)
           
static boolean isBlockElement(javax.swing.text.Element elem)
           
static boolean isBold(javax.swing.text.AttributeSet attribs)
           
static boolean isClearBothView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isClearBothView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isClearLeftView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isClearLeftView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isClearRightView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isClearRightView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isContentBoxing(javax.swing.text.View view)
           
static boolean isDefinedAbsoluteX(javax.swing.text.View view)
           
static boolean isDefinedAbsoluteY(javax.swing.text.View view)
           
static boolean isDisplayLikeBlockView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isDisplayLikeBlockView(javax.swing.text.Element attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isDisplayLikeBlockView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isDisplayLikeFlexView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isDisplayLikeInlineView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isDisplayLikeInlineView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isFirstElementInParent(javax.swing.text.Element child)
           
static boolean isFirstElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static boolean isFixedPositioning(javax.swing.text.View view)
           
static boolean isFloatCenterView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isFloatCenterView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isFloatLeftView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isFloatLeftView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isFloatRightView(javax.swing.text.AttributeSet attribs, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isFloatRightView(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isItACommentView(javax.swing.text.View view)
           
static boolean isItAImageView(javax.swing.text.View view)
           
static boolean isItALeftImageView(javax.swing.text.View view)
           
static boolean isItalic(javax.swing.text.AttributeSet attribs)
           
static boolean isItARightImageView(javax.swing.text.View view)
           
static boolean isJustifiedTextAlignedView(javax.swing.text.View view)
           
static boolean isJVMOlder()
           
static boolean isLastElementInParent(javax.swing.text.Element child)
           
static boolean isLastElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static boolean isLayered(javax.swing.text.Element elem)
           
static boolean isLeftAlignedView(javax.swing.text.View view)
           
static boolean isLeftMarginAuto(javax.swing.text.View view)
           
static boolean isMac()
           
static boolean isNthElementInParent(javax.swing.text.Element child, int index)
           
static boolean isNthElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type, int index)
           
static boolean isNthEvenElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static boolean isNthEvenLastElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static boolean isNthLastElementInParent(javax.swing.text.Element child, int index)
           
static boolean isNthLastElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type, int index)
           
static boolean isNumeric(java.lang.String pad)
           
static boolean isOnlyElementOfType(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag type)
           
static boolean isOverflowHidden(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isOverflowVisible(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isOverflowXHidden(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean isParagraphElement(javax.swing.text.Element elem)
           
static boolean isRightAlignedView(javax.swing.text.View view)
           
static boolean isRightTextAlignedView(javax.swing.text.View view)
           
static boolean isRightToLeft(javax.swing.text.html.HTMLDocument doc)
           
static boolean isRightToLeft(javax.swing.JEditorPane editor)
           
static boolean isRightToLeft(javax.swing.text.View view)
           
static boolean isStrikeThrough(javax.swing.text.AttributeSet attribs)
           
static boolean isSubscript(javax.swing.text.AttributeSet attribs)
           
static boolean isSuperscript(javax.swing.text.AttributeSet attribs)
           
static boolean isUnderline(javax.swing.text.AttributeSet attribs)
           
static boolean isViewNotVisible(javax.swing.text.View view, javax.swing.text.html.StyleSheet styleSheet)
           
static boolean matchNameAttribute(javax.swing.text.AttributeSet attr, javax.swing.text.html.HTML.Tag tag)
           
static boolean matchNameAttribute(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag tag)
           
static javax.swing.text.AttributeSet mergeAttributeSets(javax.swing.text.MutableAttributeSet source, javax.swing.text.MutableAttributeSet target, javax.swing.text.html.StyleSheet styles, javax.swing.text.html.HTML.Tag tag)
           
static void paintViewBorder_(javax.swing.text.View cellView, java.awt.Rectangle childRect_, java.awt.Graphics g)
           
static void paintViewBorder(javax.swing.text.View cellView, java.awt.Rectangle childRect, java.awt.Graphics g)
           
static java.lang.String printAttributeSet(javax.swing.text.AttributeSet as)
           
static void printStringArray(java.lang.String[] array)
           
static void processAdditionalCSSDirectives(java.lang.String rule, javax.swing.text.html.StyleSheet styles, int width)
           
static void processAsteriscDirective(java.lang.String rule, javax.swing.text.html.StyleSheet styles)
           
static void propagateScaledDPIComponents_(java.awt.Container parentComponent)
           
static void propagateScaledDPIComponents(java.awt.Container parentComponent)
           
static java.lang.String purgeOuterBody(java.lang.String sourceText)
           
static java.lang.String purgeOuterDivs(java.lang.String content, int startoffset, int endoffset, EditorHTMLDocument htdoc)
           
static java.lang.String purgeOuterTables(java.lang.String content, int offset, EditorHTMLDocument htdoc)
           
static void removeCellElement(javax.swing.text.Element parent, javax.swing.text.Element child)
           
static void removeElement(javax.swing.text.Element parent, javax.swing.text.Element child)
           
static void removeElements(javax.swing.text.Element e, int index, int count)
           
static void removeElements(javax.swing.text.Element e, int index, int count, int start, int end)
           
static void removeEqualAttributes(javax.swing.text.MutableAttributeSet from, javax.swing.text.AttributeSet removeSet)
           
static void removeListElements(javax.swing.text.Element parent, int startIndex, int count)
           
static java.lang.String replaceAll(java.lang.String content, java.lang.String toReplace, java.lang.String replaceWith)
          Generic helper utility for replacing strings
static java.lang.String replaceAllBlockCommentOccurances(java.lang.String content, java.lang.String replaceWith)
           
static java.lang.String replaceAllIfFollows(java.lang.String content, java.lang.String toReplace, java.lang.String replaceWith, java.lang.String[] ifFollows)
           
static java.lang.String replaceAllIfNotFollows(java.lang.String content, java.lang.String toReplace, java.lang.String replaceWith, java.lang.String ifNotFollows)
          Generic helper utility for replacing strings - ifNotFollows parameter indicates what condition should be valid to replace the searched string.
static java.lang.String replaceAllIgnoreCase(java.lang.String content, java.lang.String toReplace, java.lang.String replaceWith)
           
static java.lang.StringBuffer replaceAllST(java.lang.StringBuffer content, java.lang.String[] toReplace, java.lang.String replaceWith, java.lang.String delimiters)
           
static java.lang.String replaceAllStartTagOccurances(java.lang.String content, java.lang.String toReplace, java.lang.String replaceWith)
           
static java.lang.StringBuffer replaceAllSTIgnoreCase(java.lang.StringBuffer content, java.lang.String[] toReplace, java.lang.String replaceWith, java.lang.String delimiters)
           
static javax.swing.text.AttributeSet searchForAdditionalStyleDefinitions(java.lang.String styleClass, javax.swing.text.html.StyleSheet styleSheet)
           
static java.lang.String trimLeft(java.lang.String string)
           
static java.lang.String trimRight(java.lang.String string)
           
static java.lang.String writeEntireElementContent(javax.swing.text.Element elem, int start, int end)
           
static java.lang.String writeInternalElementContent(javax.swing.text.Element elem)
           
static java.lang.String writeInternalElementContent(javax.swing.text.Element elem, int start, int end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hidpiScale

public static float hidpiScale

transparentColor

public static java.awt.Color transparentColor

realTransparentColor

public static java.awt.Color realTransparentColor
Constructor Detail

SferyxUtilities

public SferyxUtilities()
Creates a new instance of SferyxUtilities

Method Detail

getJVMVersion

public static java.lang.String getJVMVersion()

isMac

public static boolean isMac()

isJVMOlder

public static boolean isJVMOlder()

findNextOccuranceAndRepalce

public static void findNextOccuranceAndRepalce(java.lang.String word,
                                               java.lang.String replacement,
                                               javax.swing.text.JTextComponent textComponent,
                                               boolean matchCase)

isBlockElement

public static boolean isBlockElement(javax.swing.text.Element elem)

isParagraphElement

public static boolean isParagraphElement(javax.swing.text.Element elem)

printAttributeSet

public static java.lang.String printAttributeSet(javax.swing.text.AttributeSet as)

getViewForElement

public static javax.swing.text.View getViewForElement(javax.swing.text.Element elem,
                                                      javax.swing.JEditorPane textComponent)

getViewForElement

protected static javax.swing.text.View getViewForElement(javax.swing.text.View rootView,
                                                         javax.swing.text.Element elem)

isDisplayLikeInlineView

public static boolean isDisplayLikeInlineView(javax.swing.text.View view,
                                              javax.swing.text.html.StyleSheet styleSheet)

isDisplayLikeInlineView

public static boolean isDisplayLikeInlineView(javax.swing.text.AttributeSet attribs,
                                              javax.swing.text.html.StyleSheet styleSheet)

isDisplayLikeFlexView

public static boolean isDisplayLikeFlexView(javax.swing.text.AttributeSet attribs,
                                            javax.swing.text.html.StyleSheet styleSheet)

isItAImageView

public static boolean isItAImageView(javax.swing.text.View view)

isFloatCenterView

public static boolean isFloatCenterView(javax.swing.text.AttributeSet attribs,
                                        javax.swing.text.html.StyleSheet styleSheet)

isContentBoxing

public static boolean isContentBoxing(javax.swing.text.View view)

isViewNotVisible

public static boolean isViewNotVisible(javax.swing.text.View view,
                                       javax.swing.text.html.StyleSheet styleSheet)

isOverflowXHidden

public static boolean isOverflowXHidden(javax.swing.text.View view,
                                        javax.swing.text.html.StyleSheet styleSheet)

isOverflowHidden

public static boolean isOverflowHidden(javax.swing.text.View view,
                                       javax.swing.text.html.StyleSheet styleSheet)

isOverflowVisible

public static boolean isOverflowVisible(javax.swing.text.View view,
                                        javax.swing.text.html.StyleSheet styleSheet)

isClearLeftView

public static boolean isClearLeftView(javax.swing.text.View view,
                                      javax.swing.text.html.StyleSheet styleSheet)

isClearRightView

public static boolean isClearRightView(javax.swing.text.View view,
                                       javax.swing.text.html.StyleSheet styleSheet)

isClearBothView

public static boolean isClearBothView(javax.swing.text.View view,
                                      javax.swing.text.html.StyleSheet styleSheet)

isClearLeftView

public static boolean isClearLeftView(javax.swing.text.AttributeSet attribs,
                                      javax.swing.text.html.StyleSheet styleSheet)

isAttributeSetEmpty

public static boolean isAttributeSetEmpty(javax.swing.text.AttributeSet attribs)

isClearRightView

public static boolean isClearRightView(javax.swing.text.AttributeSet attribs,
                                       javax.swing.text.html.StyleSheet styleSheet)

isClearBothView

public static boolean isClearBothView(javax.swing.text.AttributeSet attribs,
                                      javax.swing.text.html.StyleSheet styleSheet)

isFloatLeftView

public static boolean isFloatLeftView(javax.swing.text.View view,
                                      javax.swing.text.html.StyleSheet styleSheet)

isFloatRightView

public static boolean isFloatRightView(javax.swing.text.View view,
                                       javax.swing.text.html.StyleSheet styleSheet)

isFloatCenterView

public static boolean isFloatCenterView(javax.swing.text.View view,
                                        javax.swing.text.html.StyleSheet styleSheet)

isFloatLeftView

public static boolean isFloatLeftView(javax.swing.text.AttributeSet attribs,
                                      javax.swing.text.html.StyleSheet styleSheet)

isFloatRightView

public static boolean isFloatRightView(javax.swing.text.AttributeSet attribs,
                                       javax.swing.text.html.StyleSheet styleSheet)

isDisplayLikeBlockView

public static boolean isDisplayLikeBlockView(javax.swing.text.View view,
                                             javax.swing.text.html.StyleSheet styleSheet)

isDisplayLikeBlockView

public static boolean isDisplayLikeBlockView(javax.swing.text.AttributeSet attribs,
                                             javax.swing.text.html.StyleSheet styleSheet)

isDisplayLikeBlockView

public static boolean isDisplayLikeBlockView(javax.swing.text.Element attribs,
                                             javax.swing.text.html.StyleSheet styleSheet)

isBold

public static boolean isBold(javax.swing.text.AttributeSet attribs)

isItalic

public static boolean isItalic(javax.swing.text.AttributeSet attribs)

isUnderline

public static boolean isUnderline(javax.swing.text.AttributeSet attribs)

isStrikeThrough

public static boolean isStrikeThrough(javax.swing.text.AttributeSet attribs)

isSuperscript

public static boolean isSuperscript(javax.swing.text.AttributeSet attribs)

isSubscript

public static boolean isSubscript(javax.swing.text.AttributeSet attribs)

getJavaFormItemComponent

public static javax.swing.JComponent getJavaFormItemComponent(sferyx.javascript.engine.DocumentElement elem,
                                                              HTMLBrowser htmlEditor)

getJavaFormItemComponent

public static javax.swing.JComponent getJavaFormItemComponent(sferyx.javascript.engine.DocumentElement elem,
                                                              javax.swing.JEditorPane htmlEditor)

getJavaFormItemComponent

public static javax.swing.JComponent getJavaFormItemComponent(javax.swing.text.Element elem,
                                                              javax.swing.JEditorPane htmlEditor)

getElementForJavaFormItemComponent

public static javax.swing.text.Element getElementForJavaFormItemComponent(javax.swing.JComponent component,
                                                                          HTMLBrowser htmlEditor)

getElementForJavaFormItemComponent

public static javax.swing.text.Element getElementForJavaFormItemComponent(javax.swing.JComponent component,
                                                                          javax.swing.JEditorPane htmlEditor)

getImageViewForPoint

public static javax.swing.text.View getImageViewForPoint(javax.swing.JEditorPane textComponent,
                                                         int x,
                                                         int y)

getImageViewForPoint

protected static javax.swing.text.View getImageViewForPoint(javax.swing.text.View rootView,
                                                            int x,
                                                            int y)

getViewForComponent

public static javax.swing.text.View getViewForComponent(javax.swing.JComponent component,
                                                        javax.swing.JEditorPane textComponent)

getViewForComponent

protected static javax.swing.text.View getViewForComponent(javax.swing.text.View rootView,
                                                           javax.swing.JComponent component)

getHostHTMLEditor

public static HTMLBrowser getHostHTMLEditor(java.awt.Container container)

getHostHTMLEditor

public static HTMLBrowser getHostHTMLEditor(javax.swing.text.View view)

replaceAllIfNotFollows

public static java.lang.String replaceAllIfNotFollows(java.lang.String content,
                                                      java.lang.String toReplace,
                                                      java.lang.String replaceWith,
                                                      java.lang.String ifNotFollows)
Generic helper utility for replacing strings - ifNotFollows parameter indicates what condition should be valid to replace the searched string. Example for this is the following expression: replaceAllIfNotFollows("someText & someOtherText", "&", "&", "amp;") In this case "&" will be replced with "&" since after the "&" there is no "amp;" replaceAllIfNotFollows("someText & someOtherText", "&", "&", "amp;") "&" will not be replaced since there follows "amp;" and thus will be skipped


replaceAllIfFollows

public static java.lang.String replaceAllIfFollows(java.lang.String content,
                                                   java.lang.String toReplace,
                                                   java.lang.String replaceWith,
                                                   java.lang.String[] ifFollows)

replaceAllST

public static java.lang.StringBuffer replaceAllST(java.lang.StringBuffer content,
                                                  java.lang.String[] toReplace,
                                                  java.lang.String replaceWith,
                                                  java.lang.String delimiters)

replaceAllSTIgnoreCase

public static java.lang.StringBuffer replaceAllSTIgnoreCase(java.lang.StringBuffer content,
                                                            java.lang.String[] toReplace,
                                                            java.lang.String replaceWith,
                                                            java.lang.String delimiters)

replaceAll

public static java.lang.String replaceAll(java.lang.String content,
                                          java.lang.String toReplace,
                                          java.lang.String replaceWith)
Generic helper utility for replacing strings


replaceAllIgnoreCase

public static java.lang.String replaceAllIgnoreCase(java.lang.String content,
                                                    java.lang.String toReplace,
                                                    java.lang.String replaceWith)

replaceAllBlockCommentOccurances

public static java.lang.String replaceAllBlockCommentOccurances(java.lang.String content,
                                                                java.lang.String replaceWith)

replaceAllStartTagOccurances

public static java.lang.String replaceAllStartTagOccurances(java.lang.String content,
                                                            java.lang.String toReplace,
                                                            java.lang.String replaceWith)

convertFromXHTMLtoHTML

public static java.lang.String convertFromXHTMLtoHTML(java.lang.String line)

dumpDocumentElement

public static java.lang.String dumpDocumentElement(javax.swing.text.Element elem)

isLayered

public static boolean isLayered(javax.swing.text.Element elem)

printStringArray

public static void printStringArray(java.lang.String[] array)

isRightToLeft

public static boolean isRightToLeft(javax.swing.text.View view)

isRightToLeft

public static boolean isRightToLeft(javax.swing.JEditorPane editor)

isRightToLeft

public static boolean isRightToLeft(javax.swing.text.html.HTMLDocument doc)

getBibiLevel

public static int getBibiLevel(int pos,
                               javax.swing.text.html.HTMLDocument doc)

getBibiLevel

public static int getBibiLevel(int pos,
                               javax.swing.JEditorPane editor)

isLeftAlignedView

public static boolean isLeftAlignedView(javax.swing.text.View view)

isRightTextAlignedView

public static boolean isRightTextAlignedView(javax.swing.text.View view)

isJustifiedTextAlignedView

public static boolean isJustifiedTextAlignedView(javax.swing.text.View view)

isRightAlignedView

public static boolean isRightAlignedView(javax.swing.text.View view)

isItARightImageView

public static boolean isItARightImageView(javax.swing.text.View view)

isItALeftImageView

public static boolean isItALeftImageView(javax.swing.text.View view)

isItACommentView

public static boolean isItACommentView(javax.swing.text.View view)

matchNameAttribute

public static boolean matchNameAttribute(javax.swing.text.Element elem,
                                         javax.swing.text.html.HTML.Tag tag)

matchNameAttribute

public static boolean matchNameAttribute(javax.swing.text.AttributeSet attr,
                                         javax.swing.text.html.HTML.Tag tag)

writeEntireElementContent

public static java.lang.String writeEntireElementContent(javax.swing.text.Element elem,
                                                         int start,
                                                         int end)

writeInternalElementContent

public static java.lang.String writeInternalElementContent(javax.swing.text.Element elem,
                                                           int start,
                                                           int end)

formatRomanNumerals

public static java.lang.String formatRomanNumerals(int num)

formatRomanNumerals

public static java.lang.String formatRomanNumerals(int level,
                                                   int num)
Converts the item number into a roman numeral

Parameters:
num - number to format

formatRomanDigit

public static java.lang.String formatRomanDigit(int level,
                                                int digit)

encodeQuotedPrintable

public static final java.lang.String encodeQuotedPrintable(java.lang.String data)

encodeBase64

public static java.lang.String encodeBase64(byte[] buf)
Translates the specified byte array into Base64 string.

Parameters:
buf - the byte array (not null)
Returns:
the translated Base64 string (not null)

decodeBase64

public static byte[] decodeBase64(java.lang.String s)
Translates the specified Base64 string into a byte array.

Parameters:
s - the Base64 string (not null)
Returns:
the byte array (not null)

dumpElementContent

public static java.lang.String dumpElementContent(javax.swing.text.Element elem,
                                                  int start,
                                                  int length)

propagateScaledDPIComponents

public static void propagateScaledDPIComponents(java.awt.Container parentComponent)

propagateScaledDPIComponents_

public static void propagateScaledDPIComponents_(java.awt.Container parentComponent)

writeInternalElementContent

public static java.lang.String writeInternalElementContent(javax.swing.text.Element elem)

dumpElementContent

public static java.lang.String dumpElementContent(javax.swing.text.Element elem)

insertElementAtIndex

public static void insertElementAtIndex(javax.swing.text.Element parent,
                                        javax.swing.text.Element child,
                                        int index)

removeElement

public static void removeElement(javax.swing.text.Element parent,
                                 javax.swing.text.Element child)

removeCellElement

public static void removeCellElement(javax.swing.text.Element parent,
                                     javax.swing.text.Element child)

getPreviousLayoutView

public static javax.swing.text.View getPreviousLayoutView(javax.swing.text.View fromView)

getPreviousLayoutView

public static javax.swing.text.View getPreviousLayoutView(int index,
                                                          javax.swing.text.View parent)

getTotalSpanBetween

public static int getTotalSpanBetween(int from,
                                      int to,
                                      javax.swing.text.View parent)

getPreviousFloatView

public static javax.swing.text.View getPreviousFloatView(javax.swing.text.View fromView)

getPreviousFloatView

public static javax.swing.text.View getPreviousFloatView(int index,
                                                         javax.swing.text.View parent)

getPreviousNonFloatView

public static javax.swing.text.View getPreviousNonFloatView(int index,
                                                            javax.swing.text.View parent)

getNextBoxLayoutView

public static javax.swing.text.View getNextBoxLayoutView(int index,
                                                         javax.swing.text.View parent)

getMaxVerticalSpan

public static int getMaxVerticalSpan(javax.swing.text.View v)

getMaxVerticalSpan_

public static int getMaxVerticalSpan_(javax.swing.text.View v)

getNextLayoutView

public static javax.swing.text.View getNextLayoutView(int index,
                                                      javax.swing.text.View parent)

getPreviousElementFromSameParent

public static javax.swing.text.Element getPreviousElementFromSameParent(javax.swing.text.Element child)

getNextElementFromSameParent

public static javax.swing.text.Element getNextElementFromSameParent(javax.swing.text.Element child)

isNthLastElementInParent

public static boolean isNthLastElementInParent(javax.swing.text.Element child,
                                               int index)

isLastElementInParent

public static boolean isLastElementInParent(javax.swing.text.Element child)

isFirstElementInParent

public static boolean isFirstElementInParent(javax.swing.text.Element child)

isNthElementInParent

public static boolean isNthElementInParent(javax.swing.text.Element child,
                                           int index)

getDefinedAttributeFromElement

public static java.lang.Object getDefinedAttributeFromElement(javax.swing.text.Element element,
                                                              java.lang.Object attribute)

containsTagAttributeFromElement

public static boolean containsTagAttributeFromElement(javax.swing.text.Element element)

getElementIndex

public static int getElementIndex(javax.swing.text.Element child)

isLastElementOfType

public static boolean isLastElementOfType(javax.swing.text.Element elem,
                                          javax.swing.text.html.HTML.Tag type)

isNthLastElementOfType

public static boolean isNthLastElementOfType(javax.swing.text.Element elem,
                                             javax.swing.text.html.HTML.Tag type,
                                             int index)

isNthEvenLastElementOfType

public static boolean isNthEvenLastElementOfType(javax.swing.text.Element elem,
                                                 javax.swing.text.html.HTML.Tag type)

getIndexNthElementOfType

public static int getIndexNthElementOfType(javax.swing.text.Element elem,
                                           javax.swing.text.html.HTML.Tag type)

getNthIndexLastElementOfType

public static int getNthIndexLastElementOfType(javax.swing.text.Element elem,
                                               javax.swing.text.html.HTML.Tag type)

isNthElementOfType

public static boolean isNthElementOfType(javax.swing.text.Element elem,
                                         javax.swing.text.html.HTML.Tag type,
                                         int index)

isNthEvenElementOfType

public static boolean isNthEvenElementOfType(javax.swing.text.Element elem,
                                             javax.swing.text.html.HTML.Tag type)

isOnlyElementOfType

public static boolean isOnlyElementOfType(javax.swing.text.Element elem,
                                          javax.swing.text.html.HTML.Tag type)

isFirstElementOfType

public static boolean isFirstElementOfType(javax.swing.text.Element elem,
                                           javax.swing.text.html.HTML.Tag type)

removeListElements

public static void removeListElements(javax.swing.text.Element parent,
                                      int startIndex,
                                      int count)
                               throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

removeElements

public static void removeElements(javax.swing.text.Element e,
                                  int index,
                                  int count)
                           throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

removeElements

public static void removeElements(javax.swing.text.Element e,
                                  int index,
                                  int count,
                                  int start,
                                  int end)
                           throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

indexOfView

public static int indexOfView(javax.swing.text.View v)

getIgnoreCaseAttributeName

public static java.lang.Object getIgnoreCaseAttributeName(java.lang.String attrName,
                                                          javax.swing.text.AttributeSet attr)

trimLeft

public static java.lang.String trimLeft(java.lang.String string)

searchForAdditionalStyleDefinitions

public static javax.swing.text.AttributeSet searchForAdditionalStyleDefinitions(java.lang.String styleClass,
                                                                                javax.swing.text.html.StyleSheet styleSheet)

getStyleSheetCSSWidthForElement

public static float getStyleSheetCSSWidthForElement(javax.swing.text.html.StyleSheet styleSheet,
                                                    javax.swing.text.AttributeSet attributes)

getStyleSheetCSSWidthForView

public static float getStyleSheetCSSWidthForView(javax.swing.text.html.StyleSheet styleSheet,
                                                 javax.swing.text.View view)

getBufferedImage

public static java.awt.image.BufferedImage getBufferedImage(java.awt.Image img)

getAttributeValueFromString

public static java.lang.Object getAttributeValueFromString(javax.swing.text.AttributeSet attr,
                                                           java.lang.String attributeName)

getStyleSheetCSSHeightForView

public static float getStyleSheetCSSHeightForView(javax.swing.text.html.StyleSheet styleSheet,
                                                  javax.swing.text.View view)

getStyleSheetCSSHeightForElement

public static float getStyleSheetCSSHeightForElement(javax.swing.text.html.StyleSheet styleSheet,
                                                     javax.swing.text.AttributeSet attributes)

getIsNumberFromCSStringAPercent

public static boolean getIsNumberFromCSStringAPercent(java.lang.String value)

getScreenResolution

public static int getScreenResolution()

getNumberFromCSString

public static float getNumberFromCSString(java.lang.String value)

colorToString

public static java.lang.String colorToString(java.awt.Color color)

convertEmValue

public static float convertEmValue(java.lang.String nextToken)

getStyleSheetCSSValueForElement

public static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.html.StyleSheet styleSheet,
                                                               javax.swing.text.AttributeSet attribs,
                                                               java.lang.String attrib)

getStyleSheetCSSValueForElement

public static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.html.StyleSheet styleSheet,
                                                               javax.swing.text.AttributeSet attribs,
                                                               javax.swing.text.html.CSS.Attribute attrib)

getStyleSheetCSSValueForElement

public static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.Element elem,
                                                               javax.swing.text.html.CSS.Attribute attrib)

getStyleSheetCSSValueForElement

public static java.lang.Object getStyleSheetCSSValueForElement(javax.swing.text.Element elem,
                                                               java.lang.String attrib)

convertSelectedCellsToList

public static void convertSelectedCellsToList(HTMLBrowser htmlEditor,
                                              javax.swing.JEditorPane html,
                                              java.lang.String tag)

trimRight

public static java.lang.String trimRight(java.lang.String string)

getGhostViewForTableElement

public static javax.swing.text.View getGhostViewForTableElement(javax.swing.text.Element elem,
                                                                javax.swing.JEditorPane container)

getGhostViewForTableElement

public static javax.swing.text.View getGhostViewForTableElement(javax.swing.text.View rootView,
                                                                javax.swing.text.Element elem)

paintViewBorder

public static void paintViewBorder(javax.swing.text.View cellView,
                                   java.awt.Rectangle childRect,
                                   java.awt.Graphics g)

paintViewBorder_

public static void paintViewBorder_(javax.swing.text.View cellView,
                                    java.awt.Rectangle childRect_,
                                    java.awt.Graphics g)

isNumeric

public static boolean isNumeric(java.lang.String pad)

decodeCSSChildFunction

public static boolean decodeCSSChildFunction(java.lang.String funct,
                                             int elementIndex)

getBorderStroke

public static java.awt.Stroke getBorderStroke(java.awt.Stroke stroke,
                                              float borderWidth,
                                              java.lang.String style)

getBorderColor

public static java.awt.Color getBorderColor(javax.swing.text.Element elem,
                                            javax.swing.text.AttributeSet attribs)

getTopBorderColor

public static java.awt.Color getTopBorderColor(javax.swing.text.Element elem,
                                               javax.swing.text.AttributeSet attribs)

getBottomBorderColor

public static java.awt.Color getBottomBorderColor(javax.swing.text.Element elem,
                                                  javax.swing.text.AttributeSet attribs)

getRightBorderColor

public static java.awt.Color getRightBorderColor(javax.swing.text.Element elem,
                                                 javax.swing.text.AttributeSet attribs)

getLeftBorderColor

public static java.awt.Color getLeftBorderColor(javax.swing.text.Element elem,
                                                javax.swing.text.AttributeSet attribs)

getColor

public static java.awt.Color getColor(javax.swing.text.Element elem,
                                      javax.swing.text.AttributeSet attribs,
                                      java.lang.Object attribute_class)

getTopBorderStyle

public static java.lang.String getTopBorderStyle(javax.swing.text.AttributeSet attribs)

getBottomBorderStyle

public static java.lang.String getBottomBorderStyle(javax.swing.text.AttributeSet attribs)

getLeftBorderStyle

public static java.lang.String getLeftBorderStyle(javax.swing.text.AttributeSet attribs)

getRightBorderStyle

public static java.lang.String getRightBorderStyle(javax.swing.text.AttributeSet attribs)

getBorderStlyeValue

public static java.lang.String getBorderStlyeValue(javax.swing.text.AttributeSet attribs,
                                                   java.lang.Object attribute_class)

getCellTopBorderSize

public static int getCellTopBorderSize(javax.swing.text.AttributeSet attribs,
                                       javax.swing.text.Element elem)

getCellRightBorderSize

public static int getCellRightBorderSize(javax.swing.text.AttributeSet attribs,
                                         javax.swing.text.Element elem)

getCellLeftBorderSize

public static int getCellLeftBorderSize(javax.swing.text.AttributeSet attribs,
                                        javax.swing.text.Element elem)

getBorderThiknessValue

public static int getBorderThiknessValue(javax.swing.text.AttributeSet attribs,
                                         java.lang.Object attribute_class,
                                         javax.swing.text.Element elem)

getCellBottomBorderSize

public static int getCellBottomBorderSize(javax.swing.text.AttributeSet attribs,
                                          javax.swing.text.Element elem)

getURLFromStyleDeclaration

public static java.lang.String getURLFromStyleDeclaration(java.lang.String declaration)

convertStyleDeclarationtoURL

public static java.lang.String convertStyleDeclarationtoURL(java.lang.String declaration)

getSelectedTableElement

public static javax.swing.text.Element getSelectedTableElement(java.util.Vector selectedTableCells)

dumpSelectedTableCells

public static java.lang.String dumpSelectedTableCells(java.util.Vector selectedTableCells)

getStartTagStringWithoutAttribute

public static java.lang.String getStartTagStringWithoutAttribute(javax.swing.text.Element elem,
                                                                 java.lang.Object attrib)

getStartTagString

public static java.lang.String getStartTagString(javax.swing.text.Element elem)

getStartTagStringWithoutSomeAttributes

public static java.lang.String getStartTagStringWithoutSomeAttributes(javax.swing.text.Element elem,
                                                                      java.lang.Object[] skippedAttrbiutes)

getNestedTablesDepth

public static int getNestedTablesDepth(int offset,
                                       EditorHTMLDocument htdoc)

getAbsolutePositioningReferenceOffsetX

public static int getAbsolutePositioningReferenceOffsetX(javax.swing.text.View v)

getAbsolutePositioningReferenceOffsetX_

public static int getAbsolutePositioningReferenceOffsetX_(javax.swing.text.View v)

getAbsolutePositioningReferenceOffset1

public static int getAbsolutePositioningReferenceOffset1(javax.swing.text.View v)

getAbsolutePositioningReferenceOffset

public static int getAbsolutePositioningReferenceOffset(javax.swing.text.View v)

getAbsolutePositioningReferenceOffset_

public static int getAbsolutePositioningReferenceOffset_(javax.swing.text.View v)

getX

public static int getX(javax.swing.text.View view)

getY

public static int getY(javax.swing.text.View view)

isDefinedAbsoluteX

public static boolean isDefinedAbsoluteX(javax.swing.text.View view)

isDefinedAbsoluteY

public static boolean isDefinedAbsoluteY(javax.swing.text.View view)

getAbsoluteX

public static int getAbsoluteX(javax.swing.text.View view)

isFixedPositioning

public static boolean isFixedPositioning(javax.swing.text.View view)

getAbsoluteY

public static int getAbsoluteY(javax.swing.text.View view)

isLeftMarginAuto

public static boolean isLeftMarginAuto(javax.swing.text.View view)

getLeftMargin

public static int getLeftMargin(javax.swing.text.View view)

getRightMargin

public static int getRightMargin(javax.swing.text.View view)

getTopMargin

public static int getTopMargin(javax.swing.text.View view)

getBottomMargin

public static int getBottomMargin(javax.swing.text.View view)

getMargin

public static int getMargin(javax.swing.text.View view,
                            java.lang.Object standardKey,
                            java.lang.Object alternativeKey)

getMarginValueFromComplexAtribute

public static javax.swing.text.AttributeSet getMarginValueFromComplexAtribute(javax.swing.text.AttributeSet viewAttribs)

getLeftPadding

public static int getLeftPadding(javax.swing.text.View view)

getRightPadding

public static int getRightPadding(javax.swing.text.View view)

getTopPadding

public static int getTopPadding(javax.swing.text.View view)

getBottomPadding

public static int getBottomPadding(javax.swing.text.View view)

getPadding

public static int getPadding(javax.swing.text.View view,
                             java.lang.Object standardKey,
                             java.lang.Object alternativeKey)

getPaddingValueFromComplexAtribute

public static javax.swing.text.AttributeSet getPaddingValueFromComplexAtribute(javax.swing.text.AttributeSet viewAttribs)

getParentParagraph

public static javax.swing.text.View getParentParagraph(javax.swing.text.View view)

getAbsolutePositioningReferenceParent

public static javax.swing.text.View getAbsolutePositioningReferenceParent(javax.swing.text.View v)

getNestedDivsDepth

public static int getNestedDivsDepth(int offset,
                                     EditorHTMLDocument htdoc)

invertClassString

public static java.lang.String invertClassString(java.lang.String classString)

getElementString

public static java.lang.String getElementString(javax.swing.text.Element elem)

getElementString_

public static java.lang.String getElementString_(javax.swing.text.Element elem)

getSelectorStringForElement

public static java.lang.String getSelectorStringForElement(javax.swing.text.Element elem)

getSelectorStringForElement_

public static java.lang.String getSelectorStringForElement_(javax.swing.text.Element elem)

removeEqualAttributes

public static void removeEqualAttributes(javax.swing.text.MutableAttributeSet from,
                                         javax.swing.text.AttributeSet removeSet)

getSelectorScore

public static int getSelectorScore(java.lang.String selector)

getElementStringWithoutClass

public static java.lang.String getElementStringWithoutClass(javax.swing.text.Element elem)

getElementStringWithoutClass_

public static java.lang.String getElementStringWithoutClass_(javax.swing.text.Element elem)

getElementStringWithoutClassAndWithoutAttributes

public static java.lang.String getElementStringWithoutClassAndWithoutAttributes(javax.swing.text.Element elem)

getSelectorStringForElementWithoutClassForDirectParents

public static java.lang.String getSelectorStringForElementWithoutClassForDirectParents(javax.swing.text.Element elem)

getSelectorStringForElementWithoutClassForDirectParents_

public static java.lang.String getSelectorStringForElementWithoutClassForDirectParents_(javax.swing.text.Element elem)

getSelectorStringForElementWithoutClass

public static java.lang.String getSelectorStringForElementWithoutClass(javax.swing.text.Element elem)

getSelectorStringForElementWithoutClass_

public static java.lang.String getSelectorStringForElementWithoutClass_(javax.swing.text.Element elem)

addAllAttributesForSelector

public static java.lang.String addAllAttributesForSelector(javax.swing.text.Element elem,
                                                           javax.swing.text.html.StyleSheet ss,
                                                           javax.swing.text.MutableAttributeSet sas)

getSelectorStringForElementWithoutClassAndWithoutAttributes

public static java.lang.String getSelectorStringForElementWithoutClassAndWithoutAttributes(javax.swing.text.Element elem)

getSelectorStringForElementWithoutClassAndWithoutAttributes_

public static java.lang.String getSelectorStringForElementWithoutClassAndWithoutAttributes_(javax.swing.text.Element elem)

getElementStringWithoutID

public static java.lang.String getElementStringWithoutID(javax.swing.text.Element elem)

getElementStringWithoutClassAndID

public static java.lang.String getElementStringWithoutClassAndID(javax.swing.text.Element elem)

getSelectorStringForElementWithoutClassAndID

public static java.lang.String getSelectorStringForElementWithoutClassAndID(javax.swing.text.Element elem)

purgeOuterBody

public static java.lang.String purgeOuterBody(java.lang.String sourceText)

purgeOuterTables

public static java.lang.String purgeOuterTables(java.lang.String content,
                                                int offset,
                                                EditorHTMLDocument htdoc)

isAdditionStyleDefinition

public static boolean isAdditionStyleDefinition(java.lang.Object key)

processAdditionalCSSDirectives

public static void processAdditionalCSSDirectives(java.lang.String rule,
                                                  javax.swing.text.html.StyleSheet styles,
                                                  int width)

processAsteriscDirective

public static void processAsteriscDirective(java.lang.String rule,
                                            javax.swing.text.html.StyleSheet styles)

mergeAttributeSets

public static javax.swing.text.AttributeSet mergeAttributeSets(javax.swing.text.MutableAttributeSet source,
                                                               javax.swing.text.MutableAttributeSet target,
                                                               javax.swing.text.html.StyleSheet styles,
                                                               javax.swing.text.html.HTML.Tag tag)

purgeOuterDivs

public static java.lang.String purgeOuterDivs(java.lang.String content,
                                              int startoffset,
                                              int endoffset,
                                              EditorHTMLDocument htdoc)