-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyle.java
More file actions
55 lines (41 loc) · 1.6 KB
/
Style.java
File metadata and controls
55 lines (41 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package javaxt.cartography;
import java.awt.Color;
import java.awt.Graphics2D;
//******************************************************************************
//** Style Class - By Peter Borissow
//******************************************************************************
/**
* Enter class description
*
******************************************************************************/
public class Style {
private java.awt.Graphics2D g2d;
//**************************************************************************
//** Creates a new instance of Style
//**************************************************************************
public Style(java.awt.Graphics2D g2d){
this.g2d = g2d;
}
//**************************************************************************
//** getGraphics
//**************************************************************************
/** Used to retrieve the current graphics object */
public java.awt.Graphics2D getGraphics(){
return g2d;
}
//**************************************************************************
//** setLineColor
//**************************************************************************
/** Set Active Line Color */
public void setLineColor(int r, int g, int b){
//g2d.setColor(Color.BLACK);
Color myColor = new Color (r, g, b);
g2d.setColor(myColor);
}
public void setLineWieght(){
}
public void setLineStyle(){
}
public void setFillColor(){
}
}