api: remove IRenderTheme.scaleStrokeWidth()
This commit is contained in:
parent
aa5f11e754
commit
1c7473e534
@ -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.
|
||||
*
|
||||
|
||||
@ -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) {
|
||||
|
||||
|
||||
@ -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.
|
||||
*
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user