@JsonData
public static class HighlightData.Highlight
extends java.awt.Rectangle
Modifier and Type | Class and Description |
---|---|
static class |
HighlightData.Highlight.Appearance
Appearances of a highlight.
|
Constructor and Description |
---|
Highlight(int x,
int y,
int width,
int height,
java.lang.String caption,
HighlightData.Highlight.Appearance appearance,
java.awt.Color color)
Creates the highlight area
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y) |
HighlightData.Highlight.Appearance |
getAppearance()
Returns the appearance.
|
java.lang.String |
getCaption()
Returns the caption to be displayed in the area
|
java.awt.Color |
getColor()
The base color to draw this highlight
|
java.awt.Image |
getImage()
Returns the image.
|
java.lang.String |
getRenderCacheKey()
Returns the key of the render cache entry for drawing this highlight.
|
java.lang.String |
getType()
Returns the type.
|
boolean |
isAnnotation()
Returns a flag indicating this highlight represents an annotation.
|
void |
setImage(java.awt.Image image)
Sets the image.
|
void |
setRenderCacheKey(java.lang.String renderCacheKey)
Sets the key of the render cache entry for drawing this highlight.
|
void |
setType(java.lang.String type)
Sets the type.
|
public Highlight(int x, int y, int width, int height, java.lang.String caption, HighlightData.Highlight.Appearance appearance, java.awt.Color color)
x
- the x-offsety
- the y-offsetwidth
- the width in PXheight
- the height in PXcaption
- the caption to be displayed INSIDE the area, may be null
appearance
- indicates how to draw the highlightcolor
- the base color for this highlight. Note that the Alpha channel will be ignored an set by the
painterpublic java.lang.String getCaption()
null
if there is nonepublic java.awt.Color getColor()
public java.awt.Image getImage()
public void setImage(java.awt.Image image)
image
- the imagepublic boolean isAnnotation()
public void setType(java.lang.String type)
type
- the type.public java.lang.String getType()
public HighlightData.Highlight.Appearance getAppearance()
public java.lang.String getRenderCacheKey()
public void setRenderCacheKey(java.lang.String renderCacheKey)
renderCacheKey
- the key of the render cache entry for drawing this highlightpublic boolean contains(int x, int y)
contains
in class java.awt.Rectangle
Copyright © 2010-2022 by i-net software GmbH