Skip to content
Snippets Groups Projects
Commit f363f2b2 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

YELLOW.

refs 2589
parent 84fb454b
No related branches found
No related tags found
No related merge requests found
Showing
with 25 additions and 22 deletions
......@@ -56,16 +56,14 @@ import org.fortiss.tooling.spiderchart.widget.SpiderChartViewer;
* Example application for the spider chart widget.
*
* @author mondal
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FA525F8C119797775BFAB25AC6DE8A3F
* @ConQAT.Rating YELLOW Hash: 74E3FAC5EFD5B9F36ABF300BB790BB5C
*/
@SuppressWarnings("javadoc")
public final class Sample {
private static SpiderChartViewer viewer;
private static void buildSpiderChart(final Shell shell) {
/** Constructs the spider chart viewer. */
private static SpiderChartViewer buildSpiderChart(final Shell shell) {
SpiderChart spiderChart = new SpiderChart();
spiderChart.setTitle("Smartphone Comparison Scale");
spiderChart.setLegendLabel("Legend");
......@@ -151,18 +149,20 @@ public final class Sample {
new DecimalFormat("#.#"));
chartStyle.setDataSeriesStyle(nexusData, nexusStyle);
viewer = new SpiderChartViewer(shell, spiderChart, chartStyle);
SpiderChartViewer viewer = new SpiderChartViewer(shell, spiderChart, chartStyle);
viewer.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
Rectangle clientArea = shell.getClientArea();
viewer.setBounds(clientArea.x, clientArea.y, clientArea.width, clientArea.height);
return viewer;
}
/** Main method. */
public static void main(final String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display, SWT.DIALOG_TRIM);
shell.setSize(800, 750);
buildSpiderChart(shell);
SpiderChartViewer viewer = buildSpiderChart(shell);
shell.open();
while(!shell.isDisposed()) {
......@@ -174,7 +174,9 @@ public final class Sample {
display.dispose();
}
/** Data class used to demonstrate enumeration data axes. */
private static class Screen implements Comparable<Screen> {
/** Screen width in pixels. */
public int width = 0;
/** Constructor. */
......@@ -195,6 +197,7 @@ public final class Sample {
}
}
/** {@link Comparator} implementation for {@link Screen}s . */
private static Comparator<Screen> screenComparator = new Comparator<Sample.Screen>() {
@Override
public int compare(Screen o1, Screen o2) {
......
......@@ -25,7 +25,7 @@ import static java.util.Objects.requireNonNull;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash:
* @ConQAT.Rating YELLOW Hash: EB4861CAE43384E95DF74C22CF019B85
*/
public abstract class AxisBase {
/** The name of the axis. */
......
......@@ -28,7 +28,7 @@ import java.util.Map;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 7CFFF87C0D159572D525D01C01040F7E
* @ConQAT.Rating YELLOW Hash: 189CC6E69E97672EE488149C69766EEE
*/
public final class DataSeries {
/** The name of the data series. */
......
......@@ -25,7 +25,7 @@ import java.util.Comparator;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 6C5390A8B21E0877312C9EB36F009A6B
* @ConQAT.Rating YELLOW Hash: 5F27AB1B3511313AD29EBFA8F99840DD
*/
public final class DoubleAxis extends AxisBase {
/** The minimum value of the axis (at the center of the spider chart). */
......
......@@ -28,7 +28,7 @@ import java.util.List;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash:
* @ConQAT.Rating YELLOW Hash: EF67711684D1153304B0C6352B92ACBA
*/
public final class EnumerationAxis<T extends Object> extends AxisBase {
......
......@@ -28,7 +28,7 @@ import java.util.List;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 74F497F82BD13B18035A011ACC09B01F
* @ConQAT.Rating YELLOW Hash: C36AE1A270F31509E8C62CC2B5A88F64
*/
public final class SpiderChart {
/** The axes contained in this chart. */
......
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.spiderchart.model.DoubleAxis;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: BFC55918B8B64174D2C746DE55BCC2AA
* @ConQAT.Rating YELLOW Hash: 26797EA6472BA45A84B0F63F3AE92338
*/
public final class AxisStyle {
......
......@@ -33,7 +33,7 @@ import org.fortiss.tooling.spiderchart.model.SpiderChart;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 236F885B17E9A70F350F85014456AFDF
* @ConQAT.Rating YELLOW Hash: F6D19A31209BC1BD924A51066B3072A4
*/
public final class ChartStyle {
/** The map for style information of axes. */
......
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.spiderchart.model.EnumerationAxis;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 605C2C16FA2B5715C060458F6A9C976B
* @ConQAT.Rating YELLOW Hash: 3AB99F05BCC1B0302C4B5288D90E38A5
*/
public final class DataSeriesStyle {
/** The line style of the data series. */
......
......@@ -27,7 +27,7 @@ import org.fortiss.tooling.spiderchart.style.AxisStyle;
* @author hoelzl
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: 712FBA197FCF8563C357B1A42C68A4BE
* @ConQAT.Rating YELLOW Hash: E0781556136BD6EDD624F9EE61E02547
*/
public class AxisUtils {
/** Returns the segment point on the axis if the the axis displayed with the given extents. */
......
......@@ -38,7 +38,7 @@ import org.fortiss.tooling.spiderchart.style.LineStyle;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 0EF740F9A513CBEEC9D7A35E31EC8049
* @ConQAT.Rating YELLOW Hash: 8A8A0E0FAF094F10092E3F50498BB7A9
*/
public final class SpiderChartLegendWidget extends SpiderChartWidgetBase {
/** The length of the line for each data series. */
......
......@@ -38,7 +38,7 @@ import org.fortiss.tooling.spiderchart.style.ChartStyle;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 1CFC7CA547E4FAF1E0BE7748B10A11C4
* @ConQAT.Rating YELLOW Hash: 4BBD92A14F115EB0EE0EE74D134614F2
*/
final class SpiderChartSWTCanvas extends Canvas {
......
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.spiderchart.style.ChartStyle;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: D1124BA1A8766A1C3F3FA90766803DE1
* @ConQAT.Rating YELLOW Hash: E1157244DA86EA45049BE0E887E427C4
*/
public final class SpiderChartViewer extends Composite implements MouseListener {
/** The actual canvas to be used for drawing. */
......
......@@ -47,7 +47,7 @@ import org.fortiss.tooling.spiderchart.style.FontStyle;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 2F9DEFBF42B97107E09BBAE343AF2457
* @ConQAT.Rating YELLOW Hash: 103A633AF236B5DE9D80D98A21C9CA5F
*/
public final class SpiderChartWidget extends SpiderChartWidgetBase {
/** The center point of the chart. */
......
......@@ -28,7 +28,7 @@ import org.fortiss.tooling.spiderchart.style.ChartStyle;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: C26D712A400E929262106865306F385E
* @ConQAT.Rating YELLOW Hash: F404998ACC41E6BCC1519B0B18831757
*/
public abstract class SpiderChartWidgetBase {
/** The spider chart this component belongs to. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment