예제 #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();
 }