public PlotEntity(Shape area, Plot plot, string toolTipText, string urlText) : base(area, toolTipText, urlText) { PlotEntity plotEntity = this; if (plot == null) { string str = "Null 'plot' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else this.plot = plot; }
public override AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space) { this.internalMarkerCycleBoundTick = (Tick) null; AxisSpace axisSpace = base.reserveSpace(g2, plot, plotArea, edge, space); if (this.internalMarkerCycleBoundTick == null) return axisSpace; FontMetrics fontMetrics = ((Graphics) g2).getFontMetrics(this.getTickLabelFont()); Rectangle2D textBounds = TextUtilities.getTextBounds(this.internalMarkerCycleBoundTick.getText(), g2, fontMetrics); if (RectangleEdge.isTopOrBottom(edge)) { if (this.isVerticalTickLabels()) space.add(((RectangularShape) textBounds).getHeight() / 2.0, RectangleEdge.__\u003C\u003ERIGHT); else space.add(((RectangularShape) textBounds).getWidth() / 2.0, RectangleEdge.__\u003C\u003ERIGHT); } else if (RectangleEdge.isLeftOrRight(edge)) { if (this.isVerticalTickLabels()) space.add(((RectangularShape) textBounds).getWidth() / 2.0, RectangleEdge.__\u003C\u003ETOP); else space.add(((RectangularShape) textBounds).getHeight() / 2.0, RectangleEdge.__\u003C\u003ETOP); } return axisSpace; }
public JFreeChart(string title, Plot plot) : this(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, plot, true) { }
public JFreeChart(Plot plot) : this((string) null, (Font) null, plot, true) { }
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; } }
public PlotEntity(Shape area, Plot plot) : this(area, plot, (string) null) { }
public PlotEntity(Shape area, Plot plot, string toolTipText) : this(area, plot, toolTipText, (string) null) { }
public PlotChangeEvent(Plot plot) : base((object) plot) { PlotChangeEvent plotChangeEvent = this; this.plot = plot; }
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(); }