1 7 package com.nightlabs.editor2d; 8 9 import java.awt.Color ; 10 11 import com.nightlabs.editor2d.j2d.GeneralShape; 12 13 public interface ShapeDrawComponent 14 extends DrawComponent, IFillable 15 { 16 public static final int STROKE_SOLID = 1; 17 public static final int STROKE_DASHED_1 = 2; 18 public static final int STROKE_DASHED_2 = 3; 19 public static final int STROKE_DASHED_3 = 4; 20 public static final int STROKE_DASHED_4 = 5; 21 22 public static final String PROP_FILL_COLOR = "fillColor"; 23 public static final String PROP_LINE_COLOR = "lineColor"; 24 public static final String PROP_LINE_STYLE = "lineStyle"; 25 public static final String PROP_LINE_WIDTH = "lineWidth"; 26 public static final String PROP_GENERAL_SHAPE = "generalShape"; 27 28 Color getFillColor(); 29 void setFillColor(Color value); 30 31 Color getLineColor(); 32 void setLineColor(Color value); 33 34 int getLineStyle(); 35 void setLineStyle(int value); 36 37 int getLineWidth(); 38 void setLineWidth(int value); 39 40 GeneralShape getGeneralShape(); 41 void setGeneralShape(GeneralShape value); 42 } | Popular Tags |