public class ShapeSettingsData extends DataObject
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_FILL_COLOUR
The default fill color.
|
static Color |
DEFAULT_FILL_COLOUR_ALPHA
The default fill color.
|
static String |
DEFAULT_FONT_FAMILY
The default font family.
|
static int |
DEFAULT_FONT_SIZE
The default font size in "pt".
|
static Color |
DEFAULT_STROKE_COLOUR
The default stroke color.
|
static double |
DEFAULT_STROKE_WIDTH
The default stroke width.
|
static String |
FONT_BOLD
Set if font bold.
|
static String |
FONT_BOLD_ITALIC
Set if font bold.
|
static String |
FONT_ITALIC
Set if font italic.
|
static String |
FONT_REGULAR
Set if font bold.
|
static String |
LINE_CAP_BUTT
The
Butt descriptor. |
static String |
LINE_CAP_ROUND
The
Round descriptor. |
static String |
LINE_CAP_SQUARE
The
Square descriptor. |
Modifier and Type | Method and Description |
---|---|
Color |
getFill()
Returns the fill color.
|
String |
getFillRule()
Returns the fill rule.
|
Font |
getFont()
Get the style of the font for Shape.
|
String |
getFontFamily()
Returns the stroke.
|
double |
getFontSize()
Deprecated.
Replaced by
getFontSize(UnitsLength) |
omero.model.Length |
getFontSize(omero.model.enums.UnitsLength unit)
Returns the stroke.
|
String |
getFontStyle()
Returns the font style.
|
int |
getLineCap()
Returns the shape of the end of the line..
|
String |
getMarkerEnd()
Returns the marker end.
|
String |
getMarkerStart()
Returns the marker start.
|
Color |
getStroke()
Returns the color of the stroke.
|
double[] |
getStrokeDashArray()
Returns the stroke dashes.
|
double |
getStrokeWidth()
Deprecated.
Replaced by
getStrokeWidth(UnitsLength) |
omero.model.Length |
getStrokeWidth(omero.model.enums.UnitsLength unit)
Returns the stroke's width (or 1 px if it's not set or <= 0)
|
boolean |
isFontBold()
Returns
true if it is bold, false
otherwise. |
boolean |
isFontItalic()
Returns
true if it is italic, false
otherwise. |
void |
setFill(Color fillColour)
Set the fill color.
|
void |
setFillRule(String fillRule)
Set the fill rule.
|
void |
setFontFamily(String fontFamily)
Returns the stroke.
|
void |
setFontSize(int fontSize)
Deprecated.
Replaced by
setFontSize(Length) |
void |
setFontSize(omero.model.Length fontSize)
Set the size of the font.
|
void |
setFontStyle(String fontStyle)
Sets the style of the font.
|
void |
setLineCap(int lineCap)
Sets the line cap.
|
String |
setMarkerEnd(String end)
Returns the marker end.
|
String |
setMarkerStart(String start)
Returns the marker start.
|
void |
setStroke(Color strokeColour)
Set the stroke color.
|
void |
setStrokeDashArray(double[] dashArray)
Set the stroke dashes.
|
void |
setStrokeWidth(Double strokeWidth)
Deprecated.
Replaced by
setStrokeWidth(Length) |
void |
setStrokeWidth(omero.model.Length strokeWidth)
Set the stroke width.
|
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, 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 String LINE_CAP_BUTT
Butt
descriptor.public static final String LINE_CAP_ROUND
Round
descriptor.public static final String LINE_CAP_SQUARE
Square
descriptor.public static final Color DEFAULT_FILL_COLOUR
public static final Color DEFAULT_FILL_COLOUR_ALPHA
public static final Color DEFAULT_STROKE_COLOUR
public static final int DEFAULT_FONT_SIZE
public static final String DEFAULT_FONT_FAMILY
public static final double DEFAULT_STROKE_WIDTH
public static final String FONT_ITALIC
public static final String FONT_BOLD
public static final String FONT_BOLD_ITALIC
public static final String FONT_REGULAR
public String getFillRule()
public void setFillRule(String fillRule)
fillRule
- See above.public Color getFill()
public void setFill(Color fillColour)
fillColour
- See above.public Color getStroke()
public void setStroke(Color strokeColour)
strokeColour
- See above.@Deprecated public double getStrokeWidth()
getStrokeWidth(UnitsLength)
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 occurred@Deprecated public void setStrokeWidth(Double strokeWidth)
setStrokeWidth(Length)
strokeWidth
- See above.public void setStrokeWidth(omero.model.Length strokeWidth)
strokeWidth
- See above.public double[] getStrokeDashArray()
public void setStrokeDashArray(double[] dashArray)
dashArray
- See above.public int getLineCap()
public void setLineCap(int lineCap)
lineCap
- See above.public Font getFont()
public String getFontFamily()
public void setFontFamily(String fontFamily)
@Deprecated public double getFontSize()
getFontSize(UnitsLength)
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 occurred@Deprecated public void setFontSize(int fontSize)
setFontSize(Length)
public void setFontSize(omero.model.Length fontSize)
public String getFontStyle()
public void setFontStyle(String fontStyle)
public String getMarkerStart()
public String getMarkerEnd()
public String setMarkerStart(String start)
start
- The value to set.public String setMarkerEnd(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.
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.