Пример #1
0
  public void setKernelAccuracyPercent(int kernelAccuracyPercent) throws PropertyVetoException {
    int temp = _kernelAccuracyPercent;
    fireVetoableChange(this, KERNEL_ACCURACY_PERCENT, temp, kernelAccuracyPercent);

    _kernelAccuracyPercent = kernelAccuracyPercent;
    _kernel = Kernel.getJAIKernel(getRadius(), _kernelAccuracyPercent);

    firePropertyChange(this, KERNEL_ACCURACY_PERCENT, temp, kernelAccuracyPercent);
  }
Пример #2
0
  public void setRadius(int radius) throws PropertyVetoException {
    int temp = _radius;
    fireVetoableChange(this, RADIUS, temp, radius);

    _radius = radius;
    _kernel = Kernel.getJAIKernel(_radius, getKernelAccuracyPercent());

    firePropertyChange(this, RADIUS, temp, radius);
  }