Back to project page markj.
The source code is released under:
GNU Lesser General Public License
If you think the Android project markj listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.markjmind.mobile.api.android.ui.drawgraph; //from w ww . ja va 2 s. c om public class SimpleStyle { public int color; public int width; public int size; public int margin; public int meansure; public Align align; public static enum Align{ NONE,LEFT,CENTER,RIGHT } public SimpleStyle(int color, int width, int size, int margin) { this.color = color; this.width = width; this.size = size; this.margin = margin; this.meansure=0; } public SimpleStyle(int color, int width, int size, int margin, Align align) { this.color = color; this.width = width; this.size = size; this.margin = margin; this.meansure=0; this.align = align; } public int getColor() { return color; } public SimpleStyle setColor(int color) { this.color = color; return this; } public int getWidth() { return width; } public SimpleStyle setWidth(int width) { this.width = width; return this; } public int getSize() { return size; } public SimpleStyle setSize(int size) { this.size = size; return this; } public int getMargin() { return margin; } public SimpleStyle setMargin(int margin) { this.margin = margin; return this; } public int getMeansure() { return meansure; } public SimpleStyle setMeansure(int meansure) { this.meansure = meansure; return this; } public Align getAlign() { return align; } public SimpleStyle setAlign(Align align) { this.align = align; return this; } }