|
|
|
@ -1,12 +1,14 @@
|
|
|
|
|
package com.fr.van.chart.designer.component.marker; |
|
|
|
|
|
|
|
|
|
import com.fr.chart.chartglyph.Marker; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
|
import com.fr.design.gui.xcombox.MarkerComboBox; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.plugin.chart.base.VanChartAttrMarker; |
|
|
|
|
import com.fr.plugin.chart.marker.type.MarkerType; |
|
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
@ -42,6 +44,7 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
|
|
|
|
|
MarkerType.MARKER_TRIANGLE_HOLLOW |
|
|
|
|
}; |
|
|
|
|
private static Marker[] normalMarkers = null; |
|
|
|
|
|
|
|
|
|
protected static Marker[] getNormalMarkers() { |
|
|
|
|
if (normalMarkers == null) { |
|
|
|
|
normalMarkers = new Marker[NORMAL_TYPES.length]; |
|
|
|
@ -79,6 +82,7 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
|
|
|
|
|
MarkerType.MARKER_TRIANGLE_HOLLOW |
|
|
|
|
}; |
|
|
|
|
private static Marker[] mapMarkers = null; |
|
|
|
|
|
|
|
|
|
protected static Marker[] getMapScatterMarkers() { |
|
|
|
|
if (mapMarkers == null) { |
|
|
|
|
mapMarkers = new Marker[MAP_TYPES.length]; |
|
|
|
@ -98,6 +102,7 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
|
|
|
|
|
MarkerType.MARKER_STAR |
|
|
|
|
}; |
|
|
|
|
private static Marker[] ganttMarkers = null; |
|
|
|
|
|
|
|
|
|
protected static Marker[] getGanttMarkers() { |
|
|
|
|
if (ganttMarkers == null) { |
|
|
|
|
ganttMarkers = new Marker[GANTT_TYPES.length]; |
|
|
|
@ -120,10 +125,22 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
|
|
|
|
|
public VanChartCommonMarkerPane() { |
|
|
|
|
markerTypeComboBox = new MarkerComboBox(getMarkers()); |
|
|
|
|
markerFillColor = new VanChartMarkerBackgroundPane() { |
|
|
|
|
protected JPanel initContentPanel() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
|
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
|
|
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(getPaneComponents(), rowSize, columnSize, 0, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Component[][] getPaneComponents() { |
|
|
|
|
return new Component[][]{ |
|
|
|
|
new Component[]{typeComboBox, null}, |
|
|
|
|
new Component[]{centerPane, null}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, typeComboBox}, |
|
|
|
|
new Component[]{null, centerPane}, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -213,6 +230,7 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
|
|
|
|
|
protected MarkerType populateMarkType(VanChartAttrMarker marker) { |
|
|
|
|
return marker.getMarkerType(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Update. |
|
|
|
|
*/ |
|
|
|
|