diff options
Diffstat (limited to 'examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/ToolSettings.java')
-rwxr-xr-x | examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/ToolSettings.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/ToolSettings.java b/examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/ToolSettings.java new file mode 100755 index 0000000000..3afeba079a --- /dev/null +++ b/examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/ToolSettings.java @@ -0,0 +1,27 @@ +package org.eclipse.swt.examples.paint;
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
import org.eclipse.swt.graphics.*;
+
/**
* Tool Settings objects group tool-related configuration information.
*/
+public class ToolSettings {
+ public static final int ftNone = 0, ftOutline = 1, ftSolid = 2;
/**
+ * commonForegroundColor: current tool foreground colour
+ */
+ public Color commonForegroundColor;
+
+ /**
+ * commonBackgroundColor: current tool background colour
+ */
+ public Color commonBackgroundColor;
+
/**
* commonFont: current font
*/
public Font commonFont;
/**
* commonFillType: current fill type
* <p>
* One of ftNone, ftOutline, ftSolid.
* </p>
*/
public int commonFillType = ftNone;
+ /**
+ * airbrushRadius: coverage radius in pixels
+ */
+ public int airbrushRadius = 10;
+
+ /**
+ * airbrushIntensity: average surface area coverage in region defined by radius per "jot"
+ */
+ public int airbrushIntensity = 30;
/**
* roundedRectangleCornerDiameter: the diameter of curvature of corners in a rounded rectangle
*/
public int roundedRectangleCornerDiameter = 16;
}
|