コード例 #1
0
 public LegendGraphic(Shape shape, Paint fillPaint)
 {
   LegendGraphic legendGraphic = this;
   if (shape == null)
   {
     string str = "Null 'shape' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (fillPaint == null)
   {
     string str = "Null 'fillPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.shapeVisible = true;
     this.shape = shape;
     this.shapeAnchor = RectangleAnchor.__\u003C\u003ECENTER;
     this.shapeLocation = RectangleAnchor.__\u003C\u003ECENTER;
     this.shapeFilled = true;
     this.fillPaint = fillPaint;
     this.fillPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer();
     this.setPadding(2.0, 2.0, 2.0, 2.0);
   }
 }
コード例 #2
0
 public IntervalMarker(double start, double end, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
   : base(paint, stroke, outlinePaint, outlineStroke, alpha)
 {
   IntervalMarker intervalMarker = this;
   this.startValue = start;
   this.endValue = end;
   this.gradientPaintTransformer = (GradientPaintTransformer) null;
   this.setLabelOffsetType(LengthAdjustmentType.__\u003C\u003ECONTRACT);
 }
コード例 #3
0
 public XYBarRenderer(double margin)
 {
   XYBarRenderer xyBarRenderer = this;
   this.margin = margin;
   this.@base = 0.0;
   this.useYInterval = false;
   this.gradientPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer();
   this.drawBarOutline = false;
   this.legendBar = (Shape) new Rectangle2D.Double(-3.0, -5.0, 6.0, 10.0);
   this.barPainter = XYBarRenderer.getDefaultBarPainter();
   this.shadowsVisible = XYBarRenderer.getDefaultShadowsVisible();
   this.shadowXOffset = 4.0;
   this.shadowYOffset = 4.0;
   this.barAlignmentFactor = -1.0;
 }
コード例 #4
0
 public DialBackground(Paint paint)
 {
   DialBackground dialBackground = this;
   if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.paint = paint;
     this.gradientPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer();
   }
 }
コード例 #5
0
 public BarRenderer()
 {
   BarRenderer barRenderer = this;
   this.@base = 0.0;
   this.includeBaseInRange = true;
   this.itemMargin = 0.2;
   this.drawBarOutline = false;
   this.maximumBarWidth = 1.0;
   this.positiveItemLabelPositionFallback = (ItemLabelPosition) null;
   this.negativeItemLabelPositionFallback = (ItemLabelPosition) null;
   this.gradientPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer();
   this.minimumBarLength = 0.0;
   this.setBaseLegendShape((Shape) new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
   this.barPainter = BarRenderer.getDefaultBarPainter();
   this.shadowsVisible = BarRenderer.getDefaultShadowsVisible();
   this.shadowPaint = (Paint) Color.gray;
   this.shadowXOffset = 4.0;
   this.shadowYOffset = 4.0;
 }
コード例 #6
0
 public LegendItem(string label, string description, string toolTipText, string urlText, bool shapeVisible, Shape shape, bool shapeFilled, Paint fillPaint, bool shapeOutlineVisible, Paint outlinePaint, Stroke outlineStroke, bool lineVisible, Shape line, Stroke lineStroke, Paint linePaint)
 {
   int num1 = shapeVisible ? 1 : 0;
   int num2 = shapeFilled ? 1 : 0;
   int num3 = shapeOutlineVisible ? 1 : 0;
   int num4 = lineVisible ? 1 : 0;
   base.\u002Ector();
   LegendItem legendItem = this;
   if (label == null)
   {
     string str = "Null 'label' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (fillPaint == null)
   {
     string str = "Null 'fillPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (lineStroke == null)
   {
     string str = "Null 'lineStroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (outlinePaint == null)
   {
     string str = "Null 'outlinePaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (outlineStroke == null)
   {
     string str = "Null 'outlineStroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.label = label;
     this.labelPaint = (Paint) null;
     this.attributedLabel = (AttributedString) null;
     this.description = description;
     this.shapeVisible = num1 != 0;
     this.shape = shape;
     this.shapeFilled = num2 != 0;
     this.fillPaint = fillPaint;
     this.fillPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer();
     this.shapeOutlineVisible = num3 != 0;
     this.outlinePaint = outlinePaint;
     this.outlineStroke = outlineStroke;
     this.lineVisible = num4 != 0;
     this.line = line;
     this.lineStroke = lineStroke;
     this.linePaint = linePaint;
     this.toolTipText = toolTipText;
     this.urlText = urlText;
   }
 }