Package com.bc.ceres.swing.figure
Interface FigureStyle
-
- All Superinterfaces:
PropertyChangeEmitter,PropertySet
- All Known Implementing Classes:
DefaultFigureStyle
public interface FigureStyle extends PropertySet
APropertySetthat provides style information for figures.- Since:
- Ceres 0.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfromCssString(String css)ColorgetFillColor()doublegetFillOpacity()PaintgetFillPaint()Gets the effective fill paint used for drawing the interior of a polygonal shape.StringgetName()StrokegetStroke()Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape.StrokegetStroke(double scale)Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape.ColorgetStrokeColor()doublegetStrokeOpacity()PaintgetStrokePaint()Gets the effective stroke paint used for drawing the exterior of a lineal or polygonal shape.doublegetStrokeWidth()SymbolgetSymbol()Gets the effective point symbol used for drawing of points figures.StringgetSymbolImagePath()StringgetSymbolName()doublegetSymbolRefX()doublegetSymbolRefY()StringtoCssString()-
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)
-
-