Package elki.visualization.style
Interface StyleLibrary
-
- All Known Implementing Classes:
PropertiesBasedStyleLibrary
public interface StyleLibrary
Style library interface. A style library allows the user to customize the visual rendering, for example for print media or screen presentation without having to change program code.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AXIS
Axisstatic java.lang.String
AXIS_LABEL
Axis labelstatic java.lang.String
AXIS_TICK
Axis tickstatic java.lang.String
AXIS_TICK_MINOR
Axis minor tickstatic java.lang.String
BACKGROUND_COLOR
Background colorstatic java.lang.String
BUBBLEPLOT
Bubble sizestatic java.lang.String
CLUSTERORDER
Clusterorderstatic java.lang.String
COLOR
Colorstatic java.lang.String
COLORSET
Color setstatic java.lang.String
DEFAULT
Defaultstatic java.lang.String
DOTPLOT
Dot sizestatic java.lang.String
FONT_FAMILY
Font familystatic java.lang.String
GENERIC_SIZE
Generic sizestatic java.lang.String
KEY
Keystatic java.lang.String
LINE_WIDTH
Line widthstatic java.lang.String
MARGIN
Marginstatic java.lang.String
MARKERPLOT
Marker sizestatic java.lang.String
OPACITY
Opacity (transparency)static java.lang.String
PAGE
Pagestatic java.lang.String
PLOT
Plotstatic java.lang.String
PLOTGRAY
Grayed out objectsstatic java.lang.String
POLYGONS
Polygons stylestatic java.lang.String
REFERENCE_POINTS
Reference points color and sizestatic double
SCALE
Scaling constant.static java.lang.String
SELECTION
Selection color and opacitystatic java.lang.String
SELECTION_ACTIVE
Selection color and opacity during selecting processstatic java.lang.String
TEXT_COLOR
Text colorstatic java.lang.String
TEXT_SIZE
Text sizestatic java.lang.String
XYCURVE
XY curve styling.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getBackgroundColor(java.lang.String name)
Retrieve background color for an itemjava.lang.String
getColor(java.lang.String name)
Retrieve a color for an itemColorLibrary
getColorSet(java.lang.String name)
Retrieve colorset for an itemjava.lang.String
getFontFamily(java.lang.String key)
Get font familydouble
getLineWidth(java.lang.String key)
Get line widthdouble
getOpacity(java.lang.String key)
Get opacitydouble
getSize(java.lang.String key)
Get generic sizejava.lang.String
getTextColor(java.lang.String name)
Retrieve text color for an itemdouble
getTextSize(java.lang.String key)
Get text sizeLineStyleLibrary
lines()
Get the line style library to use.MarkerLibrary
markers()
Get the marker library to use.
-
-
-
Field Detail
-
DEFAULT
static final java.lang.String DEFAULT
Default- See Also:
- Constant Field Values
-
PAGE
static final java.lang.String PAGE
Page- See Also:
- Constant Field Values
-
PLOT
static final java.lang.String PLOT
Plot- See Also:
- Constant Field Values
-
AXIS
static final java.lang.String AXIS
Axis- See Also:
- Constant Field Values
-
AXIS_TICK
static final java.lang.String AXIS_TICK
Axis tick- See Also:
- Constant Field Values
-
AXIS_TICK_MINOR
static final java.lang.String AXIS_TICK_MINOR
Axis minor tick- See Also:
- Constant Field Values
-
AXIS_LABEL
static final java.lang.String AXIS_LABEL
Axis label- See Also:
- Constant Field Values
-
KEY
static final java.lang.String KEY
Key- See Also:
- Constant Field Values
-
CLUSTERORDER
static final java.lang.String CLUSTERORDER
Clusterorder- See Also:
- Constant Field Values
-
MARGIN
static final java.lang.String MARGIN
Margin- See Also:
- Constant Field Values
-
BUBBLEPLOT
static final java.lang.String BUBBLEPLOT
Bubble size- See Also:
- Constant Field Values
-
MARKERPLOT
static final java.lang.String MARKERPLOT
Marker size- See Also:
- Constant Field Values
-
DOTPLOT
static final java.lang.String DOTPLOT
Dot size- See Also:
- Constant Field Values
-
PLOTGRAY
static final java.lang.String PLOTGRAY
Grayed out objects- See Also:
- Constant Field Values
-
REFERENCE_POINTS
static final java.lang.String REFERENCE_POINTS
Reference points color and size- See Also:
- Constant Field Values
-
POLYGONS
static final java.lang.String POLYGONS
Polygons style- See Also:
- Constant Field Values
-
SELECTION
static final java.lang.String SELECTION
Selection color and opacity- See Also:
- Constant Field Values
-
SELECTION_ACTIVE
static final java.lang.String SELECTION_ACTIVE
Selection color and opacity during selecting process- See Also:
- Constant Field Values
-
SCALE
static final double SCALE
Scaling constant. Keep in sync withProjection.SCALE
- See Also:
- Constant Field Values
-
COLOR
static final java.lang.String COLOR
Color- See Also:
- Constant Field Values
-
BACKGROUND_COLOR
static final java.lang.String BACKGROUND_COLOR
Background color- See Also:
- Constant Field Values
-
TEXT_COLOR
static final java.lang.String TEXT_COLOR
Text color- See Also:
- Constant Field Values
-
COLORSET
static final java.lang.String COLORSET
Color set- See Also:
- Constant Field Values
-
LINE_WIDTH
static final java.lang.String LINE_WIDTH
Line width- See Also:
- Constant Field Values
-
TEXT_SIZE
static final java.lang.String TEXT_SIZE
Text size- See Also:
- Constant Field Values
-
FONT_FAMILY
static final java.lang.String FONT_FAMILY
Font family- See Also:
- Constant Field Values
-
GENERIC_SIZE
static final java.lang.String GENERIC_SIZE
Generic size- See Also:
- Constant Field Values
-
OPACITY
static final java.lang.String OPACITY
Opacity (transparency)- See Also:
- Constant Field Values
-
XYCURVE
static final java.lang.String XYCURVE
XY curve styling.- See Also:
- Constant Field Values
-
-
Method Detail
-
getColor
java.lang.String getColor(java.lang.String name)
Retrieve a color for an item- Parameters:
name
- Reference name- Returns:
- color in CSS/SVG valid format: hexadecimal (#aabbcc) or names such as "red"
-
getBackgroundColor
java.lang.String getBackgroundColor(java.lang.String name)
Retrieve background color for an item- Parameters:
name
- Reference name- Returns:
- color in CSS/SVG valid format: hexadecimal (#aabbcc) or names such as "red"
-
getTextColor
java.lang.String getTextColor(java.lang.String name)
Retrieve text color for an item- Parameters:
name
- Reference name- Returns:
- color in CSS/SVG valid format: hexadecimal (#aabbcc) or names such as "red"
-
getColorSet
ColorLibrary getColorSet(java.lang.String name)
Retrieve colorset for an item- Parameters:
name
- Reference name- Returns:
- color library
-
getLineWidth
double getLineWidth(java.lang.String key)
Get line width- Parameters:
key
- Key- Returns:
- line width as double
-
getSize
double getSize(java.lang.String key)
Get generic size- Parameters:
key
- Key- Returns:
- size as double
-
getTextSize
double getTextSize(java.lang.String key)
Get text size- Parameters:
key
- Key- Returns:
- line width as double
-
getFontFamily
java.lang.String getFontFamily(java.lang.String key)
Get font family- Parameters:
key
- Key- Returns:
- font family CSS string
-
getOpacity
double getOpacity(java.lang.String key)
Get opacity- Parameters:
key
- Key- Returns:
- size as double
-
lines
LineStyleLibrary lines()
Get the line style library to use.- Returns:
- line style library
-
markers
MarkerLibrary markers()
Get the marker library to use.- Returns:
- marker library
-
-