Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions f...
If you think the Android project Dual-Battery-Widget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/**
* Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
* //fromwww.java2s.com
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/package org.achartengine.renderer;
import java.io.Serializable;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
/**
* A descriptor for the stroke style.
*/publicclass BasicStroke implements Serializable {
/** The solid line style. */publicstaticfinal BasicStroke SOLID = new BasicStroke(Cap.BUTT, Join.MITER, 4, null, 0);
/** The dashed line style. */publicstaticfinal BasicStroke DASHED = new BasicStroke(Cap.ROUND, Join.BEVEL, 10, newfloat[] {
10, 10 }, 1);
/** The dot line style. */publicstaticfinal BasicStroke DOTTED = new BasicStroke(Cap.ROUND, Join.BEVEL, 5, newfloat[] {
2, 10 }, 1);
/** The stroke cap. */private Cap mCap;
/** The stroke join. */private Join mJoin;
/** The stroke miter. */privatefloat mMiter;
/** The path effect intervals. */privatefloat[] mIntervals;
/** The path effect phase. */privatefloat mPhase;
/**
* Build a new basic stroke style.
*
* @param cap the stroke cap
* @param join the stroke join
* @param miter the stroke miter
* @param intervals the path effect intervals
* @param phase the path effect phase
*/public BasicStroke(Cap cap, Join join, float miter, float[] intervals, float phase) {
mCap = cap;
mJoin = join;
mMiter = miter;
mIntervals = intervals;
}
/**
* Returns the stroke cap.
*
* @return the stroke cap
*/public Cap getCap() {
return mCap;
}
/**
* Returns the stroke join.
*
* @return the stroke join
*/public Join getJoin() {
return mJoin;
}
/**
* Returns the stroke miter.
*
* @return the stroke miter
*/publicfloat getMiter() {
return mMiter;
}
/**
* Returns the path effect intervals.
*
* @return the path effect intervals
*/publicfloat[] getIntervals() {
return mIntervals;
}
/**
* Returns the path effect phase.
*
* @return the path effect phase
*/publicfloat getPhase() {
return mPhase;
}
}