Examples of ColorProperty


Examples of org.apache.fop.fo.properties.ColorProperty

    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
        FOUserAgent ua = (pInfo == null)
                ? null
                : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent());
        return new ColorProperty(ua, "system-color(" + args[0] + ")");

    }
View Full Code Here

Examples of org.apache.fop.fo.properties.ColorProperty

    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
      FOUserAgent ua = (pInfo == null)
              ? null
              : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent());
      return new ColorProperty(ua, "rgb(" + args[0] + "," + args[1] + "," + args[2] + ")");

    }
View Full Code Here

Examples of org.apache.fop.fo.properties.ColorProperty

        StringBuffer sb = new StringBuffer();
        sb.append("cmyk(" + args[0] + "," + args[1] + "," + args[2] + "," + args[3] + ")");
        FOUserAgent ua = (pInfo == null)
                ? null
                : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent());
        return new ColorProperty(ua, sb.toString());
    }
View Full Code Here

Examples of org.apache.fop.fo.properties.ColorProperty

        }
        sb.append(")");
        FOUserAgent ua = (pInfo == null
                ? null
                : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent()));
        return new ColorProperty(ua, sb.toString());
    }
View Full Code Here

Examples of org.apache.fop.fo.properties.ColorProperty

                    Property p, PropertyList propertyList, FObj fo) throws PropertyException {
                String nameval = p.getNCname();
                if (nameval != null) {
                    FObj fobj = (fo == null ? propertyList.getFObj() : fo);
                    FOUserAgent ua = (fobj == null ? null : fobj.getUserAgent());
                    return new ColorProperty(ua, nameval);
                }
                return super.convertPropertyDatatype(p, propertyList, fo);
            }
        };
        m.useGeneric(genericColor);
View Full Code Here

Examples of org.freeplane.core.resources.components.ColorProperty

  }

  private void addBgColorControl(final List<IPropertyControl> controls) {
    mSetNodeBackgroundColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeBackgroundColor);
    mNodeBackgroundColor = new ColorProperty(StyleEditorPanel.NODE_BACKGROUND_COLOR, ResourceController
        .getResourceController().getDefaultProperty(NODE_BACKGROUND_COLOR));
    controls.add(mNodeBackgroundColor);
    final BgColorChangeListener listener = new BgColorChangeListener(mSetNodeBackgroundColor, mNodeBackgroundColor);
    mSetNodeBackgroundColor.addPropertyChangeListener(listener);
    mNodeBackgroundColor.addPropertyChangeListener(listener);
View Full Code Here

Examples of org.freeplane.core.resources.components.ColorProperty

  }

  private void addCloudColorControl(final List<IPropertyControl> controls) {
    mSetCloud = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetCloud);
    mCloudColor = new ColorProperty(StyleEditorPanel.CLOUD_COLOR, ResourceController.getResourceController()
        .getDefaultProperty(CloudController.RESOURCES_CLOUD_COLOR));
    controls.add(mCloudColor);
    final CloudColorChangeListener listener = new CloudColorChangeListener(mSetCloud, mCloudColor);
    mSetCloud.addPropertyChangeListener(listener);
    mCloudColor.addPropertyChangeListener(listener);
View Full Code Here

Examples of org.freeplane.core.resources.components.ColorProperty

  }

  private void addColorControl(final List<IPropertyControl> controls) {
    mSetNodeColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeColor);
    mNodeColor = new ColorProperty(StyleEditorPanel.NODE_COLOR, ResourceController.getResourceController()
        .getDefaultProperty(NODE_TEXT_COLOR));
    controls.add(mNodeColor);
    final ColorChangeListener listener = new ColorChangeListener(mSetNodeColor, mNodeColor);
    mSetNodeColor.addPropertyChangeListener(listener);
    mNodeColor.addPropertyChangeListener(listener);
View Full Code Here

Examples of org.freeplane.core.resources.components.ColorProperty

  }

  private void addEdgeColorControl(final List<IPropertyControl> controls) {
    mSetEdgeColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetEdgeColor);
    mEdgeColor = new ColorProperty(StyleEditorPanel.EDGE_COLOR, ColorUtils.colorToString(EdgeController.STANDARD_EDGE_COLOR));
    controls.add(mEdgeColor);
    final EdgeColorChangeListener listener = new EdgeColorChangeListener(mSetEdgeColor, mEdgeColor);
    mSetEdgeColor.addPropertyChangeListener(listener);
    mEdgeColor.addPropertyChangeListener(listener);
    mEdgeColor.fireOnMouseClick();
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.