Package elki.visualization.style
Interface StyleLibrary
-
- All Known Implementing Classes:
PropertiesBasedStyleLibrary
public interface StyleLibraryStyle 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.StringAXISAxisstatic java.lang.StringAXIS_LABELAxis labelstatic java.lang.StringAXIS_TICKAxis tickstatic java.lang.StringAXIS_TICK_MINORAxis minor tickstatic java.lang.StringBACKGROUND_COLORBackground colorstatic java.lang.StringBUBBLEPLOTBubble sizestatic java.lang.StringCLUSTERORDERClusterorderstatic java.lang.StringCOLORColorstatic java.lang.StringCOLORSETColor setstatic java.lang.StringDEFAULTDefaultstatic java.lang.StringDOTPLOTDot sizestatic java.lang.StringFONT_FAMILYFont familystatic java.lang.StringGENERIC_SIZEGeneric sizestatic java.lang.StringKEYKeystatic java.lang.StringLINE_WIDTHLine widthstatic java.lang.StringMARGINMarginstatic java.lang.StringMARKERPLOTMarker sizestatic java.lang.StringOPACITYOpacity (transparency)static java.lang.StringPAGEPagestatic java.lang.StringPLOTPlotstatic java.lang.StringPLOTGRAYGrayed out objectsstatic java.lang.StringPOLYGONSPolygons stylestatic java.lang.StringREFERENCE_POINTSReference points color and sizestatic doubleSCALEScaling constant.static java.lang.StringSELECTIONSelection color and opacitystatic java.lang.StringSELECTION_ACTIVESelection color and opacity during selecting processstatic java.lang.StringTEXT_COLORText colorstatic java.lang.StringTEXT_SIZEText sizestatic java.lang.StringXYCURVEXY curve styling.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetBackgroundColor(java.lang.String name)Retrieve background color for an itemjava.lang.StringgetColor(java.lang.String name)Retrieve a color for an itemColorLibrarygetColorSet(java.lang.String name)Retrieve colorset for an itemjava.lang.StringgetFontFamily(java.lang.String key)Get font familydoublegetLineWidth(java.lang.String key)Get line widthdoublegetOpacity(java.lang.String key)Get opacitydoublegetSize(java.lang.String key)Get generic sizejava.lang.StringgetTextColor(java.lang.String name)Retrieve text color for an itemdoublegetTextSize(java.lang.String key)Get text sizeLineStyleLibrarylines()Get the line style library to use.MarkerLibrarymarkers()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
-
-