ShowBaseShapePropertiesEvent.java :  » Math » migen » uk » ac » lkl » migen » system » expresser » ui » uievent » Java Open Source

Java Open Source » Math » migen 
migen » uk » ac » lkl » migen » system » expresser » ui » uievent » ShowBaseShapePropertiesEvent.java
/**
 * 
 */
package uk.ac.lkl.migen.system.expresser.ui.uievent;

/**
 * A representation of the event when a user clicks on a property list in order
 * to display the property list of the base shape that is being repeated.
 * 
 * 
 * @author Ken Kahn
 * 
 */
public class ShowBaseShapePropertiesEvent extends UIEvent<String> {

    protected String baseShapeId;

    public ShowBaseShapePropertiesEvent(String shapeId, String baseShapeId) {
  super(shapeId);
  this.baseShapeId = baseShapeId;
    }

    @Override
    public String logMessage() {
  return "Show properties of base shape of selected pattern clicked (shape: "
    + getBlockShapeId()
    + " base shape: "
    + getBaseShapeid()
    + ")";
    }

    public String getBlockShapeId() {
  return getSource();
    }

    public String getBaseShapeid() {
  return baseShapeId;
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.