|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.extensions.api.highlights.HighlightPainterInfo
public class HighlightPainterInfo
Information needed by the painter.
Constructor Summary | |
---|---|
HighlightPainterInfo(Graphics g,
int currentBoxHeight,
Point origin,
int relativeX,
int length,
int startOffset,
int endOffset,
int baseLine,
int fontAscent,
int fontSize,
int parentLineBoxHight,
Point parentLineBoxOrigin)
Renders the highlight. |
Method Summary | |
---|---|
int |
getBaseLine()
Returns the base line relative to top, relative to the box. |
int |
getCurrentBoxHeight()
Current run of text/image height. |
int |
getEndOffset()
Returns the end offset in content. |
int |
getFontAscent()
Returns the font ascent. |
int |
getFontSize()
Returns the font size. |
Graphics |
getGraphics()
Returns the graphics used for paint. |
int |
getLength()
Returns the length of highlight, in pixels. |
Point |
getOrigin()
Returns the origin of box, relative to the upper corner of the editor. |
int |
getParentLineBoxHight()
|
Point |
getParentLineBoxOrigin()
|
int |
getRelativeX()
Returns the relative X from where highlight should start. |
int |
getStartOffset()
Returns the start offset in content. |
boolean |
isHighlightOverText()
Returns true if the highlight is done over a text view. |
void |
setHighlightOverText(boolean isHighlightOverText)
It is set by the author layout, so that the painter knows the painted box is a text box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HighlightPainterInfo(Graphics g, int currentBoxHeight, Point origin, int relativeX, int length, int startOffset, int endOffset, int baseLine, int fontAscent, int fontSize, int parentLineBoxHight, Point parentLineBoxOrigin)
g
- The graphicscurrentBoxHeight
- The current box height.origin
- Origin (upper left corner of the box in absolute coordinates)relativeX
- The x relative to the origin where the highlight must start.length
- The length of the highlight, in pixels.startOffset
- Start offset of highlightendOffset
- End offset of highlightbaseLine
- The base line relative to the box startfontAscent
- The font ascentfontSize
- The font sizeparentLineBoxHight
- The height of the parent line box. Can be -1.parentLineBoxOrigin
- The origin of the parent line box. Can be null.Method Detail |
---|
public void setHighlightOverText(boolean isHighlightOverText)
isHighlightOverText
- The isHighlightOverText to set.public Graphics getGraphics()
public int getCurrentBoxHeight()
public Point getOrigin()
public int getRelativeX()
public int getLength()
public int getStartOffset()
public int getEndOffset()
public int getBaseLine()
public int getFontAscent()
public int getFontSize()
public boolean isHighlightOverText()
public int getParentLineBoxHight()
public Point getParentLineBoxOrigin()
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |