From df822bea2a5a51954af3783d8e53432be499093d Mon Sep 17 00:00:00 2001 From: Michael Hoffer Date: Tue, 30 May 2017 15:09:03 +0200 Subject: [PATCH] New skipEmptyViewCallInSetValue param option added for type-representations. Enabling this property allows for smooth animations produced by successive method calls. Should fix issue #71 : https://github.com/VRL-Studio/VRL/issues/71 --- .../eu/mihosoft/vrl/reflection/TypeRepresentationBase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VRL/src/eu/mihosoft/vrl/reflection/TypeRepresentationBase.java b/VRL/src/eu/mihosoft/vrl/reflection/TypeRepresentationBase.java index a1cdb434..0613faa7 100644 --- a/VRL/src/eu/mihosoft/vrl/reflection/TypeRepresentationBase.java +++ b/VRL/src/eu/mihosoft/vrl/reflection/TypeRepresentationBase.java @@ -752,7 +752,7 @@ protected Message getEmptyInputDataMessage() { @Override public void setValue(final Object o) { - if (!skipEmptyViewCallInSetValue&&o!=null) { + if (!skipEmptyViewCallInSetValue) { VSwingUtil.invokeLater(new Runnable() { @Override public void run() { @@ -1819,7 +1819,7 @@ public void disableSerialization() { /** * Defines whether to skip {@link TypeRepresentation#emptyView()} call in - * {@link TypeRepresentation#setValue(java.lang.Object) } if the object to visualize is not null. + * {@link TypeRepresentation#setValue(java.lang.Object) }. * * @param skip value which determins whether to skip */ @@ -1829,7 +1829,7 @@ protected void setSkipEmptyViewCallInSetValue(boolean skip) { /** * Indicates whether {@link TypeRepresentation#emptyView()} call is skipped in - * {@link TypeRepresentation#setValue(java.lang.Object) } if the object to visualize is not null. + * {@link TypeRepresentation#setValue(java.lang.Object) }. * * @return {@code true} if skipped; {@code false} otherwise */