diff --git a/vtm/src/org/oscim/theme/IRenderTheme.java b/vtm/src/org/oscim/theme/IRenderTheme.java index fe1a6f81..854afc80 100644 --- a/vtm/src/org/oscim/theme/IRenderTheme.java +++ b/vtm/src/org/oscim/theme/IRenderTheme.java @@ -56,14 +56,6 @@ public interface IRenderTheme { */ public abstract int getMapBackground(); - /** - * Scales the stroke width of this RenderTheme by the given factor. - * - * @param scaleFactor - * the factor by which the stroke width should be scaled. - */ - public abstract void scaleStrokeWidth(float scaleFactor); - /** * Scales the text size of this RenderTheme by the given factor. * diff --git a/vtm/src/org/oscim/theme/RenderTheme.java b/vtm/src/org/oscim/theme/RenderTheme.java index e75839da..e7448ae4 100644 --- a/vtm/src/org/oscim/theme/RenderTheme.java +++ b/vtm/src/org/oscim/theme/RenderTheme.java @@ -38,7 +38,6 @@ public class RenderTheme implements IRenderTheme { private static final int MATCHING_CACHE_SIZE = 512; - private final float mBaseStrokeWidth; private final float mBaseTextSize; private final int mMapBackground; @@ -78,7 +77,6 @@ public class RenderTheme implements IRenderTheme { public RenderTheme(int mapBackground, float baseStrokeWidth, float baseTextSize) { mMapBackground = mapBackground; - mBaseStrokeWidth = baseStrokeWidth; mBaseTextSize = baseTextSize; mElementCache = new ElementCache[3]; @@ -253,13 +251,6 @@ public class RenderTheme implements IRenderTheme { } } - @Override - public void scaleStrokeWidth(float scaleFactor) { - - for (int i = 0, n = mRules.length; i < n; i++) - mRules[i].scaleStrokeWidth(scaleFactor * mBaseStrokeWidth); - } - @Override public void scaleTextSize(float scaleFactor) { diff --git a/vtm/src/org/oscim/theme/renderinstruction/RenderInstruction.java b/vtm/src/org/oscim/theme/renderinstruction/RenderInstruction.java index ea5e1308..b146c490 100644 --- a/vtm/src/org/oscim/theme/renderinstruction/RenderInstruction.java +++ b/vtm/src/org/oscim/theme/renderinstruction/RenderInstruction.java @@ -43,15 +43,6 @@ public abstract class RenderInstruction { public void renderWay(Callback renderCallback) { } - /** - * Scales the stroke width of this RenderInstruction by the given factor. - * - * @param scaleFactor - * the factor by which the stroke width should be scaled. - */ - public void scaleStrokeWidth(float scaleFactor) { - } - /** * Scales the text size of this RenderInstruction by the given factor. * diff --git a/vtm/src/org/oscim/theme/rule/Rule.java b/vtm/src/org/oscim/theme/rule/Rule.java index 20849d96..1ad33b48 100644 --- a/vtm/src/org/oscim/theme/rule/Rule.java +++ b/vtm/src/org/oscim/theme/rule/Rule.java @@ -280,14 +280,6 @@ public abstract class Rule { subRule.onDestroy(); } - public void scaleStrokeWidth(float scaleFactor) { - for (RenderInstruction ri : mRenderInstructions) - ri.scaleStrokeWidth(scaleFactor); - - for (Rule subRule : mSubRules) - subRule.scaleStrokeWidth(scaleFactor); - } - public void scaleTextSize(float scaleFactor) { for (RenderInstruction ri : mRenderInstructions) ri.scaleTextSize(scaleFactor);