@Override public void setAutomaticChecked(Boolean value) { try { Checker.checkIfNotNull(value); switch (this.keepAutomaticChecked()) { case ALWAYS: { this.isAutomaticChecked = true; break; } case NEVER: { this.isAutomaticChecked = false; break; } case CHOICE: { this.isAutomaticChecked = value; break; } default: { break; } } } catch (Exception ex) { throw ex; } }
@Override public void setSpeed(Integer value) { try { Checker.checkIfNotNull(value); speed = value; } catch (Exception ex) { throw ex; } }
@Override public void setAutomaticPlay(Boolean value) { try { Checker.checkIfNotNull(value); isAutomaticPlay = value; } catch (Exception ex) { throw ex; } }
@Override public void setSurface(EnumSurface surface) { try { Checker.checkIfNotNull(surface); this.surface = surface; this.updateViews(); } catch (Exception ex) { throw ex; } }
@Override public void setStatus(EnumVisualizationStatus status) { try { Checker.checkIfNotNull(status); this.status = status; this.updateViews(); } catch (Exception ex) { throw ex; } }
@Override public void setSize(Integer height, Integer width) { try { Checker.checkIfNotNull(height); Checker.checkIfNotNull(width); int widthOld = this.width.intValue(); int heightOld = this.height.intValue(); int widthNew = width.intValue(); int heightNew = height.intValue(); if ((widthOld != widthNew) || (heightOld != heightNew)) { this.height = height; this.width = width; this.updateSize(); this.updateViews(); } } catch (Exception ex) { throw ex; } }
@Override public void setWidth(Integer width) { try { Checker.checkIfNotNull(width); this.width = width; this.updateSize(); } catch (Exception ex) { throw ex; } }
@Override public void setHeight(Integer height) { try { Checker.checkIfNotNull(height); this.height = height; this.updateSize(); } catch (Exception ex) { throw ex; } }