Revision 1848 org.gvsig.legend.aggregate/trunk/org.gvsig.legend.aggregate/org.gvsig.legend.aggregate.lib/org.gvsig.legend.aggregate.lib.impl/src/main/java/org/gvsig/legend/aggregate/lib/impl/DefaultAggregateLegend.java
DefaultAggregateLegend.java | ||
---|---|---|
13 | 13 |
import java.util.ArrayList; |
14 | 14 |
import java.util.List; |
15 | 15 |
import java.util.Map; |
16 |
import java.util.logging.Level; |
|
17 | 16 |
import javax.swing.UIManager; |
18 | 17 |
|
19 | 18 |
import org.cresques.cts.ICoordTrans; |
... | ... | |
43 | 42 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.SimpleLineSymbol; |
44 | 43 |
import org.gvsig.tools.exception.BaseException; |
45 | 44 |
import org.gvsig.tools.logger.FilteredLogger; |
45 |
import org.gvsig.tools.persistence.PersistentState; |
|
46 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
|
46 | 47 |
import org.gvsig.tools.task.Cancellable; |
47 | 48 |
import org.gvsig.tools.visitor.VisitCanceledException; |
48 | 49 |
import org.gvsig.tools.visitor.Visitor; |
... | ... | |
411 | 412 |
this.fireDefaultSymbolChangedEvent(new SymbolLegendEvent(null,null)); |
412 | 413 |
} |
413 | 414 |
} |
415 |
|
|
416 |
@Override |
|
417 |
public void loadFromState(PersistentState state) throws PersistenceException { |
|
418 |
super.loadFromState(state); |
|
419 |
this.symbolSize = state.getInt("symbolSize"); |
|
420 |
this.fillColor = (Color) state.get("fillColor"); |
|
421 |
this.outlineColor = (Color) state.get("outlineColor"); |
|
422 |
this.textColor = (Color) state.get("textColor"); |
|
423 |
this.showBounds = state.getBoolean("showBounds"); |
|
424 |
this.font = (Font) state.get("font"); |
|
425 |
this.useStyle = state.getBoolean("useStyle"); |
|
426 |
this.labelStyle = (ILabelStyle) state.get("labelStyle"); |
|
427 |
this.operation = (Operation) state.get("operation"); |
|
428 |
} |
|
429 |
|
|
430 |
@Override |
|
431 |
public void saveToState(PersistentState state) throws PersistenceException { |
|
432 |
super.saveToState(state); |
|
433 |
state.set("symbolSize", symbolSize); |
|
434 |
state.set("fillColor", fillColor); |
|
435 |
state.set("outlineColor", outlineColor); |
|
436 |
state.set("textColor", textColor); |
|
437 |
state.set("showBounds", showBounds); |
|
438 |
state.set("font", font); |
|
439 |
state.set("useStyle", useStyle); |
|
440 |
state.set("labelStyle", labelStyle); |
|
441 |
state.set("operation", operation); |
|
442 |
} |
|
414 | 443 |
} |
Also available in: Unified diff