Package com.bc.ceres.swing.figure
Interface FigureStyle
-
- All Superinterfaces:
PropertyChangeEmitter
,PropertySet
- All Known Implementing Classes:
DefaultFigureStyle
public interface FigureStyle extends PropertySet
APropertySet
that provides style information for figures.- Since:
- Ceres 0.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fromCssString(String css)
Color
getFillColor()
double
getFillOpacity()
Paint
getFillPaint()
Gets the effective fill paint used for drawing the interior of a polygonal shape.String
getName()
Stroke
getStroke()
Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape.Stroke
getStroke(double scale)
Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape.Color
getStrokeColor()
double
getStrokeOpacity()
Paint
getStrokePaint()
Gets the effective stroke paint used for drawing the exterior of a lineal or polygonal shape.double
getStrokeWidth()
Symbol
getSymbol()
Gets the effective point symbol used for drawing of points figures.String
getSymbolImagePath()
String
getSymbolName()
double
getSymbolRefX()
double
getSymbolRefY()
String
toCssString()
-
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 Detail
-
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
Stroke getStroke(double scale)
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
void fromCssString(String css)
-
-