Skip to main content
summaryrefslogtreecommitdiffstats
blob: d3975afa07db335913d543b69395b0e6c3ffe4fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.eclipse.fx.testcases.fxgraph;

import javafx.beans.property.SimpleDoubleProperty;
import javafx.scene.control.Button;

public class MyButton extends Button {
	private SimpleDoubleProperty scaleFactor = new SimpleDoubleProperty(this,
			"scaleFactor", 1.0);

	public MyButton() {
		setText("This is my bu");
	}
	
	public final SimpleDoubleProperty scaleFactorProperty() {
		return scaleFactor;
	}

	public double getScaleFactor() {
		return scaleFactor.get();
	}

	public void setScaleFactor(double scale) {
		scaleFactor.set(scale);
	}
}

Back to the top