Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Kaufman2012-04-04 17:28:24 +0000
committerJames Kaufman2012-04-04 17:28:24 +0000
commit134dae40bf8b5c559f2b49df1b97a35c2d86cc80 (patch)
tree18a4e4fe5dd597742e0d19ea0d9178506df88ad4 /analysis/org.eclipse.stem.util.analysis/src
parent110da03873f968e9647db915f238b33c7e911ba7 (diff)
downloadorg.eclipse.stem-134dae40bf8b5c559f2b49df1b97a35c2d86cc80.tar.gz
org.eclipse.stem-134dae40bf8b5c559f2b49df1b97a35c2d86cc80.tar.xz
org.eclipse.stem-134dae40bf8b5c559f2b49df1b97a35c2d86cc80.zip
Re: Bug 375126
The bug was caused by a change to BIRT. BIRT now uses palette colors by default. To set custom colors we must always first issue lineSeries.setPaletteLineColor(false); git-svn-id: http://dev.eclipse.org/svnroot/technology/org.eclipse.stem/trunk@2956 92a21009-5b66-0410-b83a-dc787c41c6e9
Diffstat (limited to 'analysis/org.eclipse.stem.util.analysis/src')
-rw-r--r--analysis/org.eclipse.stem.util.analysis/src/org/eclipse/stem/util/analysis/views/LyapunovTrajectoryCanvas.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/analysis/org.eclipse.stem.util.analysis/src/org/eclipse/stem/util/analysis/views/LyapunovTrajectoryCanvas.java b/analysis/org.eclipse.stem.util.analysis/src/org/eclipse/stem/util/analysis/views/LyapunovTrajectoryCanvas.java
index 77060d969..37510167e 100644
--- a/analysis/org.eclipse.stem.util.analysis/src/org/eclipse/stem/util/analysis/views/LyapunovTrajectoryCanvas.java
+++ b/analysis/org.eclipse.stem.util.analysis/src/org/eclipse/stem/util/analysis/views/LyapunovTrajectoryCanvas.java
@@ -93,10 +93,13 @@ public class LyapunovTrajectoryCanvas extends Canvas {
double maxX = -1.0;
double maxY = -1.0;
- ColorDefinition[] lineColors = { ColorDefinitionImpl.RED(),
- ColorDefinitionImpl.BLUE(), ColorDefinitionImpl.ORANGE(),
- ColorDefinitionImpl.YELLOW(), ColorDefinitionImpl.GREEN(),
- ColorDefinitionImpl.PINK(), ColorDefinitionImpl.BLACK() };
+ ColorDefinition[] lineColors = { ColorDefinitionImpl.RED(),
+ ColorDefinitionImpl.BLUE(),
+ ColorDefinitionImpl.ORANGE(),
+ ColorDefinitionImpl.YELLOW(),
+ ColorDefinitionImpl.GREEN(),
+ ColorDefinitionImpl.PINK(),
+ ColorDefinitionImpl.BLACK() };
/**
* TODO eventually this should not be hard coded but should be based on the
@@ -361,6 +364,10 @@ public class LyapunovTrajectoryCanvas extends Canvas {
// the default line color
for (int i = 0; i < lsList.size(); i++) {
ColorDefinition color = ColorDefinitionImpl.BLUE();
+ // fix to bug 375126
+ // The latest version of birt uses Palette colors by default. In order to set the color the way we want
+ // we must first issue the following line
+ lsList.get(i).setPaletteLineColor(false);
lsList.get(i).getLineAttributes().setColor(color);
}
return;

Back to the top