示例#1
0
 public void setBackgroundColor(org.eclipse.swt.graphics.Color color) {
   if (activeBackgroundColorCanvas != null) {
     activeBackgroundColorCanvas.setBackground(color);
   }
   toolSettings.commonBackgroundColor = color;
   updateToolSettings();
 }
示例#2
0
 /** Selects a tool given its ID. */
 public void setPaintTool(int id) {
   PaintTool paintTool = (PaintTool) PaintExample.tools[id].data;
   paintSurface.setPaintSession(paintTool);
   updateToolSettings();
 }
示例#3
0
 /** Selects line type given its ID. */
 public void setLineStyle(int id) {
   Integer lineType = (Integer) PaintExample.tools[id].data;
   toolSettings.commonLineStyle = lineType.intValue();
   updateToolSettings();
 }
示例#4
0
 /**
  * Sets the tool foreground color.
  *
  * @param color the new color to use
  */
 public void setForegroundColor(Color color) {
   if (activeForegroundColorCanvas != null) activeForegroundColorCanvas.setBackground(color);
   toolSettings.commonForegroundColor = color;
   updateToolSettings();
 }
示例#5
0
 /** Selects a filltype given its ID. */
 public void setFillType(int id) {
   Integer fillType = (Integer) PaintExample.tools[id].data;
   toolSettings.commonFillType = fillType.intValue();
   updateToolSettings();
 }
示例#6
0
 public void setLineStyle(int id) {
   java.lang.Integer lineType = (java.lang.Integer) tools[id].data;
   toolSettings.commonLineStyle = lineType.intValue();
   updateToolSettings();
 }
示例#7
0
 public void setFillType(int id) {
   java.lang.Integer fillType = (java.lang.Integer) tools[id].data;
   toolSettings.commonFillType = fillType.intValue();
   updateToolSettings();
 }
示例#8
0
 public void setPaintTool(int id) {
   org.eclipse.swt.examples.paint.PaintTool paintTool =
       (org.eclipse.swt.examples.paint.PaintTool) tools[id].data;
   paintSurface.setPaintSession(paintTool);
   updateToolSettings();
 }