@Override public boolean isRunning() { if (m_start) { return false; } if (null != m_movie.getError()) { return false; } if (m_movie.isEnded()) { return false; } if (m_movie.isPaused()) { return false; } return true; }
private final IAnimation draw() { final Layer layer = m_movie.getLayer(); if (null != layer) { layer.batch(); } return this; }
@Override public Movie create(JSONObject node, ValidationContext ctx) throws ValidationException { Movie movie = new Movie(node, ctx); JSONValue jval = node.get("filter"); if (null != jval) { JSONObject object = jval.isObject(); if (null != object) { JSONDeserializer.get().deserializeFilters(movie, object, ctx); jval = object.get("active"); JSONBoolean active = jval.isBoolean(); if (null != active) { movie.setFiltersActive(active.booleanValue()); } } } return movie; }