Back to project page android-plotter.
The source code is released under:
Apache License
If you think the Android project android-plotter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright 2013 serso aka se.solovyev// ww w .ja v a2 s. c o m * * 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. * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Contact details * * Email: se.solovyev@gmail.com * Site: http://se.solovyev.org */ package org.solovyev.android.plotter; import android.graphics.Color; import javax.annotation.Nonnull; public final class AxisStyle { private static final int DEFAULT_AXIS_COLOR = 0xff00a000; private static final int DEFAULT_GRID_COLOR = 0xff004000; private static final int DEFAULT_BACKGROUND_COLOR = Color.BLACK; public int axisColor = DEFAULT_AXIS_COLOR; public int axisLabelsColor = DEFAULT_AXIS_COLOR; public int gridColor = DEFAULT_GRID_COLOR; public int backgroundColor = DEFAULT_BACKGROUND_COLOR; private AxisStyle() { } @Nonnull public static AxisStyle create() { return new AxisStyle(); } @Nonnull public AxisStyle copy() { final AxisStyle copy = new AxisStyle(); copy.axisColor = axisColor; copy.axisLabelsColor = axisLabelsColor; copy.gridColor = gridColor; copy.backgroundColor = backgroundColor; return copy; } }