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