Examples of Paint


Examples of java.awt.Paint

      RectangleInsets defaultLabelInsets = (RectangleInsets)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_INSETS);
      if(defaultLabelInsets != null)
      {
        axis.setLabelInsets(defaultLabelInsets);
      }
      Paint labelPaint = labelColor != null ?
          labelColor :
          (Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_PAINT)
      if (labelPaint != null)
      {
        axis.setLabelPaint(labelPaint);
View Full Code Here

Examples of java.awt.Paint

      RectangleInsets defaultTickLabelInsets = (RectangleInsets)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_LABEL_INSETS);
      if(defaultTickLabelInsets != null)
      {
        axis.setTickLabelInsets(defaultTickLabelInsets);
      }
      Paint tickLabelPaint = tickLabelColor != null ?
          tickLabelColor :
          (Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_LABEL_PAINT)
      if (tickLabelPaint != null)
      {
        axis.setTickLabelPaint(tickLabelPaint);
View Full Code Here

Examples of java.awt.Paint

     
      Float defaultAxisTickMarksOutsideLength = (Float)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_OUTSIDE_LENGTH);
      if(defaultAxisTickMarksOutsideLength != null)
        axis.setTickMarkInsideLength(defaultAxisTickMarksOutsideLength.floatValue());
     
      Paint tickMarkPaint = getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_PAINT) != null ?
          (Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_PAINT) :
          lineColor;
     
      if (tickMarkPaint != null)
      {
View Full Code Here

Examples of java.awt.Paint

      }
    }
    chartPlot.setTickLabelsVisible(true);

    // Set all the colors we support
    Paint backgroundPaint = jrPlot.getOwnBackcolor() == null ? ChartThemesConstants.TRANSPARENT_PAINT : jrPlot.getOwnBackcolor();
    chartPlot.setBackgroundPaint(backgroundPaint);

    GradientPaint gp =
      new GradientPaint(
        new Point(), Color.LIGHT_GRAY,
        new Point(), Color.BLACK,
        false
        );
   
    if(jrPlot.getMeterBackgroundColor() != null)
    {
      chartPlot.setDialBackgroundPaint(jrPlot.getMeterBackgroundColor());
    }
    else
    {
      chartPlot.setDialBackgroundPaint(gp);
    }
    //chartPlot.setForegroundAlpha(1f);
    Paint needlePaint = jrPlot.getNeedleColor() == null ? new Color(191, 48, 0) : jrPlot.getNeedleColor();
    chartPlot.setNeedlePaint(needlePaint);

    JRValueDisplay display = jrPlot.getValueDisplay();
    if(display != null)
    {
View Full Code Here

Examples of javafx.scene.paint.Paint

  @Override
  public void start(Stage stage) {
   
    HBox lHBox = new HBox(20);
    Paint lShowDebug = Color.GREEN;
   
    {
      CircularPane lCircularPane = new CircularPane();
      //lCircularPane.setStyle("-fx-border-color:black;");
      lCircularPane.setStartAngle(360.0 / 12 / 2); // make sure the 12 is on top
View Full Code Here

Examples of org.joshy.gfx.draw.Paint

    @Override
    public void changed() {
        if(shape instanceof AbstractResizeableNode) {
            AbstractResizeableNode res = (AbstractResizeableNode) shape;
            Paint paint = shape.getFillPaint();
            if(paint instanceof LinearGradientFill) {
                LinearGradientFill lg = (LinearGradientFill) paint;
                switch(lg.getStartXSnapped()) {
                    case Start: lg.setStartX(0); break;
                    case Middle: lg.setStartX(res.getBounds().getWidth() / 2); break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.