• R/O
  • SSH
  • HTTPS

copper: Commit


Commit MetaInfo

Revision1632 (tree)
Zeit2022-06-16 10:22:06
Autormiyabe

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- copper/trunk/homare/pom.xml (revision 1631)
+++ copper/trunk/homare/pom.xml (revision 1632)
@@ -9,7 +9,7 @@
99 <groupId>net.zamasoft</groupId>
1010 <artifactId>homare</artifactId>
1111 <packaging>jar</packaging>
12- <version>3.2.16</version>
12+ <version>3.2.17</version>
1313 <name>Homare</name>
1414 <description>印刷向けのHTML/CSSレンダリングエンジンです。</description>
1515 <url>https://copper.osdn.jp/homare/</url>
--- copper/trunk/homare/src/main/java/jp/cssj/homare/css/value/ColorValue.java (revision 1631)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/css/value/ColorValue.java (revision 1632)
@@ -9,7 +9,7 @@
99 * @author MIYABE Tatsuhiko
1010 * @version $Id$
1111 */
12-public class ColorValue implements PaintValue {
12+public class ColorValue implements PaintValue, Color {
1313 protected final Color color;
1414
1515 public ColorValue(Color color) {
@@ -27,7 +27,34 @@
2727 public final short getValueType() {
2828 return Value.TYPE_COLOR;
2929 }
30-
30+ public short getPaintType() {
31+ return this.color.getPaintType();
32+ }
33+
34+ public short getColorType() {
35+ return this.color.getColorType();
36+ }
37+
38+ public float getRed() {
39+ return this.color.getRed();
40+ }
41+
42+ public float getGreen() {
43+ return this.color.getGreen();
44+ }
45+
46+ public float getBlue() {
47+ return this.color.getBlue();
48+ }
49+
50+ public float getAlpha() {
51+ return this.color.getAlpha();
52+ }
53+
54+ public float getComponent(int i) {
55+ return this.color.getComponent(i);
56+ }
57+
3158 public boolean equals(Object o) {
3259 if (o instanceof ColorValue) {
3360 return ((ColorValue)o).getColor().equals(this.color);
--- copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/lang/BreakAllHyphenation.java (revision 1631)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/lang/BreakAllHyphenation.java (revision 1632)
@@ -1,13 +1,19 @@
11 package jp.cssj.homare.impl.css.lang;
22
3-import jp.cssj.sakae.gc.text.hyphenation.Hyphenation;
3+import jp.cssj.sakae.gc.text.hyphenation.impl.JapaneseHyphenation;
44
5-public class BreakAllHyphenation implements Hyphenation {
5+public class BreakAllHyphenation extends JapaneseHyphenation {
66 public boolean atomic(char c1, char c2) {
7+ if (this.isCJK(c1) && this.isCJK(c2)) {
8+ return super.atomic(c1, c2);
9+ }
710 return false;
811 }
9-
12+
1013 public boolean canSeparate(char c1, char c2) {
14+ if (this.isCJK(c1) && this.isCJK(c2)) {
15+ return super.canSeparate(c1, c2);
16+ }
1117 return true;
1218 }
1319
--- copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/BrokenImage.java (revision 1631)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/BrokenImage.java (revision 1632)
@@ -64,7 +64,7 @@
6464
6565 gc.setLineWidth(3.0);
6666 gc.setLinePattern(GC.STROKE_SOLID);
67- gc.setStrokePaint(ColorValueUtils.RED);
67+ gc.setStrokePaint(ColorValueUtils.RED.getColor());
6868
6969 path.reset();
7070 path.moveTo(x + 5f, y + 5f);
--- copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/CheckBoxImage.java (revision 1631)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/CheckBoxImage.java (revision 1632)
@@ -43,8 +43,8 @@
4343 path.lineTo(12, 2);
4444 Shape check = path;
4545
46- gc.setFillPaint(this.disabled ? ColorValueUtils.LIGHTGRAY : ColorValueUtils.WHITE);
47- gc.setStrokePaint(this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK);
46+ gc.setFillPaint((this.disabled ? ColorValueUtils.LIGHTGRAY : ColorValueUtils.WHITE).getColor());
47+ gc.setStrokePaint((this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK).getColor());
4848 gc.setLineWidth(1.0);
4949 gc.setLinePattern(GC.STROKE_SOLID);
5050 gc.fillDraw(frame);
--- copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/RadioButtonImage.java (revision 1631)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/RadioButtonImage.java (revision 1632)
@@ -38,14 +38,14 @@
3838 Shape frame = new Ellipse2D.Double(2, 2, 8, 8);
3939 Shape check = new Ellipse2D.Double(4, 4, 4, 4);
4040
41- gc.setFillPaint(this.disabled ? ColorValueUtils.LIGHTGRAY : ColorValueUtils.WHITE);
42- gc.setStrokePaint(this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK);
41+ gc.setFillPaint((this.disabled ? ColorValueUtils.LIGHTGRAY : ColorValueUtils.WHITE).getColor());
42+ gc.setStrokePaint((this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK).getColor());
4343 gc.setLineWidth(1.0);
4444 gc.setLinePattern(GC.STROKE_SOLID);
4545 gc.fillDraw(frame);
4646
4747 if (this.checked) {
48- gc.setFillPaint(this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK);
48+ gc.setFillPaint((this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK).getColor());
4949 gc.fill(check);
5050 }
5151
--- copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/SelectImage.java (revision 1631)
+++ copper/trunk/homare/src/main/java/jp/cssj/homare/impl/css/part/SelectImage.java (revision 1632)
@@ -69,17 +69,17 @@
6969 downShadow = path;
7070 }
7171
72- gc.setFillPaint(ColorValueUtils.LIGHTGRAY);
72+ gc.setFillPaint(ColorValueUtils.LIGHTGRAY.getColor());
7373 gc.fill(frame);
7474
7575 gc.fill(upFrame);
76- gc.setFillPaint(this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK);
76+ gc.setFillPaint((this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK).getColor());
7777 gc.fill(up);
7878 gc.draw(upShadow);
7979
80- gc.setFillPaint(ColorValueUtils.LIGHTGRAY);
80+ gc.setFillPaint(ColorValueUtils.LIGHTGRAY.getColor());
8181 gc.fill(downFrame);
82- gc.setFillPaint(this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK);
82+ gc.setFillPaint((this.disabled ? ColorValueUtils.DIMGRAY : ColorValueUtils.BLACK).getColor());
8383 gc.fill(down);
8484 gc.draw(downShadow);
8585
Show on old repository browser