1 26 27 package org.nightlabs.editor2d; 28 29 import java.awt.Color ; 30 31 import org.nightlabs.editor2d.j2d.GeneralShape; 32 33 public interface ShapeDrawComponent 34 extends DrawComponent, IFillable 35 { 36 public static final int STROKE_SOLID = 1; 37 public static final int STROKE_DASHED_1 = 2; 38 public static final int STROKE_DASHED_2 = 3; 39 public static final int STROKE_DASHED_3 = 4; 40 public static final int STROKE_DASHED_4 = 5; 41 42 public static final String PROP_FILL_COLOR = "fillColor"; 43 public static final String PROP_LINE_COLOR = "lineColor"; 44 public static final String PROP_LINE_STYLE = "lineStyle"; 45 public static final String PROP_LINE_WIDTH = "lineWidth"; 46 public static final String PROP_GENERAL_SHAPE = "generalShape"; 47 48 Color getFillColor(); 49 void setFillColor(Color value); 50 51 Color getLineColor(); 52 void setLineColor(Color value); 53 54 int getLineStyle(); 55 void setLineStyle(int value); 56 57 int getLineWidth(); 58 void setLineWidth(int value); 59 60 GeneralShape getGeneralShape(); 61 void setGeneralShape(GeneralShape value); 62 63 public GeneralShape getOriginalShape(); 64 } | Popular Tags |