Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.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.

Author:
Erich Schubert

Field Summary
static String AXIS
          Axis
static String AXIS_LABEL
          Axis label
static String AXIS_TICK
          Axis tick
static String AXIS_TICK_MINOR
          Axis minor tick
static String BACKGROUND_COLOR
          Background color
static String BUBBLEPLOT
          Bubble size
static String CLUSTERORDER
          Clusterorder
static String COLOR
          Color
static String COLORSET
          Color set
static String DEFAULT
          Default
static String DOTPLOT
          Dot size
static String FONT_FAMILY
          Font family
static String GENERIC_SIZE
          Generic size
static String KEY
          Key
static String LINE_WIDTH
          Line width
static String MARGIN
          Margin
static String MARKERPLOT
          Marker size
static String PAGE
          Page
static String PLOT
          Plot
static String REFERENCE_POINTS
          Reference points color and size
static double SCALE
          Scaling constant.
static String TEXT_COLOR
          Text color
static String TEXT_SIZE
          Text size
 
Method Summary
 String getBackgroundColor(String name)
          Retrieve background color for an item
 String getColor(String name)
          Retrieve a color for an item
 ColorLibrary getColorSet(String name)
          Retrieve colorset for an item
 String getFontFamily(String key)
          Get font family
 double getLineWidth(String key)
          Get line width
 double getSize(String key)
          Get generic size
 String getTextColor(String name)
          Retrieve text color for an item
 double getTextSize(String key)
          Get text size
 

Field Detail

DEFAULT

static final String DEFAULT
Default

See Also:
Constant Field Values

PAGE

static final String PAGE
Page

See Also:
Constant Field Values

PLOT

static final String PLOT
Plot

See Also:
Constant Field Values

AXIS

static final String AXIS
Axis

See Also:
Constant Field Values

AXIS_TICK

static final String AXIS_TICK
Axis tick

See Also:
Constant Field Values

AXIS_TICK_MINOR

static final String AXIS_TICK_MINOR
Axis minor tick

See Also:
Constant Field Values

AXIS_LABEL

static final String AXIS_LABEL
Axis label

See Also:
Constant Field Values

KEY

static final String KEY
Key

See Also:
Constant Field Values

CLUSTERORDER

static final String CLUSTERORDER
Clusterorder

See Also:
Constant Field Values

MARGIN

static final String MARGIN
Margin

See Also:
Constant Field Values

BUBBLEPLOT

static final String BUBBLEPLOT
Bubble size

See Also:
Constant Field Values

MARKERPLOT

static final String MARKERPLOT
Marker size

See Also:
Constant Field Values

DOTPLOT

static final String DOTPLOT
Dot size

See Also:
Constant Field Values

REFERENCE_POINTS

static final String REFERENCE_POINTS
Reference points color and size

See Also:
Constant Field Values

SCALE

static final double SCALE
Scaling constant. Keep in sync with VisualizationProjection.SCALE.

See Also:
Constant Field Values

COLOR

static final String COLOR
Color

See Also:
Constant Field Values

BACKGROUND_COLOR

static final String BACKGROUND_COLOR
Background color

See Also:
Constant Field Values

TEXT_COLOR

static final String TEXT_COLOR
Text color

See Also:
Constant Field Values

COLORSET

static final String COLORSET
Color set

See Also:
Constant Field Values

LINE_WIDTH

static final String LINE_WIDTH
Line width

See Also:
Constant Field Values

TEXT_SIZE

static final String TEXT_SIZE
Text size

See Also:
Constant Field Values

FONT_FAMILY

static final String FONT_FAMILY
Font family

See Also:
Constant Field Values

GENERIC_SIZE

static final String GENERIC_SIZE
Generic size

See Also:
Constant Field Values
Method Detail

getColor

String getColor(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

String getBackgroundColor(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

String getTextColor(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(String name)
Retrieve colorset for an item

Parameters:
name - Reference name
Returns:
color library

getLineWidth

double getLineWidth(String key)
Get line width

Parameters:
key - Key
Returns:
line width as double

getSize

double getSize(String key)
Get generic size

Parameters:
key - Key
Returns:
size as double

getTextSize

double getTextSize(String key)
Get text size

Parameters:
key - Key
Returns:
line width as double

getFontFamily

String getFontFamily(String key)
Get font family

Parameters:
key - Key
Returns:
font family CSS string

Release 0.3 (2010-03-31_1612)