public LineStripExamplePainter( ) { this.strip = new LineStrip( 64 ); // Set line appearance (except for thickness, which is set in doPaintTo) this.style = new LineStyle( ); style.thickness_PX = 4; style.joinType = JOIN_MITER; style.rgba = floats( 0.7f, 0, 0, 1 ); //style.stippleEnable = true; //style.stippleScale = 2; //style.stipplePattern = 0b0001010111111111; // Create the shader program for drawing lines this.prog = new LineProgram( ); }
public ContourPainter( float[] coordsX, float[] coordsY ) { this.path = new LinePath( ); this.style = new LineStyle( ); this.program = new LineProgram( ); this.coordsX = coordsX; this.coordsY = coordsY; int size = Math.min( coordsX.length, coordsY.length ); for ( int i = 0; i < size - 1; i += 2 ) { this.path.moveTo( coordsX[i], coordsY[i] ); this.path.lineTo( coordsX[i + 1], coordsY[i + 1] ); } }
public CustomLinesPainter( Tag leftAngleTag_CWDEG, Tag rightAngleTag_CWDEG, Tag thicknessTag_PX, Tag featherTag_PX ) { // Create a path, which will be populated in doPaintTo() this.strip = new LineStrip( ); // Set line appearance this.style = new LineStyle( ); this.style.joinType = JOIN_MITER; this.style.rgba = floats( 0.7f, 0, 0, 0.5f ); // Create the shader program for drawing lines this.prog = new LineProgram( ); this.angleTagB_CWDEG = leftAngleTag_CWDEG; this.angleTagC_CWDEG = rightAngleTag_CWDEG; this.thicknessTag_PX = thicknessTag_PX; this.featherTag_PX = featherTag_PX; }
this.style = new LineStyle( ); style.thickness_PX = 5; style.feather_PX = 2;
tracks.put( i, track ); LineStyle style = new LineStyle( ); style.thickness_PX = 5f; style.stippleEnable = true;
public static XYLinePainter createXYLinePainter1( ) { // add two data series to the plot float[] dataX = new float[NUM_POINTS]; float[] dataY = new float[NUM_POINTS]; XYLinePainter series1 = new XYLinePainter( ); generateData1( dataX, dataY, NUM_POINTS ); series1.setData( dataX, dataY, GlimpseColor.fromColorRgba( 1.0f, 0.0f, 0.0f, 1.0f ) ); LineStyle style = new LineStyle( ); style.thickness_PX = 3.5f; style.joinType = LineJoinType.JOIN_BEVEL; series1.setLineStyle( style ); series1.showPoints( true ); series1.setPointSize( 8f ); series1.setPointFeather( 4.0f ); return series1; }
LineStyle style = new LineStyle( ); style.joinType = LineJoinType.JOIN_MITER;