public class ShapeSettingsData extends DataObject
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
DEFAULT_FILL_COLOUR
The default fill color.
|
static java.awt.Color |
DEFAULT_FILL_COLOUR_ALPHA
The default fill color.
|
static java.lang.String |
DEFAULT_FONT_FAMILY
The default font family.
|
static int |
DEFAULT_FONT_SIZE
The default font size in "pt".
|
static java.awt.Color |
DEFAULT_STROKE_COLOUR
The default stroke color.
|
static double |
DEFAULT_STROKE_WIDTH
The default stroke width.
|
static java.lang.String |
FONT_BOLD
Set if font bold.
|
static java.lang.String |
FONT_BOLD_ITALIC
Set if font bold.
|
static java.lang.String |
FONT_ITALIC
Set if font italic.
|
static java.lang.String |
FONT_REGULAR
Set if font bold.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getColor(int rgba)
Creates a
Color object from an RGBA integer value |
java.awt.Color |
getFill()
Returns the fill color.
|
java.lang.String |
getFillRule()
Returns the fill rule.
|
java.awt.Font |
getFont()
Get the style of the font for Shape.
|
java.lang.String |
getFontFamily()
Returns the stroke.
|
omero.model.Length |
getFontSize(omero.model.enums.UnitsLength unit)
Returns the stroke.
|
java.lang.String |
getFontStyle()
Returns the font style.
|
java.lang.String |
getMarkerEnd()
Returns the marker end.
|
java.lang.String |
getMarkerStart()
Returns the marker start.
|
static int |
getRGBA(java.awt.Color c)
Returns the Color's RGBA value as integer
|
java.awt.Color |
getStroke()
Returns the color of the stroke.
|
double[] |
getStrokeDashArray()
Returns the stroke dashes.
|
omero.model.Length |
getStrokeWidth(omero.model.enums.UnitsLength unit)
Returns the stroke's width (or 1 px if it's not set or less than or equals to 0)
|
boolean |
isFontBold()
Returns
true if it is bold, false
otherwise. |
boolean |
isFontItalic()
Returns
true if it is italic, false
otherwise. |
void |
setFill(java.awt.Color fillColour)
Set the fill color.
|
void |
setFillRule(java.lang.String fillRule)
Set the fill rule.
|
void |
setFontFamily(java.lang.String fontFamily)
Returns the stroke.
|
void |
setFontSize(omero.model.Length fontSize)
Set the size of the font.
|
void |
setFontStyle(java.lang.String fontStyle)
Sets the style of the font.
|
void |
setMarkerEnd(java.lang.String end)
Sets the marker end.
|
void |
setMarkerStart(java.lang.String start)
Sets the marker start.
|
void |
setStroke(java.awt.Color strokeColour)
Set the stroke color.
|
void |
setStrokeDashArray(double[] dashArray)
Set the stroke dashes.
|
void |
setStrokeWidth(omero.model.Length strokeWidth)
Set the stroke width.
|
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
public static final java.awt.Color DEFAULT_FILL_COLOUR
public static final java.awt.Color DEFAULT_FILL_COLOUR_ALPHA
public static final java.awt.Color DEFAULT_STROKE_COLOUR
public static final int DEFAULT_FONT_SIZE
public static final java.lang.String DEFAULT_FONT_FAMILY
public static final double DEFAULT_STROKE_WIDTH
public static final java.lang.String FONT_ITALIC
public static final java.lang.String FONT_BOLD
public static final java.lang.String FONT_BOLD_ITALIC
public static final java.lang.String FONT_REGULAR
public static int getRGBA(java.awt.Color c)
c
- The Color
public static java.awt.Color getColor(int rgba)
Color
object from an RGBA integer valuergba
- The RGBA valuepublic java.lang.String getFillRule()
public void setFillRule(java.lang.String fillRule)
fillRule
- See above.public java.awt.Color getFill()
public void setFill(java.awt.Color fillColour)
fillColour
- See above.public java.awt.Color getStroke()
public void setStroke(java.awt.Color strokeColour)
strokeColour
- See above.public omero.model.Length getStrokeWidth(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
unit
- The unit (may be null, in which case no conversion will be
performed)ome.model.units.BigResult
- If an arithmetic under-/overflow occurredpublic void setStrokeWidth(omero.model.Length strokeWidth)
strokeWidth
- See above.public double[] getStrokeDashArray()
public void setStrokeDashArray(double[] dashArray)
dashArray
- See above.public java.awt.Font getFont()
public java.lang.String getFontFamily()
public void setFontFamily(java.lang.String fontFamily)
public omero.model.Length getFontSize(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
unit
- The unit (may be null, in which case no conversion will be
performed)ome.model.units.BigResult
- If an arithmetic under-/overflow occurredpublic void setFontSize(omero.model.Length fontSize)
public java.lang.String getFontStyle()
public void setFontStyle(java.lang.String fontStyle)
public java.lang.String getMarkerStart()
public java.lang.String getMarkerEnd()
public void setMarkerStart(java.lang.String start)
start
- The value to set.public void setMarkerEnd(java.lang.String end)
end
- The value to set.public boolean isFontItalic()
true
if it is italic, false
otherwise.public boolean isFontBold()
true
if it is bold, false
otherwise.