Class OptimizeFilter
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.intermediate.filters.StreamingFilter
-
- de.erichseifert.vectorgraphics2d.intermediate.filters.OptimizeFilter
-
- All Implemented Interfaces:
CommandSequence,Filter,java.lang.Iterable<Command<?>>,java.util.Iterator<Command<?>>
public class OptimizeFilter extends StreamingFilter
-
-
Constructor Summary
Constructors Constructor Description OptimizeFilter(CommandSequence stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Command<?>>filter(Command<?> command)booleanhasNext()private static booleanisStateChange(Command<?> command)Command<?>next()-
Methods inherited from class de.erichseifert.vectorgraphics2d.intermediate.filters.StreamingFilter
iterator, remove
-
-
-
-
Field Detail
-
buffer
private final java.util.Queue<Command<?>> buffer
-
-
Constructor Detail
-
OptimizeFilter
public OptimizeFilter(CommandSequence stream)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<Command<?>>- Overrides:
hasNextin classStreamingFilter
-
next
public Command<?> next()
- Specified by:
nextin interfacejava.util.Iterator<Command<?>>- Overrides:
nextin classStreamingFilter
-
filter
protected java.util.List<Command<?>> filter(Command<?> command)
- Specified by:
filterin classStreamingFilter
-
isStateChange
private static boolean isStateChange(Command<?> command)
-
-