Example #1
0
 public LineBorder(Paint paint, Stroke stroke, RectangleInsets insets)
 {
   base.\u002Ector();
   LineBorder lineBorder = this;
   if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (stroke == null)
   {
     string str = "Null 'stroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (insets == null)
   {
     string str = "Null 'insets' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.paint = paint;
     this.stroke = stroke;
     this.insets = insets;
   }
 }
 protected internal AbstractBlock()
 {
   base.\u002Ector();
   AbstractBlock abstractBlock = this;
   this.id = (string) null;
   this.width = 0.0;
   this.height = 0.0;
   this.bounds = (Rectangle2D) new Rectangle2D.Float();
   this.margin = RectangleInsets.__\u003C\u003EZERO_INSETS;
   this.frame = (BlockFrame) BlockBorder.__\u003C\u003ENONE;
   this.padding = RectangleInsets.__\u003C\u003EZERO_INSETS;
 }
Example #3
0
 public ImageTitle(Image image, int height, int width, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
   : base(position, horizontalAlignment, verticalAlignment, padding)
 {
   ImageTitle imageTitle = this;
   if (image == null)
   {
     string str = "Null 'image' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else
   {
     this.image = image;
     this.setHeight((double) height);
     this.setWidth((double) width);
   }
 }
 public DialValueIndicator(int datasetIndex)
 {
   DialValueIndicator dialValueIndicator = this;
   this.datasetIndex = datasetIndex;
   this.angle = -90.0;
   this.radius = 0.3;
   this.frameAnchor = RectangleAnchor.__\u003C\u003ECENTER;
   this.templateValue = (Number) new Double(100.0);
   this.formatter = (NumberFormat) new DecimalFormat("0.0");
   this.font = new Font("Dialog", 1, 14);
   this.paint = (Paint) Color.black;
   this.backgroundPaint = (Paint) Color.white;
   this.outlineStroke = (Stroke) new BasicStroke(1f);
   this.outlinePaint = (Paint) Color.blue;
   this.insets = new RectangleInsets(4.0, 4.0, 4.0, 4.0);
   this.valueAnchor = RectangleAnchor.__\u003C\u003ERIGHT;
   this.textAnchor = TextAnchor.__\u003C\u003ECENTER_RIGHT;
 }
Example #5
0
 public BlockBorder(RectangleInsets insets, Paint paint)
 {
   base.\u002Ector();
   BlockBorder blockBorder = this;
   if (insets == null)
   {
     string str = "Null 'insets' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.insets = insets;
     this.paint = paint;
   }
 }
Example #6
0
 protected internal Marker(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
 {
   base.\u002Ector();
   Marker marker = this;
   this.label = (string) null;
   if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (stroke == null)
   {
     string str = "Null 'stroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if ((double) alpha < 0.0 || (double) alpha > 1.0)
   {
     string str = "The 'alpha' value must be in the range 0.0f to 1.0f";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.paint = paint;
     this.stroke = stroke;
     this.outlinePaint = outlinePaint;
     this.outlineStroke = outlineStroke;
     this.alpha = alpha;
     this.labelFont = new Font("SansSerif", 0, 9);
     this.labelPaint = (Paint) Color.black;
     this.labelAnchor = RectangleAnchor.__\u003C\u003ETOP_LEFT;
     this.labelOffset = new RectangleInsets(3.0, 3.0, 3.0, 3.0);
     this.labelOffsetType = LengthAdjustmentType.__\u003C\u003ECONTRACT;
     this.labelTextAnchor = TextAnchor.__\u003C\u003ECENTER;
     this.listenerList = new EventListenerList();
   }
 }
Example #7
0
 public XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer)
 {
   XYPlot xyPlot = this;
   this.quadrantOrigin = (Point2D) new Point2D.Double(0.0, 0.0);
   Paint[] paintArray = new Paint[4];
   int index1 = 0;
   // ISSUE: variable of the null type
   __Null local1 = null;
   paintArray[index1] = (Paint) local1;
   int index2 = 1;
   // ISSUE: variable of the null type
   __Null local2 = null;
   paintArray[index2] = (Paint) local2;
   int index3 = 2;
   // ISSUE: variable of the null type
   __Null local3 = null;
   paintArray[index3] = (Paint) local3;
   int index4 = 3;
   // ISSUE: variable of the null type
   __Null local4 = null;
   paintArray[index4] = (Paint) local4;
   this.quadrantPaint = paintArray;
   this.domainCrosshairLockedOnData = true;
   this.rangeCrosshairLockedOnData = true;
   this.datasetRenderingOrder = DatasetRenderingOrder.__\u003C\u003EREVERSE;
   this.seriesRenderingOrder = SeriesRenderingOrder.__\u003C\u003EREVERSE;
   this.orientation = PlotOrientation.__\u003C\u003EVERTICAL;
   this.weight = 1;
   this.axisOffset = RectangleInsets.__\u003C\u003EZERO_INSETS;
   this.domainAxes = new ObjectList();
   this.domainAxisLocations = new ObjectList();
   this.foregroundDomainMarkers = (Map) new HashMap();
   this.backgroundDomainMarkers = (Map) new HashMap();
   this.rangeAxes = new ObjectList();
   this.rangeAxisLocations = new ObjectList();
   this.foregroundRangeMarkers = (Map) new HashMap();
   this.backgroundRangeMarkers = (Map) new HashMap();
   this.datasets = new ObjectList();
   this.renderers = new ObjectList();
   this.datasetToDomainAxesMap = (Map) new TreeMap();
   this.datasetToRangeAxesMap = (Map) new TreeMap();
   this.annotations = (List) new ArrayList();
   this.datasets.set(0, (object) dataset);
   if (dataset != null)
     dataset.addChangeListener((DatasetChangeListener) this);
   this.renderers.set(0, (object) renderer);
   if (renderer != null)
   {
     renderer.setPlot(this);
     renderer.addChangeListener((RendererChangeListener) this);
   }
   this.domainAxes.set(0, (object) domainAxis);
   this.mapDatasetToDomainAxis(0, 0);
   if (domainAxis != null)
   {
     domainAxis.setPlot((Plot) this);
     domainAxis.addChangeListener((AxisChangeListener) this);
   }
   this.domainAxisLocations.set(0, (object) AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT);
   this.rangeAxes.set(0, (object) rangeAxis);
   this.mapDatasetToRangeAxis(0, 0);
   if (rangeAxis != null)
   {
     rangeAxis.setPlot((Plot) this);
     rangeAxis.addChangeListener((AxisChangeListener) this);
   }
   this.rangeAxisLocations.set(0, (object) AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT);
   this.configureDomainAxes();
   this.configureRangeAxes();
   this.domainGridlinesVisible = true;
   this.domainGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.domainGridlinePaint = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_PAINT;
   this.domainMinorGridlinesVisible = false;
   this.domainMinorGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.domainMinorGridlinePaint = (Paint) Color.white;
   this.domainZeroBaselineVisible = false;
   this.domainZeroBaselinePaint = (Paint) Color.black;
   this.domainZeroBaselineStroke = (Stroke) new BasicStroke(0.5f);
   this.rangeGridlinesVisible = true;
   this.rangeGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.rangeGridlinePaint = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_PAINT;
   this.rangeMinorGridlinesVisible = false;
   this.rangeMinorGridlineStroke = XYPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.rangeMinorGridlinePaint = (Paint) Color.white;
   this.rangeZeroBaselineVisible = false;
   this.rangeZeroBaselinePaint = (Paint) Color.black;
   this.rangeZeroBaselineStroke = (Stroke) new BasicStroke(0.5f);
   this.domainCrosshairVisible = false;
   this.domainCrosshairValue = 0.0;
   this.domainCrosshairStroke = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_STROKE;
   this.domainCrosshairPaint = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_PAINT;
   this.rangeCrosshairVisible = false;
   this.rangeCrosshairValue = 0.0;
   this.rangeCrosshairStroke = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_STROKE;
   this.rangeCrosshairPaint = XYPlot.__\u003C\u003EDEFAULT_CROSSHAIR_PAINT;
 }
Example #8
0
 public CategoryPlot(CategoryDataset dataset, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryItemRenderer renderer)
 {
   CategoryPlot categoryPlot = this;
   this.renderingOrder = DatasetRenderingOrder.__\u003C\u003EREVERSE;
   this.columnRenderingOrder = SortOrder.__\u003C\u003EASCENDING;
   this.rowRenderingOrder = SortOrder.__\u003C\u003EASCENDING;
   this.rangeCrosshairLockedOnData = true;
   this.orientation = PlotOrientation.__\u003C\u003EVERTICAL;
   this.domainAxes = new ObjectList();
   this.domainAxisLocations = new ObjectList();
   this.rangeAxes = new ObjectList();
   this.rangeAxisLocations = new ObjectList();
   this.datasetToDomainAxesMap = new TreeMap();
   this.datasetToRangeAxesMap = new TreeMap();
   this.renderers = new ObjectList();
   this.datasets = new ObjectList();
   this.datasets.set(0, (object) dataset);
   if (dataset != null)
     dataset.addChangeListener((DatasetChangeListener) this);
   this.axisOffset = RectangleInsets.__\u003C\u003EZERO_INSETS;
   this.setDomainAxisLocation(AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT, false);
   this.setRangeAxisLocation(AxisLocation.__\u003C\u003ETOP_OR_LEFT, false);
   this.renderers.set(0, (object) renderer);
   if (renderer != null)
   {
     renderer.setPlot(this);
     renderer.addChangeListener((RendererChangeListener) this);
   }
   this.domainAxes.set(0, (object) domainAxis);
   this.mapDatasetToDomainAxis(0, 0);
   if (domainAxis != null)
   {
     domainAxis.setPlot((Plot) this);
     domainAxis.addChangeListener((AxisChangeListener) this);
   }
   this.drawSharedDomainAxis = false;
   this.rangeAxes.set(0, (object) rangeAxis);
   this.mapDatasetToRangeAxis(0, 0);
   if (rangeAxis != null)
   {
     rangeAxis.setPlot((Plot) this);
     rangeAxis.addChangeListener((AxisChangeListener) this);
   }
   this.configureDomainAxes();
   this.configureRangeAxes();
   this.domainGridlinesVisible = false;
   this.domainGridlinePosition = CategoryAnchor.__\u003C\u003EMIDDLE;
   this.domainGridlineStroke = CategoryPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.domainGridlinePaint = CategoryPlot.__\u003C\u003EDEFAULT_GRIDLINE_PAINT;
   this.rangeZeroBaselineVisible = false;
   this.rangeZeroBaselinePaint = (Paint) Color.black;
   this.rangeZeroBaselineStroke = (Stroke) new BasicStroke(0.5f);
   this.rangeGridlinesVisible = true;
   this.rangeGridlineStroke = CategoryPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.rangeGridlinePaint = CategoryPlot.__\u003C\u003EDEFAULT_GRIDLINE_PAINT;
   this.rangeMinorGridlinesVisible = false;
   this.rangeMinorGridlineStroke = CategoryPlot.__\u003C\u003EDEFAULT_GRIDLINE_STROKE;
   this.rangeMinorGridlinePaint = (Paint) Color.white;
   this.foregroundDomainMarkers = (Map) new HashMap();
   this.backgroundDomainMarkers = (Map) new HashMap();
   this.foregroundRangeMarkers = (Map) new HashMap();
   this.backgroundRangeMarkers = (Map) new HashMap();
   this.anchorValue = 0.0;
   this.domainCrosshairVisible = false;
   this.domainCrosshairStroke = CategoryPlot.__\u003C\u003EDEFAULT_CROSSHAIR_STROKE;
   this.domainCrosshairPaint = CategoryPlot.__\u003C\u003EDEFAULT_CROSSHAIR_PAINT;
   this.rangeCrosshairVisible = false;
   this.rangeCrosshairValue = 0.0;
   this.rangeCrosshairStroke = CategoryPlot.__\u003C\u003EDEFAULT_CROSSHAIR_STROKE;
   this.rangeCrosshairPaint = CategoryPlot.__\u003C\u003EDEFAULT_CROSSHAIR_PAINT;
   this.annotations = (List) new ArrayList();
   this.rangePannable = false;
 }
 public StandardChartTheme(string name)
 {
   base.\u002Ector();
   StandardChartTheme standardChartTheme = this;
   this.gridBandPaint = SymbolAxis.__\u003C\u003EDEFAULT_GRID_BAND_PAINT;
   this.gridBandAlternatePaint = SymbolAxis.__\u003C\u003EDEFAULT_GRID_BAND_ALTERNATE_PAINT;
   if (name == null)
   {
     string str = "Null 'name' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.name = name;
     this.extraLargeFont = new Font("Tahoma", 1, 20);
     this.largeFont = new Font("Tahoma", 1, 14);
     this.regularFont = new Font("Tahoma", 0, 12);
     this.smallFont = new Font("Tahoma", 0, 10);
     this.titlePaint = (Paint) Color.black;
     this.subtitlePaint = (Paint) Color.black;
     this.legendBackgroundPaint = (Paint) Color.white;
     this.legendItemPaint = (Paint) Color.darkGray;
     this.chartBackgroundPaint = (Paint) Color.white;
     this.drawingSupplier = (DrawingSupplier) new DefaultDrawingSupplier();
     this.plotBackgroundPaint = (Paint) Color.lightGray;
     this.plotOutlinePaint = (Paint) Color.black;
     this.labelLinkPaint = (Paint) Color.black;
     this.labelLinkStyle = PieLabelLinkStyle.__\u003C\u003ECUBIC_CURVE;
     this.axisOffset = new RectangleInsets(4.0, 4.0, 4.0, 4.0);
     this.domainGridlinePaint = (Paint) Color.white;
     this.rangeGridlinePaint = (Paint) Color.white;
     this.baselinePaint = (Paint) Color.black;
     this.crosshairPaint = (Paint) Color.blue;
     this.axisLabelPaint = (Paint) Color.darkGray;
     this.tickLabelPaint = (Paint) Color.darkGray;
     this.barPainter = (BarPainter) new GradientBarPainter();
     this.xyBarPainter = (XYBarPainter) new GradientXYBarPainter();
     this.shadowVisible = true;
     this.shadowPaint = (Paint) Color.gray;
     this.itemLabelPaint = (Paint) Color.black;
     this.thermometerPaint = (Paint) Color.white;
     this.wallPaint = BarRenderer3D.__\u003C\u003EDEFAULT_WALL_PAINT;
     this.errorIndicatorPaint = (Paint) Color.black;
   }
 }
Example #10
0
 public JFreeChart(string title, Font titleFont, Plot plot, bool createLegend)
 {
   int num = createLegend ? 1 : 0;
   base.\u002Ector();
   JFreeChart jfreeChart = this;
   this.backgroundImageAlignment = 15;
   this.backgroundImageAlpha = 0.5f;
   if (plot == null)
   {
     string str = "Null 'plot' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else
   {
     this.progressListeners = new EventListenerList();
     this.changeListeners = new EventListenerList();
     this.notify = true;
     RenderingHints.__\u003Cclinit\u003E();
     this.renderingHints = new RenderingHints((RenderingHints.Key) RenderingHints.KEY_ANTIALIASING, (object) RenderingHints.VALUE_ANTIALIAS_ON);
     this.borderVisible = false;
     this.borderStroke = (Stroke) new BasicStroke(1f);
     this.borderPaint = (Paint) Color.black;
     this.padding = RectangleInsets.__\u003C\u003EZERO_INSETS;
     this.plot = plot;
     plot.addChangeListener((PlotChangeListener) this);
     this.subtitles = (List) new ArrayList();
     if (num != 0)
     {
       LegendTitle.__\u003Cclinit\u003E();
       LegendTitle legendTitle = new LegendTitle((LegendItemSource) this.plot);
       legendTitle.setMargin(new RectangleInsets(1.0, 1.0, 1.0, 1.0));
       legendTitle.setFrame((BlockFrame) new LineBorder());
       legendTitle.setBackgroundPaint((Paint) Color.white);
       legendTitle.setPosition(RectangleEdge.__\u003C\u003EBOTTOM);
       this.subtitles.add((object) legendTitle);
       legendTitle.addChangeListener((TitleChangeListener) this);
     }
     if (title != null)
     {
       if (titleFont == null)
         titleFont = JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT;
       this.title = new TextTitle(title, titleFont);
       this.title.addChangeListener((TitleChangeListener) this);
     }
     this.backgroundPaint = JFreeChart.__\u003C\u003EDEFAULT_BACKGROUND_PAINT;
     this.backgroundImage = JFreeChart.__\u003C\u003EDEFAULT_BACKGROUND_IMAGE;
     this.backgroundImageAlignment = 15;
     this.backgroundImageAlpha = 0.5f;
   }
 }
Example #11
0
 static ContourPlot()
 {
   Plot.__\u003Cclinit\u003E();
   ContourPlot.__\u003C\u003EDEFAULT_INSETS = new RectangleInsets(2.0, 2.0, 100.0, 10.0);
   ContourPlot.localizationResources = org.jfree.chart.util.ResourceBundleWrapper.getBundle("org.jfree.chart.plot.LocalizationBundle");
 }
Example #12
0
 public PiePlot(PieDataset dataset)
 {
   PiePlot piePlot = this;
   this.shadowPaint = (Paint) Color.gray;
   this.shadowXOffset = 4.0;
   this.shadowYOffset = 4.0;
   this.simpleLabels = true;
   this.maximumLabelWidth = 0.14;
   this.labelGap = 0.025;
   this.labelLinkStyle = PieLabelLinkStyle.__\u003C\u003ESTANDARD;
   this.labelLinkMargin = 0.025;
   this.labelLinkPaint = (Paint) Color.black;
   this.labelLinkStroke = (Stroke) new BasicStroke(0.5f);
   this.dataset = dataset;
   if (dataset != null)
     dataset.addChangeListener((DatasetChangeListener) this);
   this.pieIndex = 0;
   this.interiorGap = 0.08;
   this.circular = true;
   this.startAngle = 90.0;
   this.direction = Rotation.__\u003C\u003ECLOCKWISE;
   this.minimumArcAngleToDraw = 1E-05;
   this.sectionPaint = (Paint) null;
   this.sectionPaintMap = new PaintMap();
   this.baseSectionPaint = (Paint) Color.gray;
   this.autoPopulateSectionPaint = true;
   this.sectionOutlinesVisible = true;
   this.sectionOutlinePaint = (Paint) null;
   this.sectionOutlinePaintMap = new PaintMap();
   this.baseSectionOutlinePaint = Plot.__\u003C\u003EDEFAULT_OUTLINE_PAINT;
   this.autoPopulateSectionOutlinePaint = false;
   this.sectionOutlineStroke = (Stroke) null;
   this.sectionOutlineStrokeMap = new StrokeMap();
   this.baseSectionOutlineStroke = Plot.__\u003C\u003EDEFAULT_OUTLINE_STROKE;
   this.autoPopulateSectionOutlineStroke = false;
   this.explodePercentages = (Map) new TreeMap();
   this.labelGenerator = (PieSectionLabelGenerator) new StandardPieSectionLabelGenerator();
   this.labelFont = PiePlot.__\u003C\u003EDEFAULT_LABEL_FONT;
   this.labelPaint = PiePlot.__\u003C\u003EDEFAULT_LABEL_PAINT;
   this.labelBackgroundPaint = PiePlot.__\u003C\u003EDEFAULT_LABEL_BACKGROUND_PAINT;
   this.labelOutlinePaint = PiePlot.__\u003C\u003EDEFAULT_LABEL_OUTLINE_PAINT;
   this.labelOutlineStroke = PiePlot.__\u003C\u003EDEFAULT_LABEL_OUTLINE_STROKE;
   this.labelShadowPaint = PiePlot.__\u003C\u003EDEFAULT_LABEL_SHADOW_PAINT;
   this.labelLinksVisible = true;
   this.labelDistributor = (AbstractPieLabelDistributor) new PieLabelDistributor(0);
   this.simpleLabels = false;
   RectangleInsets.__\u003Cclinit\u003E();
   this.simpleLabelOffset = new RectangleInsets(UnitType.__\u003C\u003ERELATIVE, 0.18, 0.18, 0.18, 0.18);
   this.labelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
   this.toolTipGenerator = (PieToolTipGenerator) null;
   this.urlGenerator = (PieURLGenerator) null;
   this.legendLabelGenerator = (PieSectionLabelGenerator) new StandardPieSectionLabelGenerator();
   this.legendLabelToolTipGenerator = (PieSectionLabelGenerator) null;
   this.legendLabelURLGenerator = (PieURLGenerator) null;
   this.legendItemShape = Plot.__\u003C\u003EDEFAULT_LEGEND_ITEM_CIRCLE;
   this.ignoreNullValues = false;
   this.ignoreZeroValues = false;
 }
 public DefaultPlotEditor([In] Plot obj0)
 {
   base.\u002Ector();
   DefaultPlotEditor defaultPlotEditor = this;
   this.plotInsets = obj0.getInsets();
   PaintSample.__\u003Cclinit\u003E();
   this.backgroundPaintSample = new PaintSample(obj0.getBackgroundPaint());
   StrokeSample.__\u003Cclinit\u003E();
   this.outlineStrokeSample = new StrokeSample(obj0.getOutlineStroke());
   PaintSample.__\u003Cclinit\u003E();
   this.outlinePaintSample = new PaintSample(obj0.getOutlinePaint());
   if (obj0 is CategoryPlot)
     this.plotOrientation = ((CategoryPlot) obj0).getOrientation();
   else if (obj0 is XYPlot)
     this.plotOrientation = ((XYPlot) obj0).getOrientation();
   if (obj0 is CategoryPlot)
   {
     CategoryItemRenderer renderer = ((CategoryPlot) obj0).getRenderer();
     if (renderer is LineAndShapeRenderer)
     {
       LineAndShapeRenderer andShapeRenderer = (LineAndShapeRenderer) renderer;
       this.drawLines = BooleanUtilities.valueOf(andShapeRenderer.getBaseLinesVisible());
       this.drawShapes = BooleanUtilities.valueOf(andShapeRenderer.getBaseShapesVisible());
     }
   }
   else if (obj0 is XYPlot)
   {
     XYItemRenderer renderer = ((XYPlot) obj0).getRenderer();
     if (renderer is StandardXYItemRenderer)
     {
       StandardXYItemRenderer standardXyItemRenderer = (StandardXYItemRenderer) renderer;
       this.drawLines = BooleanUtilities.valueOf(standardXyItemRenderer.getPlotLines());
       this.drawShapes = BooleanUtilities.valueOf(standardXyItemRenderer.getBaseShapesVisible());
     }
   }
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   this.availableStrokeSamples = new StrokeSample[4];
   this.availableStrokeSamples[0] = new StrokeSample((Stroke) null);
   StrokeSample[] strokeSampleArray1 = this.availableStrokeSamples;
   int index1 = 1;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample1 = new StrokeSample((Stroke) new BasicStroke(1f));
   strokeSampleArray1[index1] = strokeSample1;
   StrokeSample[] strokeSampleArray2 = this.availableStrokeSamples;
   int index2 = 2;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample2 = new StrokeSample((Stroke) new BasicStroke(2f));
   strokeSampleArray2[index2] = strokeSample2;
   StrokeSample[] strokeSampleArray3 = this.availableStrokeSamples;
   int index3 = 3;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample3 = new StrokeSample((Stroke) new BasicStroke(3f));
   strokeSampleArray3[index3] = strokeSample3;
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel1).setBorder((Border) BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), new StringBuffer().append(obj0.getPlotType()).append(DefaultPlotEditor.localizationResources.getString(":")).toString()));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel2 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel2).setBorder((Border) BorderFactory.createTitledBorder(DefaultPlotEditor.localizationResources.getString("General")));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel3 = new JPanel((LayoutManager) new LCBLayout(7));
   ((JComponent) jpanel3).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   JPanel jpanel4 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultPlotEditor.localizationResources.getString("Outline_stroke"));
   ((Container) jpanel4).add((Component) jlabel1);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton1 = new JButton(DefaultPlotEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton1).setActionCommand("OutlineStroke");
   ((AbstractButton) jbutton1).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) this.outlineStrokeSample);
   ((Container) jpanel3).add((Component) jbutton1);
   JPanel jpanel5 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultPlotEditor.localizationResources.getString("Outline_Paint"));
   ((Container) jpanel5).add((Component) jlabel2);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton2 = new JButton(DefaultPlotEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton2).setActionCommand("OutlinePaint");
   ((AbstractButton) jbutton2).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) this.outlinePaintSample);
   ((Container) jpanel3).add((Component) jbutton2);
   JPanel jpanel6 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(DefaultPlotEditor.localizationResources.getString("Background_paint"));
   ((Container) jpanel6).add((Component) jlabel3);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton3 = new JButton(DefaultPlotEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton3).setActionCommand("BackgroundPaint");
   ((AbstractButton) jbutton3).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) this.backgroundPaintSample);
   ((Container) jpanel3).add((Component) jbutton3);
   if (this.plotOrientation != null)
   {
     int num = !this.plotOrientation.equals((object) PlotOrientation.__\u003C\u003EVERTICAL) ? 1 : 0;
     JPanel jpanel7 = jpanel3;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel4 = new JLabel(DefaultPlotEditor.localizationResources.getString("Orientation"));
     ((Container) jpanel7).add((Component) jlabel4);
     JComboBox.__\u003Cclinit\u003E();
     this.orientationCombo = new JComboBox((object[]) DefaultPlotEditor.orientationNames);
     this.orientationCombo.setSelectedIndex(num);
     this.orientationCombo.setActionCommand("Orientation");
     this.orientationCombo.addActionListener((ActionListener) this);
     ((Container) jpanel3).add((Component) new JPanel());
     ((Container) jpanel3).add((Component) this.orientationCombo);
   }
   if (this.drawLines != null)
   {
     JPanel jpanel7 = jpanel3;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel4 = new JLabel(DefaultPlotEditor.localizationResources.getString("Draw_lines"));
     ((Container) jpanel7).add((Component) jlabel4);
     this.drawLinesCheckBox = new JCheckBox();
     ((AbstractButton) this.drawLinesCheckBox).setSelected(this.drawLines.booleanValue());
     ((AbstractButton) this.drawLinesCheckBox).setActionCommand("DrawLines");
     ((AbstractButton) this.drawLinesCheckBox).addActionListener((ActionListener) this);
     ((Container) jpanel3).add((Component) new JPanel());
     ((Container) jpanel3).add((Component) this.drawLinesCheckBox);
   }
   if (this.drawShapes != null)
   {
     JPanel jpanel7 = jpanel3;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel4 = new JLabel(DefaultPlotEditor.localizationResources.getString("Draw_shapes"));
     ((Container) jpanel7).add((Component) jlabel4);
     this.drawShapesCheckBox = new JCheckBox();
     ((AbstractButton) this.drawShapesCheckBox).setSelected(this.drawShapes.booleanValue());
     ((AbstractButton) this.drawShapesCheckBox).setActionCommand("DrawShapes");
     ((AbstractButton) this.drawShapesCheckBox).addActionListener((ActionListener) this);
     ((Container) jpanel3).add((Component) new JPanel());
     ((Container) jpanel3).add((Component) this.drawShapesCheckBox);
   }
   ((Container) jpanel2).add((Component) jpanel3, (object) "North");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel8 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel8).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   ((Container) jpanel8).add((Component) jpanel2, (object) "North");
   JTabbedPane jtabbedPane = new JTabbedPane();
   ((JComponent) jtabbedPane).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   Axis axis = (Axis) null;
   if (obj0 is CategoryPlot)
     axis = (Axis) ((CategoryPlot) obj0).getDomainAxis();
   else if (obj0 is XYPlot)
     axis = (Axis) ((XYPlot) obj0).getDomainAxis();
   this.domainAxisPropertyPanel = DefaultAxisEditor.getInstance(axis);
   if (this.domainAxisPropertyPanel != null)
   {
     ((JComponent) this.domainAxisPropertyPanel).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
     jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Domain_Axis"), (Component) this.domainAxisPropertyPanel);
   }
   ValueAxis valueAxis = (ValueAxis) null;
   if (obj0 is CategoryPlot)
     valueAxis = ((CategoryPlot) obj0).getRangeAxis();
   else if (obj0 is XYPlot)
     valueAxis = ((XYPlot) obj0).getRangeAxis();
   this.rangeAxisPropertyPanel = DefaultAxisEditor.getInstance((Axis) valueAxis);
   if (this.rangeAxisPropertyPanel != null)
   {
     ((JComponent) this.rangeAxisPropertyPanel).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
     jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Range_Axis"), (Component) this.rangeAxisPropertyPanel);
   }
   ColorBar colorBar = (ColorBar) null;
   if (obj0 is ContourPlot)
     colorBar = ((ContourPlot) obj0).getColorBar();
   this.colorBarAxisPropertyPanel = DefaultColorBarEditor.getInstance(colorBar);
   if (this.colorBarAxisPropertyPanel != null)
   {
     ((JComponent) this.colorBarAxisPropertyPanel).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
     jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Color_Bar"), (Component) this.colorBarAxisPropertyPanel);
   }
   jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Appearance"), (Component) jpanel8);
   ((Container) jpanel1).add((Component) jtabbedPane);
   ((Container) this).add((Component) jpanel1);
 }
Example #14
0
 public LegendTitle(LegendItemSource source, Arrangement hLayout, Arrangement vLayout)
 {
   LegendTitle legendTitle = this;
   LegendItemSource[] legendItemSourceArray = new LegendItemSource[1];
   int index = 0;
   LegendItemSource legendItemSource = source;
   legendItemSourceArray[index] = legendItemSource;
   this.sources = legendItemSourceArray;
   this.items = new BlockContainer(hLayout);
   this.hLayout = hLayout;
   this.vLayout = vLayout;
   this.backgroundPaint = (Paint) null;
   this.legendItemGraphicEdge = RectangleEdge.__\u003C\u003ELEFT;
   this.legendItemGraphicAnchor = RectangleAnchor.__\u003C\u003ECENTER;
   this.legendItemGraphicLocation = RectangleAnchor.__\u003C\u003ECENTER;
   this.legendItemGraphicPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
   this.itemFont = LegendTitle.__\u003C\u003EDEFAULT_ITEM_FONT;
   this.itemPaint = LegendTitle.__\u003C\u003EDEFAULT_ITEM_PAINT;
   this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
 }
Example #15
0
 public DateTitle(int style, Locale locale, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
   : base(DateFormat.getDateInstance(style, locale).format(new Date()), font, paint, position, horizontalAlignment, verticalAlignment, padding)
 {
 }
Example #16
0
 protected internal Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
 {
   Title title = this;
   if (position == null)
   {
     string str = "Null 'position' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (horizontalAlignment == null)
   {
     string str = "Null 'horizontalAlignment' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (verticalAlignment == null)
   {
     string str = "Null 'verticalAlignment' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (padding == null)
   {
     string str = "Null 'spacer' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.visible = true;
     this.position = position;
     this.horizontalAlignment = horizontalAlignment;
     this.verticalAlignment = verticalAlignment;
     this.setPadding(padding);
     this.listenerList = new EventListenerList();
     this.notify = true;
   }
 }
 public ThermometerPlot(ValueDataset dataset)
 {
   ThermometerPlot thermometerPlot = this;
   this.lowerBound = 0.0;
   this.upperBound = 100.0;
   this.bulbRadius = 40;
   this.columnRadius = 20;
   this.gap = 5;
   this.thermometerStroke = (Stroke) new BasicStroke(1f);
   this.thermometerPaint = (Paint) Color.black;
   this.units = 2;
   this.valueLocation = 3;
   this.axisLocation = 2;
   this.valueFont = new Font("SansSerif", 1, 16);
   this.valuePaint = (Paint) Color.white;
   this.valueFormat = (NumberFormat) new DecimalFormat();
   this.mercuryPaint = (Paint) Color.lightGray;
   this.showValueLines = false;
   this.subrange = -1;
   double[][] numArray1 = new double[3][];
   int index1 = 0;
   double[] numArray2 = new double[4];
   int index2 = 0;
   double num1 = 0.0;
   numArray2[index2] = num1;
   int index3 = 1;
   double num2 = 50.0;
   numArray2[index3] = num2;
   int index4 = 2;
   double num3 = 0.0;
   numArray2[index4] = num3;
   int index5 = 3;
   double num4 = 50.0;
   numArray2[index5] = num4;
   numArray1[index1] = numArray2;
   int index6 = 1;
   double[] numArray3 = new double[4];
   int index7 = 0;
   double num5 = 50.0;
   numArray3[index7] = num5;
   int index8 = 1;
   double num6 = 75.0;
   numArray3[index8] = num6;
   int index9 = 2;
   double num7 = 50.0;
   numArray3[index9] = num7;
   int index10 = 3;
   double num8 = 75.0;
   numArray3[index10] = num8;
   numArray1[index6] = numArray3;
   int index11 = 2;
   double[] numArray4 = new double[4];
   int index12 = 0;
   double num9 = 75.0;
   numArray4[index12] = num9;
   int index13 = 1;
   double num10 = 100.0;
   numArray4[index13] = num10;
   int index14 = 2;
   double num11 = 75.0;
   numArray4[index14] = num11;
   int index15 = 3;
   double num12 = 100.0;
   numArray4[index15] = num12;
   numArray1[index11] = numArray4;
   this.subrangeInfo = numArray1;
   this.followDataInSubranges = false;
   this.useSubrangePaint = true;
   Paint[] paintArray = new Paint[3];
   int index16 = 0;
   // ISSUE: variable of the null type
   __Null local1 = Color.green;
   paintArray[index16] = (Paint) local1;
   int index17 = 1;
   // ISSUE: variable of the null type
   __Null local2 = Color.orange;
   paintArray[index17] = (Paint) local2;
   int index18 = 2;
   // ISSUE: variable of the null type
   __Null local3 = Color.red;
   paintArray[index18] = (Paint) local3;
   this.subrangePaint = paintArray;
   this.subrangeIndicatorsVisible = true;
   this.subrangeIndicatorStroke = (Stroke) new BasicStroke(2f);
   this.rangeIndicatorStroke = (Stroke) new BasicStroke(3f);
   RectangleInsets.__\u003Cclinit\u003E();
   this.padding = new RectangleInsets(UnitType.__\u003C\u003ERELATIVE, 0.05, 0.05, 0.05, 0.05);
   this.dataset = dataset;
   if (dataset != null)
     dataset.addChangeListener((DatasetChangeListener) this);
   NumberAxis numberAxis = new NumberAxis((string) null);
   numberAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
   numberAxis.setAxisLineVisible(false);
   numberAxis.setPlot((Plot) this);
   numberAxis.addChangeListener((AxisChangeListener) this);
   this.rangeAxis = (ValueAxis) numberAxis;
   this.setAxisRange();
 }
 public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat, RectangleInsets padding, Font labelFont, Paint labelPaint, bool drawDividers, Stroke dividerStroke, Paint dividerPaint)
 {
   int num = drawDividers ? 1 : 0;
   base.\u002Ector();
   PeriodAxisLabelInfo periodAxisLabelInfo = this;
   if (periodClass == null)
   {
     string str = "Null 'periodClass' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (dateFormat == null)
   {
     string str = "Null 'dateFormat' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (padding == null)
   {
     string str = "Null 'padding' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (labelFont == null)
   {
     string str = "Null 'labelFont' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (labelPaint == null)
   {
     string str = "Null 'labelPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (dividerStroke == null)
   {
     string str = "Null 'dividerStroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (dividerPaint == null)
   {
     string str = "Null 'dividerPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.periodClass = periodClass;
     this.dateFormat = dateFormat;
     this.padding = padding;
     this.labelFont = labelFont;
     this.labelPaint = labelPaint;
     this.drawDividers = num != 0;
     this.dividerStroke = dividerStroke;
     this.dividerPaint = dividerPaint;
   }
 }
Example #19
0
 protected internal Plot()
 {
   base.\u002Ector();
   Plot plot = this;
   this.backgroundImageAlignment = 15;
   this.backgroundImageAlpha = 0.5f;
   this.parent = (Plot) null;
   this.insets = Plot.__\u003C\u003EDEFAULT_INSETS;
   this.backgroundPaint = Plot.__\u003C\u003EDEFAULT_BACKGROUND_PAINT;
   this.backgroundAlpha = 1f;
   this.backgroundImage = (Image) null;
   this.outlineVisible = true;
   this.outlineStroke = Plot.__\u003C\u003EDEFAULT_OUTLINE_STROKE;
   this.outlinePaint = Plot.__\u003C\u003EDEFAULT_OUTLINE_PAINT;
   this.foregroundAlpha = 1f;
   this.noDataMessage = (string) null;
   this.noDataMessageFont = new Font("SansSerif", 0, 12);
   this.noDataMessagePaint = (Paint) Color.black;
   this.drawingSupplier = (DrawingSupplier) new DefaultDrawingSupplier();
   this.notify = true;
   this.listenerList = new EventListenerList();
 }
Example #20
0
 public TextTitle(string text, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
   : base(position, horizontalAlignment, verticalAlignment, padding)
 {
   TextTitle textTitle = this;
   this.expandToFitSpace = false;
   this.maximumLinesToDisplay = int.MaxValue;
   if (text == null)
   {
     string str = "Null 'text' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else if (font == null)
   {
     string str = "Null 'font' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else
   {
     this.text = text;
     this.font = font;
     this.paint = paint;
     this.textAlignment = horizontalAlignment;
     this.backgroundPaint = (Paint) null;
     this.content = (TextBlock) null;
     this.toolTipText = (string) null;
     this.urlText = (string) null;
   }
 }
 public virtual RectangleInsets getPlotInsets()
 {
   if (this.plotInsets == null)
     this.plotInsets = new RectangleInsets(0.0, 0.0, 0.0, 0.0);
   return this.plotInsets;
 }