@Override
    protected void update() {
      int connectionType = fConnection.getType();

      if ((connectionType & IDiagramModelConnection.LINE_DASHED) != 0) {
        fValue = IDiagramModelConnection.LINE_DASHED;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.LINE_DASHED));
      } else if ((connectionType & IDiagramModelConnection.LINE_DOTTED) != 0) {
        fValue = IDiagramModelConnection.LINE_DOTTED;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.LINE_DOTTED));
      } else {
        fValue = IDiagramModelConnection.LINE_SOLID;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.LINE_SOLID));
      }
    }
    @Override
    protected void update() {
      int connectionType = fConnection.getType();

      if ((connectionType & IDiagramModelConnection.ARROW_FILL_TARGET) != 0) {
        fValue = IDiagramModelConnection.ARROW_FILL_TARGET;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.ARROW_TARGET_FILL));
      } else if ((connectionType & IDiagramModelConnection.ARROW_HOLLOW_TARGET) != 0) {
        fValue = IDiagramModelConnection.ARROW_HOLLOW_TARGET;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.ARROW_TARGET_HOLLOW));
      } else if ((connectionType & IDiagramModelConnection.ARROW_LINE_TARGET) != 0) {
        fValue = IDiagramModelConnection.ARROW_LINE_TARGET;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.ARROW_TARGET_LINE));
      } else {
        fValue = IDiagramModelConnection.ARROW_NONE;
        fButton.setImage(IZentaImages.ImageFactory.getImage(IZentaImages.LINE_SOLID));
      }
    }
 @Override
 public Image getImage() {
   return IZentaImages.ImageFactory.getImage(IZentaImages.ICON_DIAGRAM_16);
 }
Exemplo n.º 4
0
 @Override
 public Image getImage() {
   return IZentaImages.ImageFactory.getImage(IZentaImages.ICON_MODELS_16);
 }