chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1681790 [3/3] - in /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main: java/org/apache/chemistry/opencmis/workbench/ java/org/apache/chemistry/opencmis/workbench/details/ java/org/apache/chemistry/...
Date Tue, 26 May 2015 16:22:05 GMT
Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SaveTypeIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class SaveTypeIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public SaveTypeIcon() {
+        super();
+    }
+
+    public SaveTypeIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(20.77, 29.007);
+        shape.lineTo(29.77, 39.007);
+        shape.lineTo(29.77, 39.007);
+        shape.curveTo(30.319, 39.616, 31.115, 40.0, 32.0, 40.0);
+        shape.curveTo(32.885002, 40.0, 33.68, 39.616, 34.23, 39.007);
+        shape.lineTo(34.23, 39.007);
+        shape.lineTo(43.23, 29.007);
+        shape.lineTo(43.23, 29.007);
+        shape.curveTo(43.708, 28.475, 44.0, 27.772, 44.0, 27.0);
+        shape.curveTo(44.0, 25.343, 42.657, 24.0, 41.0, 24.0);
+        shape.curveTo(40.115, 24.0, 39.318, 24.383, 38.77, 24.993);
+        shape.lineTo(38.77, 24.993);
+        shape.lineTo(35.0, 29.182);
+        shape.lineTo(35.0, 11.0);
+        shape.curveTo(35.0, 9.343, 33.657, 8.0, 32.0, 8.0);
+        shape.curveTo(30.342999, 8.0, 29.0, 9.343, 29.0, 11.0);
+        shape.lineTo(29.0, 29.182);
+        shape.lineTo(25.23, 24.993);
+        shape.lineTo(25.23, 24.993);
+        shape.curveTo(24.681, 24.384, 23.885, 24.0, 23.0, 24.0);
+        shape.curveTo(21.343, 24.0, 20.0, 25.343, 20.0, 27.0);
+        shape.curveTo(20.0, 27.772, 20.292, 28.475, 20.77, 29.007);
+        shape.lineTo(20.77, 29.007);
+        shape.closePath();
+        shape.moveTo(55.0, 35.0);
+        shape.curveTo(53.343, 35.0, 52.0, 36.343, 52.0, 38.0);
+        shape.lineTo(52.0, 50.0);
+        shape.lineTo(12.0, 50.0);
+        shape.lineTo(12.0, 38.0);
+        shape.curveTo(12.0, 36.343, 10.657, 35.0, 9.0, 35.0);
+        shape.curveTo(7.3430004, 35.0, 6.0, 36.343, 6.0, 38.0);
+        shape.lineTo(6.0, 53.0);
+        shape.curveTo(6.0, 54.657, 7.343, 56.0, 9.0, 56.0);
+        shape.lineTo(31.997, 56.0);
+        shape.curveTo(31.998, 56.0, 31.999, 56.0, 32.0, 56.0);
+        shape.curveTo(32.001, 56.0, 32.002, 56.0, 32.003, 56.0);
+        shape.lineTo(55.0, 56.0);
+        shape.curveTo(56.657, 56.0, 58.0, 54.657, 58.0, 53.0);
+        shape.lineTo(58.0, 38.0);
+        shape.curveTo(58.0, 36.343, 56.657, 35.0, 55.0, 35.0);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/SecondaryIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class SecondaryIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public SecondaryIcon() {
+        super();
+    }
+
+    public SecondaryIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    @Override
+    protected Color getColor() {
+        return new Color(0x73a4d1);
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(41.0, 5.0);
+        shape.lineTo(23.0, 5.0);
+        shape.curveTo(21.343, 5.0, 20.0, 6.343, 20.0, 8.0);
+        shape.lineTo(20.0, 59.0);
+        shape.lineTo(32.0, 47.0);
+        shape.lineTo(44.0, 59.0);
+        shape.lineTo(44.0, 8.0);
+        shape.curveTo(44.0, 6.343, 42.657, 5.0, 41.0, 5.0);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TckIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,107 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class TckIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public TckIcon() {
+        super();
+    }
+
+    public TckIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(32.0, 20.0);
+        shape.curveTo(25.373001, 20.0, 20.0, 25.372, 20.0, 32.0);
+        shape.curveTo(20.0, 38.627, 25.372, 44.0, 32.0, 44.0);
+        shape.curveTo(38.628, 44.0, 44.0, 38.627, 44.0, 32.0);
+        shape.curveTo(44.0, 25.373001, 38.627, 20.0, 32.0, 20.0);
+        shape.closePath();
+        shape.moveTo(32.0, 38.0);
+        shape.curveTo(28.686, 38.0, 26.0, 35.314, 26.0, 32.0);
+        shape.curveTo(26.0, 28.686, 28.686, 26.0, 32.0, 26.0);
+        shape.curveTo(35.314, 26.0, 38.0, 28.686, 38.0, 32.0);
+        shape.curveTo(38.0, 35.314, 35.314, 38.0, 32.0, 38.0);
+        shape.closePath();
+        shape.moveTo(55.518, 25.462);
+        shape.curveTo(54.977, 23.505, 54.192, 21.651, 53.207, 19.926);
+        shape.curveTo(54.328, 18.419, 58.187, 12.783001, 55.406002, 10.000001);
+        shape.lineTo(53.978, 8.493001);
+        shape.curveTo(51.599, 6.1150007, 45.523003, 9.829, 44.047, 10.791001);
+        shape.curveTo(42.302002, 9.802001, 40.427002, 9.017001, 38.447002, 8.481001);
+        shape.curveTo(38.13, 6.594001, 36.743004, -0.005999565, 32.828003, -0.005999565);
+        shape.lineTo(31.261003, -0.005999565);
+        shape.curveTo(27.900003, -0.005999565, 25.971004, 6.8180003, 25.540003, 8.528001);
+        shape.curveTo(23.588003, 9.073001, 21.739002, 9.862, 20.018003, 10.848001);
+        shape.curveTo(18.661, 9.839, 12.841, 5.816, 10.0, 8.656);
+        shape.lineTo(8.493, 9.924);
+        shape.curveTo(6.017, 12.399, 10.1310005, 18.928, 10.883, 20.071);
+        shape.curveTo(9.931001, 21.769, 9.168, 23.588, 8.642, 25.505999);
+        shape.curveTo(7.0010004, 25.767998, -0.0069999695, 27.119999, -0.0069999695, 31.151999);
+        shape.lineTo(-0.0069999695, 32.718);
+        shape.curveTo(-0.0069999695, 36.211, 7.342, 38.150997, 8.683, 38.476997);
+        shape.curveTo(9.216, 40.380997, 9.983, 42.185997, 10.938, 43.871);
+        shape.curveTo(10.146999, 45.109997, 6.193, 51.609997, 8.646, 54.065);
+        shape.lineTo(10.073, 55.253);
+        shape.curveTo(13.302, 58.482, 20.047, 53.177998, 20.047, 53.177998);
+        shape.lineTo(19.733002, 52.843998);
+        shape.curveTo(21.522001, 53.901997, 23.459002, 54.739998, 25.506, 55.314);
+        shape.curveTo(25.841, 56.693, 27.781, 63.990997, 31.261002, 63.990997);
+        shape.lineTo(32.828003, 63.990997);
+        shape.curveTo(37.394005, 63.990997, 38.525, 55.469997, 38.525, 55.469997);
+        shape.lineTo(38.107002, 55.456997);
+        shape.curveTo(40.176003, 54.927998, 42.138, 54.131996, 43.958, 53.111996);
+        shape.curveTo(45.384, 54.060997, 51.359, 57.799995, 53.744, 55.415997);
+        shape.lineTo(55.331, 53.827995);
+        shape.curveTo(58.514, 50.644997, 53.334, 44.131996, 53.189003, 43.950996);
+        shape.curveTo(54.173004, 42.228996, 54.962, 40.379997, 55.505005, 38.425995);
+        shape.curveTo(57.285004, 37.973995, 63.988007, 36.051994, 63.988007, 32.718994);
+        shape.lineTo(63.988007, 31.152994);
+        shape.curveTo(63.988, 26.73, 56.016, 25.533, 55.518, 25.462);
+        shape.closePath();
+        shape.moveTo(32.0, 50.0);
+        shape.curveTo(22.059, 50.0, 14.0, 41.941, 14.0, 32.0);
+        shape.curveTo(14.0, 22.059, 22.059, 14.0, 32.0, 14.0);
+        shape.curveTo(41.941, 14.0, 50.0, 22.059, 50.0, 32.0);
+        shape.curveTo(50.0, 41.941, 41.941, 50.0, 32.0, 50.0);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypeIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,96 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class TypeIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public TypeIcon() {
+        super();
+    }
+
+    public TypeIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    @Override
+    protected Color getColor() {
+        return new Color(0x73a4d1);
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(56.0, 33.0);
+        shape.curveTo(56.0, 32.982, 55.998, 32.967, 55.997, 32.951);
+        shape.curveTo(55.996002, 32.864, 55.993, 32.777, 55.984, 32.693);
+        shape.curveTo(55.982002, 32.676003, 55.978, 32.662003, 55.976, 32.646);
+        shape.curveTo(55.966003, 32.562, 55.955, 32.477, 55.937, 32.394);
+        shape.curveTo(55.937, 32.392002, 55.937, 32.391003, 55.937, 32.389);
+        shape.curveTo(55.814, 31.795, 55.515, 31.266, 55.097, 30.858);
+        shape.lineTo(32.126, 8.884);
+        shape.curveTo(31.582, 8.338, 30.831, 8.0, 30.0, 8.0);
+        shape.curveTo(29.997, 8.0, 29.995, 8.001, 29.992, 8.001);
+        shape.lineTo(29.992, 7.993);
+        shape.lineTo(11.0, 7.993);
+        shape.lineTo(11.0, 8.0);
+        shape.curveTo(9.343, 8.0, 8.0, 9.343, 8.0, 11.0);
+        shape.lineTo(7.993, 11.0);
+        shape.lineTo(7.993, 30.049);
+        shape.lineTo(8.006, 30.049);
+        shape.curveTo(8.021, 30.927, 8.415, 31.706, 9.028999, 32.245);
+        shape.lineTo(9.018, 32.257);
+        shape.lineTo(34.017998, 55.257);
+        shape.lineTo(34.024, 55.252);
+        shape.curveTo(34.419, 55.6, 34.903, 55.843998, 35.441998, 55.945);
+        shape.curveTo(35.462997, 55.95, 35.486996, 55.953, 35.509, 55.956);
+        shape.curveTo(35.576, 55.967003, 35.642998, 55.978, 35.711, 55.984);
+        shape.curveTo(35.807, 55.995, 35.902, 56.0, 36.0, 56.0);
+        shape.curveTo(36.916, 56.0, 37.734, 55.589, 38.284, 54.941);
+        shape.lineTo(38.285, 54.943);
+        shape.lineTo(55.285, 34.943);
+        shape.lineTo(55.284, 34.941);
+        shape.curveTo(55.73, 34.418, 56.0, 33.741, 56.0, 33.0);
+        shape.closePath();
+        shape.moveTo(16.0, 20.0);
+        shape.curveTo(13.791, 20.0, 12.0, 18.209, 12.0, 16.0);
+        shape.curveTo(12.0, 13.791, 13.791, 12.0, 16.0, 12.0);
+        shape.curveTo(18.209, 12.0, 20.0, 13.791, 20.0, 16.0);
+        shape.curveTo(20.0, 18.209, 18.209, 20.0, 16.0, 20.0);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/TypesIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,107 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class TypesIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public TypesIcon() {
+        super();
+    }
+
+    public TypesIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(56.113, 26.872);
+        shape.lineTo(50.98, 21.962);
+        shape.curveTo(50.974, 21.971, 50.968, 21.980999, 50.963, 21.99);
+        shape.lineTo(34.126, 5.884);
+        shape.curveTo(33.582, 5.338, 32.831, 5.0, 32.0, 5.0);
+        shape.curveTo(31.997, 5.0, 31.995, 5.001, 31.992, 5.001);
+        shape.lineTo(31.992, 4.993);
+        shape.lineTo(13.0, 4.993);
+        shape.lineTo(13.0, 5.0);
+        shape.curveTo(11.343, 5.0, 10.0, 6.343, 10.0, 8.0);
+        shape.lineTo(32.0, 8.0);
+        shape.lineTo(56.081, 31.155);
+        shape.lineTo(56.3, 30.9);
+        shape.lineTo(56.302, 30.901);
+        shape.curveTo(56.73, 30.383, 57.0, 29.726, 57.0, 29.0);
+        shape.curveTo(57.0, 28.168, 56.66, 27.415, 56.113, 26.872);
+        shape.closePath();
+        shape.moveTo(54.997, 35.951);
+        shape.curveTo(54.996002, 35.864, 54.993, 35.777, 54.984, 35.691);
+        shape.curveTo(54.982002, 35.675003, 54.978, 35.661003, 54.976, 35.646004);
+        shape.curveTo(54.966003, 35.560005, 54.955, 35.476006, 54.937, 35.392002);
+        shape.curveTo(54.937, 35.390003, 54.937, 35.390003, 54.937, 35.388);
+        shape.curveTo(54.814, 34.794, 54.515, 34.265, 54.097, 33.857002);
+        shape.lineTo(31.126, 11.884);
+        shape.curveTo(30.582, 11.338, 29.831, 11.0, 29.0, 11.0);
+        shape.curveTo(28.997, 11.0, 28.995, 11.001, 28.992, 11.001);
+        shape.lineTo(28.992, 10.993);
+        shape.lineTo(10.0, 10.993);
+        shape.lineTo(10.0, 11.0);
+        shape.curveTo(8.343, 11.0, 7.0, 12.343, 7.0, 14.0);
+        shape.lineTo(6.993, 14.0);
+        shape.lineTo(6.993, 33.049);
+        shape.lineTo(7.006, 33.049);
+        shape.curveTo(7.021, 33.927, 7.415, 34.706, 8.029, 35.245);
+        shape.lineTo(8.018001, 35.257);
+        shape.lineTo(33.018, 58.257);
+        shape.lineTo(33.024002, 58.252);
+        shape.curveTo(33.419003, 58.6, 33.903004, 58.846, 34.442, 58.945);
+        shape.curveTo(34.463, 58.95, 34.487, 58.953, 34.509003, 58.956);
+        shape.curveTo(34.576004, 58.967003, 34.643, 58.978, 34.711002, 58.984);
+        shape.curveTo(34.807, 58.995, 34.902, 59.0, 35.0, 59.0);
+        shape.curveTo(35.916, 59.0, 36.734, 58.589, 37.284, 57.941);
+        shape.lineTo(37.285, 57.943);
+        shape.lineTo(54.285, 37.943);
+        shape.lineTo(54.284, 37.941);
+        shape.curveTo(54.73, 37.418, 55.0, 36.741, 55.0, 36.0);
+        shape.curveTo(55.0, 35.984, 54.998, 35.968, 54.997, 35.951);
+        shape.closePath();
+        shape.moveTo(15.0, 23.0);
+        shape.curveTo(12.791, 23.0, 11.0, 21.209, 11.0, 19.0);
+        shape.curveTo(11.0, 16.791, 12.791, 15.0, 15.0, 15.0);
+        shape.curveTo(17.209, 15.0, 19.0, 16.791, 19.0, 19.0);
+        shape.curveTo(19.0, 21.209, 17.209, 23.0, 15.0, 23.0);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class UpIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public UpIcon() {
+        super();
+    }
+
+    public UpIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(52.159, 38.918);
+        shape.lineTo(52.159, 38.918);
+        shape.lineTo(34.16, 20.917);
+        shape.lineTo(34.159, 20.918);
+        shape.curveTo(33.613, 20.352, 32.848, 20.0, 32.0, 20.0);
+        shape.curveTo(31.998, 20.0, 31.996, 20.0, 31.993, 20.0);
+        shape.curveTo(31.99, 20.0, 31.989, 20.0, 31.986, 20.0);
+        shape.curveTo(31.138, 20.0, 30.373, 20.352, 29.827, 20.918);
+        shape.lineTo(29.826, 20.917);
+        shape.lineTo(11.826, 38.917);
+        shape.lineTo(11.834001, 38.925);
+        shape.curveTo(11.318, 39.464, 11.0, 40.195, 11.0, 41.0);
+        shape.curveTo(11.0, 42.657, 12.343, 44.0, 14.0, 44.0);
+        shape.curveTo(14.91, 44.0, 15.725, 43.594, 16.275, 42.954);
+        shape.lineTo(31.993, 27.235998);
+        shape.lineTo(47.917, 43.16);
+        shape.lineTo(47.918, 43.159);
+        shape.curveTo(48.458, 43.68, 49.191, 44.0, 50.0, 44.0);
+        shape.curveTo(51.657, 44.0, 53.0, 42.657, 53.0, 41.0);
+        shape.curveTo(53.0, 40.191, 52.68, 39.458, 52.159, 38.918);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/UpdateTypeIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class UpdateTypeIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public UpdateTypeIcon() {
+        super();
+    }
+
+    public UpdateTypeIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(61.0, 0.0);
+        shape.lineTo(3.0, 0.0);
+        shape.curveTo(1.343, 0.0, 0.0, 1.343, 0.0, 3.0);
+        shape.lineTo(0.0, 61.0);
+        shape.curveTo(0.0, 62.657, 1.343, 64.0, 3.0, 64.0);
+        shape.lineTo(61.0, 64.0);
+        shape.curveTo(62.657, 64.0, 64.0, 62.657, 64.0, 61.0);
+        shape.lineTo(64.0, 3.0);
+        shape.curveTo(64.0, 1.343, 62.657, 0.0, 61.0, 0.0);
+        shape.closePath();
+        shape.moveTo(58.0, 58.0);
+        shape.lineTo(6.0, 58.0);
+        shape.lineTo(6.0, 6.0);
+        shape.lineTo(58.0, 6.0);
+        shape.lineTo(58.0, 58.0);
+        shape.closePath();
+        
+        shape.moveTo(12.938, 42.498);
+        shape.lineTo(21.383999, 50.927002);
+        shape.lineTo(46.723, 25.639002);
+        shape.lineTo(38.276, 17.210003);
+        shape.lineTo(12.938, 42.498);
+        shape.closePath();
+        shape.moveTo(7.998, 55.84);
+        shape.lineTo(19.256, 53.034);
+        shape.lineTo(10.809001, 44.603);
+        shape.lineTo(7.998, 55.84);
+        shape.closePath();
+        shape.moveTo(55.167, 12.996);
+        shape.lineTo(50.943, 8.781);
+        shape.curveTo(49.777, 7.617, 47.886, 7.617, 46.72, 8.781);
+        shape.lineTo(40.386, 15.103001);
+        shape.lineTo(48.832, 23.532001);
+        shape.lineTo(55.166, 17.210001);
+        shape.curveTo(56.333, 16.046, 56.333, 14.159, 55.167, 12.996);
+        shape.closePath();
+
+        g.setPaint(getColor());
+        g.fill(shape);
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/YesIcon.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.icons;
+
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class YesIcon extends AbstractWorkbenchIcon {
+
+    private static final long serialVersionUID = 1L;
+
+    public YesIcon() {
+        super();
+    }
+
+    public YesIcon(int width, int height) {
+        super(width, height);
+    }
+
+    @Override
+    protected int getOrginalHeight() {
+        return 64;
+    }
+
+    @Override
+    protected int getOrginalWidth() {
+        return 64;
+    }
+
+    protected void paint(Graphics2D g) {
+        GeneralPath shape = new GeneralPath();
+
+        shape.moveTo(50.0, 18.0);
+        shape.curveTo(49.172, 18.0, 48.422, 18.336, 47.879, 18.879);
+        shape.lineTo(27.0, 39.757);
+        shape.lineTo(16.121, 28.879);
+        shape.curveTo(15.578, 28.336, 14.828, 28.0, 14.0, 28.0);
+        shape.curveTo(12.343, 28.0, 11.0, 29.343, 11.0, 31.0);
+        shape.curveTo(11.0, 31.828, 11.336, 32.578, 11.879, 33.121);
+        shape.lineTo(24.879, 46.121);
+        shape.curveTo(25.422, 46.664, 26.172, 47.0, 27.0, 47.0);
+        shape.curveTo(27.828, 47.0, 28.578, 46.664, 29.121, 46.121);
+        shape.lineTo(52.121002, 23.120998);
+        shape.curveTo(52.664, 22.579, 53.0, 21.828, 53.0, 21.0);
+        shape.curveTo(53.0, 19.343, 51.657, 18.0, 50.0, 18.0);
+        shape.closePath();
+
+        g.setPaint(Color.GREEN);
+        g.fill(shape);
+
+    }
+}

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/BaseTypeLabel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/BaseTypeLabel.java?rev=1681790&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/BaseTypeLabel.java
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/BaseTypeLabel.java
Tue May 26 16:22:03 2015
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.workbench.swing;
+
+import java.util.EnumMap;
+import java.util.Map;
+
+import javax.swing.Icon;
+import javax.swing.JLabel;
+
+import org.apache.chemistry.opencmis.commons.enums.BaseTypeId;
+import org.apache.chemistry.opencmis.workbench.icons.DocumentIcon;
+import org.apache.chemistry.opencmis.workbench.icons.FolderIcon;
+import org.apache.chemistry.opencmis.workbench.icons.ItemIcon;
+import org.apache.chemistry.opencmis.workbench.icons.PolicyIcon;
+import org.apache.chemistry.opencmis.workbench.icons.RelationshipIcon;
+import org.apache.chemistry.opencmis.workbench.icons.SecondaryIcon;
+
+public class BaseTypeLabel extends JLabel {
+
+    private static final long serialVersionUID = 1L;
+
+    private static final int ICON_SIZE = 16;
+    private static final Map<BaseTypeId, Icon> ICONS;
+
+    static {
+        ICONS = new EnumMap<BaseTypeId, Icon>(BaseTypeId.class);
+        ICONS.put(BaseTypeId.CMIS_DOCUMENT, new DocumentIcon(ICON_SIZE, ICON_SIZE));
+        ICONS.put(BaseTypeId.CMIS_FOLDER, new FolderIcon(ICON_SIZE, ICON_SIZE));
+        ICONS.put(BaseTypeId.CMIS_RELATIONSHIP, new RelationshipIcon(ICON_SIZE, ICON_SIZE));
+        ICONS.put(BaseTypeId.CMIS_POLICY, new PolicyIcon(ICON_SIZE, ICON_SIZE));
+        ICONS.put(BaseTypeId.CMIS_ITEM, new ItemIcon(ICON_SIZE, ICON_SIZE));
+        ICONS.put(BaseTypeId.CMIS_SECONDARY, new SecondaryIcon(ICON_SIZE, ICON_SIZE));
+    }
+
+    private BaseTypeId value = null;
+
+    public BaseTypeLabel() {
+        super("", null, LEFT);
+    }
+
+    public BaseTypeId getValue() {
+        return value;
+    }
+
+    public void setValue(BaseTypeId value) {
+        if (this.value != value) {
+            this.value = value;
+
+            if (value == null) {
+                setIcon(null);
+                setText("");
+            } else {
+                setIcon(ICONS.get(value));
+                setText(value.value());
+            }
+
+            invalidate();
+        }
+    }
+}

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java?rev=1681790&r1=1681789&r2=1681790&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
Tue May 26 16:22:03 2015
@@ -60,6 +60,7 @@ import javax.swing.UIManager;
 
 import org.apache.chemistry.opencmis.workbench.ClientHelper;
 import org.apache.chemistry.opencmis.workbench.WorkbenchScale;
+import org.apache.chemistry.opencmis.workbench.icons.DocumentIcon;
 import org.apache.chemistry.opencmis.workbench.model.ClientModel;
 
 import com.google.zxing.BarcodeFormat;
@@ -166,6 +167,25 @@ public abstract class InfoPanel extends
         return ynl;
     }
 
+    protected BaseTypeLabel addBaseTypeLabel(String label) {
+        BaseTypeLabel btl = new BaseTypeLabel();
+
+        JLabel textLable = new JLabel(label);
+        textLable.setLabelFor(btl);
+
+        gbc.gridy++;
+
+        gbc.gridx = 0;
+        gbc.anchor = GridBagConstraints.BASELINE_TRAILING;
+        gridPanel.add(textLable, gbc);
+
+        gbc.gridx = 1;
+        gbc.anchor = GridBagConstraints.BASELINE_LEADING;
+        gridPanel.add(btl, gbc);
+
+        return btl;
+    }
+
     protected <T extends JComponent> T addComponent(String label, T comp) {
         JLabel textLable = new JLabel(label);
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/YesNoLabel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/YesNoLabel.java?rev=1681790&r1=1681789&r2=1681790&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/YesNoLabel.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/YesNoLabel.java
Tue May 26 16:22:03 2015
@@ -21,14 +21,16 @@ package org.apache.chemistry.opencmis.wo
 import javax.swing.Icon;
 import javax.swing.JLabel;
 
-import org.apache.chemistry.opencmis.workbench.ClientHelper;
+import org.apache.chemistry.opencmis.workbench.WorkbenchScale;
+import org.apache.chemistry.opencmis.workbench.icons.NoIcon;
+import org.apache.chemistry.opencmis.workbench.icons.YesIcon;
 
 public class YesNoLabel extends JLabel {
 
     private static final long serialVersionUID = 1L;
 
-    public static final Icon TRUE_ICON = ClientHelper.getIcon("yes.png");
-    public static final Icon FALSE_ICON = ClientHelper.getIcon("no.png");
+    public static final Icon TRUE_ICON = new YesIcon(18, 18);
+    public static final Icon FALSE_ICON = new NoIcon(18, 18);
 
     public static final String YES_TEXT = "Yes";
     public static final String NO_TEXT = "No";

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README-cmis-workbench.txt
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README-cmis-workbench.txt?rev=1681790&r1=1681789&r2=1681790&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README-cmis-workbench.txt
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README-cmis-workbench.txt
Tue May 26 16:22:03 2015
@@ -6,6 +6,7 @@ Apache Chemistry OpenCMIS (http://chemis
 This CMIS client is distributed under the Apache License, version 2.0.
 Please see the NOTICE and LICENSE files for details.
 
+Original icons by Piotr Kwiatkowski. Converted and modified for the CMIS Workbench.
 
 Get the latest released CMIS Workbench from here:
 http://chemistry.apache.org/java/download.html



Mime
View raw message