下面列出了javax.swing.text.html.CSS.Value#GROOVE 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}
public void paint(Polygon shape, Graphics g, Color color, int side) {
Rectangle r = shape.getBounds();
int length = Math.max(r.height / 2, 1);
int[] lengthPattern = { length, length };
Color[] colorPattern =
((side + 1) % 4 < 2) == (type == Value.GROOVE) ?
new Color[] { getShadowColor(color), getLightColor(color) } :
new Color[] { getLightColor(color), getShadowColor(color) };
paintStrokes(r, g, View.Y_AXIS, lengthPattern, colorPattern);
}