public void setBackgroundColor(org.eclipse.swt.graphics.Color color) { if (activeBackgroundColorCanvas != null) { activeBackgroundColorCanvas.setBackground(color); } toolSettings.commonBackgroundColor = color; updateToolSettings(); }
/** Selects a tool given its ID. */ public void setPaintTool(int id) { PaintTool paintTool = (PaintTool) PaintExample.tools[id].data; paintSurface.setPaintSession(paintTool); updateToolSettings(); }
/** Selects line type given its ID. */ public void setLineStyle(int id) { Integer lineType = (Integer) PaintExample.tools[id].data; toolSettings.commonLineStyle = lineType.intValue(); updateToolSettings(); }
/** * 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(); }
/** Selects a filltype given its ID. */ public void setFillType(int id) { Integer fillType = (Integer) PaintExample.tools[id].data; toolSettings.commonFillType = fillType.intValue(); updateToolSettings(); }
public void setLineStyle(int id) { java.lang.Integer lineType = (java.lang.Integer) tools[id].data; toolSettings.commonLineStyle = lineType.intValue(); updateToolSettings(); }
public void setFillType(int id) { java.lang.Integer fillType = (java.lang.Integer) tools[id].data; toolSettings.commonFillType = fillType.intValue(); updateToolSettings(); }
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(); }