sferyx.administration.renderers
Class CustomInlineView
java.lang.Object
javax.swing.text.View
javax.swing.text.GlyphView
javax.swing.text.LabelView
sferyx.administration.renderers.CustomInlineView
- All Implemented Interfaces:
- java.lang.Cloneable, javax.swing.SwingConstants, javax.swing.text.TabableView, CSSLayoutViews
public class CustomInlineView
- extends javax.swing.text.LabelView
- implements CSSLayoutViews
Used for rendering of inline tags
Nested classes/interfaces inherited from class javax.swing.text.GlyphView |
javax.swing.text.GlyphView.GlyphPainter |
Fields inherited from class javax.swing.text.View |
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Method Summary |
javax.swing.text.View |
breakView(int axis,
int p0,
float pos,
float len)
|
javax.swing.text.View |
breakView1(int axis,
int p0,
float pos,
float len)
|
void |
changedUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
|
protected void |
checkPainter()
|
int |
getAbsoluteX()
|
int |
getAbsoluteY()
|
javax.swing.text.AttributeSet |
getAttributes()
|
javax.swing.text.AttributeSet |
getAttributes1()
|
java.awt.Color |
getBackground()
|
int |
getBottomMargin()
|
int |
getBottomPadding()
|
int |
getBreakWeight(int axis,
float pos,
float len)
|
java.awt.Font |
getFont()
|
java.awt.Color |
getForeground()
|
float |
getHeightCSSValue()
|
int |
getLeftMargin()
|
int |
getLeftPadding()
|
int |
getLeftRightBorderInset()
|
float |
getMaximumSpan(int axis)
|
float |
getMinimumSpan(int axis)
|
float |
getMinimumSpanQuick(int axis)
|
float |
getPreferredSpan(int axis)
|
int |
getRightMargin()
|
int |
getRightPadding()
|
protected javax.swing.text.html.StyleSheet |
getStyleSheet()
Creates a new instance of CustomInlineView |
javax.swing.text.Segment |
getText(int p0,
int p1)
|
short |
getTextIndent()
|
int |
getTopMargin()
|
int |
getTopPadding()
|
float |
getWidthCSSValue()
|
void |
insertUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
|
boolean |
isAbsolutePositioning()
|
boolean |
isRelativePositioning()
|
boolean |
isVisible()
|
java.awt.Shape |
modelToView(int pos,
java.awt.Shape a,
javax.swing.text.Position.Bias b)
|
void |
paint(java.awt.Graphics g,
java.awt.Shape a)
|
void |
removeUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
|
void |
resetForegroundColorForHyperlink(java.awt.Color color)
|
void |
setPropertiesFromAttributes()
|
int |
viewToModel(float x,
float y,
java.awt.Shape a,
javax.swing.text.Position.Bias[] bias)
|
Methods inherited from class javax.swing.text.LabelView |
getFontMetrics, isStrikeThrough, isSubscript, isSuperscript, isUnderline, setBackground, setStrikeThrough, setSubscript, setSuperscript, setUnderline |
Methods inherited from class javax.swing.text.GlyphView |
clone, createFragment, getAlignment, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getPartialSpan, getStartOffset, getTabbedSpan, getTabExpander, setGlyphPainter |
Methods inherited from class javax.swing.text.View |
append, forwardUpdate, forwardUpdateToView, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, setSize, updateChildren, updateLayout, viewToModel |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.text.TabableView |
getPartialSpan, getTabbedSpan |
containsUpperCase
public static boolean containsUpperCase
containsLowerCase
public static boolean containsLowerCase
CustomInlineView
public CustomInlineView(javax.swing.text.Element elem)
getStyleSheet
protected javax.swing.text.html.StyleSheet getStyleSheet()
- Creates a new instance of CustomInlineView
getBreakWeight
public int getBreakWeight(int axis,
float pos,
float len)
- Overrides:
getBreakWeight
in class javax.swing.text.GlyphView
breakView
public javax.swing.text.View breakView(int axis,
int p0,
float pos,
float len)
- Overrides:
breakView
in class javax.swing.text.GlyphView
breakView1
public javax.swing.text.View breakView1(int axis,
int p0,
float pos,
float len)
isAbsolutePositioning
public boolean isAbsolutePositioning()
- Specified by:
isAbsolutePositioning
in interface CSSLayoutViews
isRelativePositioning
public boolean isRelativePositioning()
- Specified by:
isRelativePositioning
in interface CSSLayoutViews
getAbsoluteX
public int getAbsoluteX()
- Specified by:
getAbsoluteX
in interface CSSLayoutViews
getAbsoluteY
public int getAbsoluteY()
- Specified by:
getAbsoluteY
in interface CSSLayoutViews
getText
public javax.swing.text.Segment getText(int p0,
int p1)
- Overrides:
getText
in class javax.swing.text.GlyphView
getAttributes
public javax.swing.text.AttributeSet getAttributes()
- Overrides:
getAttributes
in class javax.swing.text.View
setPropertiesFromAttributes
public void setPropertiesFromAttributes()
- Overrides:
setPropertiesFromAttributes
in class javax.swing.text.LabelView
getAttributes1
public javax.swing.text.AttributeSet getAttributes1()
getHeightCSSValue
public float getHeightCSSValue()
getWidthCSSValue
public float getWidthCSSValue()
getLeftRightBorderInset
public int getLeftRightBorderInset()
getPreferredSpan
public float getPreferredSpan(int axis)
- Overrides:
getPreferredSpan
in class javax.swing.text.GlyphView
getMinimumSpanQuick
public float getMinimumSpanQuick(int axis)
getMinimumSpan
public float getMinimumSpan(int axis)
- Overrides:
getMinimumSpan
in class javax.swing.text.View
getMaximumSpan
public float getMaximumSpan(int axis)
- Overrides:
getMaximumSpan
in class javax.swing.text.View
getTextIndent
public short getTextIndent()
getRightMargin
public int getRightMargin()
- Specified by:
getRightMargin
in interface CSSLayoutViews
getLeftMargin
public int getLeftMargin()
- Specified by:
getLeftMargin
in interface CSSLayoutViews
getTopMargin
public int getTopMargin()
- Specified by:
getTopMargin
in interface CSSLayoutViews
getBottomMargin
public int getBottomMargin()
- Specified by:
getBottomMargin
in interface CSSLayoutViews
getRightPadding
public int getRightPadding()
getLeftPadding
public int getLeftPadding()
getTopPadding
public int getTopPadding()
getBottomPadding
public int getBottomPadding()
checkPainter
protected void checkPainter()
- Overrides:
checkPainter
in class javax.swing.text.GlyphView
viewToModel
public int viewToModel(float x,
float y,
java.awt.Shape a,
javax.swing.text.Position.Bias[] bias)
- Overrides:
viewToModel
in class javax.swing.text.GlyphView
getFont
public java.awt.Font getFont()
- Overrides:
getFont
in class javax.swing.text.LabelView
paint
public void paint(java.awt.Graphics g,
java.awt.Shape a)
- Overrides:
paint
in class javax.swing.text.GlyphView
resetForegroundColorForHyperlink
public void resetForegroundColorForHyperlink(java.awt.Color color)
getBackground
public java.awt.Color getBackground()
- Overrides:
getBackground
in class javax.swing.text.LabelView
getForeground
public java.awt.Color getForeground()
- Overrides:
getForeground
in class javax.swing.text.LabelView
modelToView
public java.awt.Shape modelToView(int pos,
java.awt.Shape a,
javax.swing.text.Position.Bias b)
throws javax.swing.text.BadLocationException
- Overrides:
modelToView
in class javax.swing.text.GlyphView
- Throws:
javax.swing.text.BadLocationException
isVisible
public boolean isVisible()
- Overrides:
isVisible
in class javax.swing.text.View
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
- Overrides:
insertUpdate
in class javax.swing.text.GlyphView
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
- Overrides:
removeUpdate
in class javax.swing.text.GlyphView
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
- Overrides:
changedUpdate
in class javax.swing.text.LabelView