1 8 package com.nightlabs.editor2d.edit; 9 10 import java.beans.PropertyChangeEvent ; 11 12 import com.nightlabs.editor2d.LineDrawComponent; 13 14 15 public class LineEditPart 16 extends ShapeDrawComponentEditPart 17 { 18 21 public LineEditPart(LineDrawComponent drawComponent) { 22 super(drawComponent); 23 } 24 25 public LineDrawComponent getLineDrawComponent() { 26 return (LineDrawComponent) getModel(); 27 } 28 29 protected void propertyChanged(PropertyChangeEvent evt) 30 { 31 super.propertyChanged(evt); 32 String propertyName = evt.getPropertyName(); 33 if (propertyName.equals(LineDrawComponent.PROP_CONNECT)) { 34 LOGGER.debug(propertyName +" changed!"); 35 refreshVisuals(); 36 } 37 } 38 39 } 58 | Popular Tags |