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)
boolean
hasNext()
private static boolean
isStateChange(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:
hasNext
in interfacejava.util.Iterator<Command<?>>
- Overrides:
hasNext
in classStreamingFilter
-
next
public Command<?> next()
- Specified by:
next
in interfacejava.util.Iterator<Command<?>>
- Overrides:
next
in classStreamingFilter
-
filter
protected java.util.List<Command<?>> filter(Command<?> command)
- Specified by:
filter
in classStreamingFilter
-
isStateChange
private static boolean isStateChange(Command<?> command)
-
-