public class HighlightAreaAnnotation extends Annotation
Modifier and Type | Class and Description |
---|---|
static class |
HighlightAreaAnnotation.AnnoBorder
Describes the attributes of an annotation border such as color and thickness.
|
static class |
HighlightAreaAnnotation.BorderSideValue
Identifies a side of an area annotation for purposes of applying a border
|
static class |
HighlightAreaAnnotation.BorderStyleValue
The line style of an area annotation's border
|
Annotation.UnitTypeValue
Constructor and Description |
---|
HighlightAreaAnnotation(long userId, long sectionIx, long top, long left, long width, long height, Annotation.UnitTypeValue units, float opacity, ColorInfo fillColor, HighlightAreaAnnotation.AnnoBorder border, HighlightAreaAnnotation.BorderStyleValue borderStyle)
Creates an area annotation with the specified attributes and location.
|
Modifier and Type | Method and Description |
---|---|
HighlightAreaAnnotation.BorderStyleValue |
getBorderStyle()
Obtains the line style to be used to draw the border of the area annotation
|
HighlightAreaAnnotation.AnnoBorder |
getBottomBorder()
Obtains the attributes of the bottom border of the area annotation
|
protected ColorInfo |
getFillColor()
Obtains the color to be used to fill the area annotation
|
HighlightAreaAnnotation.AnnoBorder |
getLeftBorder()
Obtains the attributes of the left border of the area annotation
|
net.bitform.oilink.OILinkMessages.HiliteArea |
getOILinkHiliteArea()
Used internally by the Outside In API and not to be used externally.
|
HighlightAreaAnnotation.AnnoBorder |
getRightBorder()
Obtains the attributes of the right border of the area annotation
|
HighlightAreaAnnotation.AnnoBorder |
getTopBorder()
Obtains the attributes of the top border of the area annotation
|
void |
setBorder(java.util.EnumSet<HighlightAreaAnnotation.BorderSideValue> side, HighlightAreaAnnotation.AnnoBorder border)
Applies a border to the specified side of this area annotation.
|
void |
setBorderStyle(HighlightAreaAnnotation.BorderStyleValue style)
Specifies the line style to be used to draw the border of the area annotation
|
void |
setBottomBorder(HighlightAreaAnnotation.AnnoBorder border)
Specifies the attributes of the bottom border of the area annotation
|
protected void |
setFillColor(ColorInfo color)
specifies the color to be used to fill the area annotation
|
void |
setLeftBorder(HighlightAreaAnnotation.AnnoBorder border)
Specifies the attributes of the left border of the area annotation
|
void |
setRightBorder(HighlightAreaAnnotation.AnnoBorder border)
Specifies the attributes of the right border of the area annotation
|
void |
setTopBorder(HighlightAreaAnnotation.AnnoBorder border)
Specifies the attributes of the top border of the area annotation
|
getHeight, getLeft, getOpacity, getSectionIndex, getTop, getUnits, getUserId, getWidth, setHeight, setLeft, setOpacity, setSectionIndex, setTop, setUnits, setUserId, setWidth
public HighlightAreaAnnotation(long userId, long sectionIx, long top, long left, long width, long height, Annotation.UnitTypeValue units, float opacity, ColorInfo fillColor, HighlightAreaAnnotation.AnnoBorder border, HighlightAreaAnnotation.BorderStyleValue borderStyle)
userId
- the numeric id of the user making the annotationsectionIx
- the 0-based index of the sheet/image/slide where the annotation should be renderedtop
- the location of the top of this area annotationleft
- the location of the left side of this area annotationwidth
- the width of the area annotationheight
- the height of the area annotationunits
- the units of measurement to use for top
, left
, width
, and height
opacity
- the opacity of the area annotationfillColor
- the color to use to fill the area annotationborder
- the border to be applied to all 4 sides of the area annotationborderStyle
- the line style of the area annotation's borderpublic void setBorder(java.util.EnumSet<HighlightAreaAnnotation.BorderSideValue> side, HighlightAreaAnnotation.AnnoBorder border)
side
- the side of the area annotation to apply the borderborder
- the style of the borderpublic HighlightAreaAnnotation.BorderStyleValue getBorderStyle()
public void setBorderStyle(HighlightAreaAnnotation.BorderStyleValue style)
style
- the border stylepublic HighlightAreaAnnotation.AnnoBorder getTopBorder()
public void setTopBorder(HighlightAreaAnnotation.AnnoBorder border)
border
- the border attributespublic HighlightAreaAnnotation.AnnoBorder getLeftBorder()
public void setLeftBorder(HighlightAreaAnnotation.AnnoBorder border)
border
- the border attributespublic HighlightAreaAnnotation.AnnoBorder getRightBorder()
public void setRightBorder(HighlightAreaAnnotation.AnnoBorder border)
border
- the border attributespublic HighlightAreaAnnotation.AnnoBorder getBottomBorder()
public void setBottomBorder(HighlightAreaAnnotation.AnnoBorder border)
border
- the border attributesprotected ColorInfo getFillColor()
protected void setFillColor(ColorInfo color)
color
- the colorpublic net.bitform.oilink.OILinkMessages.HiliteArea getOILinkHiliteArea()