public class SVGButton
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
private CSSClass | 
butcss
Class for the buttons main CSS 
 | 
static java.lang.String | 
DEFAULT_BUTTON_COLOR
Default button color 
 | 
static java.lang.String | 
DEFAULT_TEXT_COLOR
Default text color 
 | 
private double | 
h
Height 
 | 
private double | 
r
Corner rounding factor. 
 | 
private java.lang.String | 
title
Button title, optional 
 | 
private CSSClass | 
titlecss
Title styling 
 | 
private double | 
w
Width 
 | 
private double | 
x
X position 
 | 
private double | 
y
Y position 
 | 
| Constructor and Description | 
|---|
SVGButton(double x,
         double y,
         double w,
         double h,
         double r)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
org.w3c.dom.Element | 
render(SVGPlot svgp)
Produce the actual SVG elements for the button. 
 | 
void | 
setTitle(java.lang.String title,
        java.lang.String textcolor)
Set the button title 
 | 
public static final java.lang.String DEFAULT_BUTTON_COLOR
public static final java.lang.String DEFAULT_TEXT_COLOR
private double x
private double y
private double w
private double h
private double r
private CSSClass butcss
private java.lang.String title
private CSSClass titlecss
public SVGButton(double x,
                 double y,
                 double w,
                 double h,
                 double r)
x - Position Xy - Position Yw - Widthh - Heightr - Rounded radiuspublic org.w3c.dom.Element render(SVGPlot svgp)
svgp - Plot to draw topublic void setTitle(java.lang.String title,
                     java.lang.String textcolor)
title - Button titletextcolor - ColorCopyright © 2019 ELKI Development Team. License information.