Package com.bc.ceres.swing.figure
Interface FigureStyle
- All Superinterfaces:
PropertyChangeEmitter
,PropertySet
- All Known Implementing Classes:
DefaultFigureStyle
A
PropertySet
that provides style information for figures.- Since:
- Ceres 0.10
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fromCssString
(String css) double
Gets the effective fill paint used for drawing the interior of a polygonal shape.getName()
Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape.getStroke
(double scale) Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape.double
Gets the effective stroke paint used for drawing the exterior of a lineal or polygonal shape.double
Gets the effective point symbol used for drawing of points figures.double
double
Methods inherited from interface com.bc.ceres.binding.PropertyChangeEmitter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.bc.ceres.binding.PropertySet
addProperties, addProperty, getDescriptor, getProperties, getProperty, getValue, isPropertyDefined, removeProperties, removeProperty, setDefaultValues, setValue
-
Method Details
-
getName
String getName() -
getStroke
Stroke getStroke()Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape. The effective paint may result from a number of different style properties.- Returns:
- The effective stroke style used for drawing.
-
getStroke
Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape. The effective paint may result from a number of different style properties.- Parameters:
scale
- The current model-to-view scaling.- Returns:
- The effective stroke style used for drawing.
-
getStrokePaint
Paint getStrokePaint()Gets the effective stroke paint used for drawing the exterior of a lineal or polygonal shape. The effective paint may result from a number of different style properties.- Returns:
- The effective stroke paint used for drawing.
-
getStrokeColor
Color getStrokeColor() -
getStrokeOpacity
double getStrokeOpacity() -
getStrokeWidth
double getStrokeWidth() -
getFillPaint
Paint getFillPaint()Gets the effective fill paint used for drawing the interior of a polygonal shape. The effective paint may result from a number of different style properties.- Returns:
- The effective fill paint used for drawing.
-
getFillColor
Color getFillColor() -
getFillOpacity
double getFillOpacity() -
getSymbol
Symbol getSymbol()Gets the effective point symbol used for drawing of points figures.- Returns:
- The effective point symbol used for drawing.
-
getSymbolName
String getSymbolName() -
getSymbolImagePath
String getSymbolImagePath() -
getSymbolRefX
double getSymbolRefX() -
getSymbolRefY
double getSymbolRefY() -
toCssString
String toCssString() -
fromCssString
-