当前位置: 首页>>代码示例>>Java>>正文


Java ExtendedPropertyDescriptor类代码示例

本文整理汇总了Java中com.l2fprod.common.beans.ExtendedPropertyDescriptor的典型用法代码示例。如果您正苦于以下问题:Java ExtendedPropertyDescriptor类的具体用法?Java ExtendedPropertyDescriptor怎么用?Java ExtendedPropertyDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ExtendedPropertyDescriptor类属于com.l2fprod.common.beans包,在下文中一共展示了ExtendedPropertyDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: LayoutScaleBarBeanBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public LayoutScaleBarBeanBeanInfo() {
    super(LayoutScaleBarBean.class);
    ExtendedPropertyDescriptor e = addProperty("scaleBarType");
    e.setCategory("General").setDisplayName("Scale Bar Type");
    e.setPropertyEditorClass(ScaleBarTypeEditor.class);
    addProperty("drawBackColor").setCategory("General").setDisplayName("Draw Background");
    addProperty("backColor").setCategory("General").setDisplayName("Background");
    addProperty("foreColor").setCategory("General").setDisplayName("Foreground");
    addProperty("font").setCategory("General").setDisplayName("Font");
    addProperty("drawScaleText").setCategory("General").setDisplayName("Draw Scale Text");
    addProperty("drawNeatLine").setCategory("Neat Line").setDisplayName("Draw Neat Line");
    addProperty("neatLineColor").setCategory("Neat Line").setDisplayName("Neat Line Color");
    addProperty("neatLineSize").setCategory("Neat Line").setDisplayName("Neat Line Size");
    addProperty("left").setCategory("Location").setDisplayName("Left");
    addProperty("top").setCategory("Location").setDisplayName("Top");
    addProperty("width").setCategory("Location").setDisplayName("Width");
    addProperty("height").setCategory("Location").setDisplayName("Height");
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:19,代码来源:LayoutScaleBar.java

示例2: DefaultNodePainterBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public DefaultNodePainterBeanInfo()
{
	super(DefaultNodePainter.class);
	addProperty("color").setShortDescription("FNode's foreground color.");
	addProperty("borderColor").setShortDescription("FNode's border color.");
	ExtendedPropertyDescriptor e = addProperty("lineType");
	e.setShortDescription("FNode's line type.");
	e.setPropertyEditorClass(LineTypeEditor.class);
	e.setPropertyTableRendererClass(LineTypeEditor.CellRenderer.class);
	
	e = addProperty("shape");
	   e.setShortDescription("FNode's shape.");
	e.setPropertyEditorClass(ShapeEditor.class);
	e.setPropertyTableRendererClass(ShapeEditor.CellRenderer.class);
	addProperty("label").setShortDescription("FNode's label text.");
	addProperty("labelColor").setShortDescription("FNode's label color.");
	addProperty("tooltip").setShortDescription("FNode's tooltip.");
	e = addProperty("font");
	e.setShortDescription("FNode's font.");
	e.setPropertyEditorClass(FontEditor.class);
	e.setPropertyTableRendererClass(FontEditor.CellRenderer.class);
	
	addProperty("height").setShortDescription("FNode's height.");
	addProperty("width").setShortDescription("FNode's width.");

}
 
开发者ID:hypergraphdb,项目名称:viewer,代码行数:27,代码来源:DefaultNodePainterBeanInfo.java

示例3: createWaterOptions

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
private void createWaterOptions() {
  ExtendedPropertyDescriptor waterColorProperty = addProperty("waterColor").setCategory(CATEGORY_WATER);
  waterColorProperty.setDisplayName("Color");
  waterColorProperty.setShortDescription("color for water");

  ExtendedPropertyDescriptor waterTintProperty = addProperty("waterTint").setCategory(CATEGORY_WATER);
  waterTintProperty.setDisplayName("Tint");

  ExtendedPropertyDescriptor waterWaveStrengthProperty = addProperty("waterWaveStrength").setCategory(CATEGORY_WATER);
  waterWaveStrengthProperty.setDisplayName("Wave strength");
  waterWaveStrengthProperty.setShortDescription("Water wave strength");

  ExtendedPropertyDescriptor waterElevationProperty = addProperty("waterElevation").setCategory(CATEGORY_WATER);
  waterElevationProperty.setDisplayName("Elevation");
  waterElevationProperty.setShortDescription("Elevation for reflection and refraction, only one for whole level");

  ExtendedPropertyDescriptor waterDisplacementTilingProperty = addProperty("waterDisplacementTiling").setCategory(CATEGORY_WATER);
  waterDisplacementTilingProperty.setDisplayName("Displacement tiling");

  ExtendedPropertyDescriptor waterSpeedProperty = addProperty("waterSpeed").setCategory(CATEGORY_WATER);
  waterSpeedProperty.setDisplayName("Speed");

  ExtendedPropertyDescriptor waterRefractiveFactorProperty = addProperty("waterRefractiveFactor").setCategory(CATEGORY_WATER);
  waterRefractiveFactorProperty.setDisplayName("Refraction factor");
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:26,代码来源:EditorScreenBeanInfo.java

示例4: getRenderer

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
/**
  * Gets a renderer for the given property. The lookup is as follow:
  * <ul>
  * <li>if a renderer was registered with
  * {@link ExtendedPropertyDescriptor#setPropertyTableRendererClass(Class)} - BeanInfo, it is
  * returned, else</li>
  * <li>if a renderer was registered with
  * {@link #registerRenderer(Property, TableCellRenderer)}, it is
  * returned, else</li>
  * <li>if a renderer class was registered with
  * {@link #registerRenderer(Property, Class)}, it is returned, else
  * <li>
  * <li>look for renderer for the property type using
  * {@link #getRenderer(Class)}.</li>
  * </ul>
  * 
  * @param property
  * @return a renderer suitable for the Property.
  */
 public synchronized TableCellRenderer getRenderer(Property property)
{

  // editors bound to the property descriptor have the highest priority
  TableCellRenderer renderer = null;
  if (property instanceof PropertyDescriptorAdapter) {
    PropertyDescriptor descriptor = ((PropertyDescriptorAdapter) property).getDescriptor();
    if (descriptor instanceof ExtendedPropertyDescriptor) {
      if (((ExtendedPropertyDescriptor) descriptor).getPropertyTableRendererClass() != null) {
        try {
          return (TableCellRenderer) (((ExtendedPropertyDescriptor) descriptor).getPropertyTableRendererClass()).newInstance();
        }
        catch (Exception ex){
          ex.printStackTrace();
        }
      }
    }
  }
   Object value = propertyToRenderer.get(property);
   if (value instanceof TableCellRenderer) {
     renderer = (TableCellRenderer)value;
   } else if (value instanceof Class) {
     try {
       renderer = (TableCellRenderer)((Class)value).newInstance();
     } catch (Exception e) {
       e.printStackTrace();
     }
   } else {
     renderer = getRenderer(property.getType());
   }
   return renderer;
 }
 
开发者ID:mstritt,项目名称:orbit-image-analysis,代码行数:52,代码来源:PropertyRendererRegistry.java

示例5: getCategory

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public String getCategory() {
  if (descriptor instanceof ExtendedPropertyDescriptor) {
    return ((ExtendedPropertyDescriptor)descriptor).getCategory();
  } else {
    return null;
  }
}
 
开发者ID:mstritt,项目名称:orbit-image-analysis,代码行数:8,代码来源:PropertyDescriptorAdapter.java

示例6: getRenderer

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
/**
 * Gets a renderer for the given property. The lookup is as follow:
 * <ul>
 * <li>if a renderer was registered with
 * {@link ExtendedPropertyDescriptor#setPropertyTableRendererClass(Class)} - BeanInfo, it is
 * returned, else</li>
 * <li>if a renderer was registered with
 * {@link #registerRenderer(Property, TableCellRenderer)}, it is
 * returned, else</li>
 * <li>if a renderer class was registered with
 * {@link #registerRenderer(Property, Class)}, it is returned, else
 * <li>
 * <li>look for renderer for the property type using
 * {@link #getRenderer(Class)}.</li>
 * </ul>
 *
 * @param property
 * @return a renderer suitable for the Property.
 */
public synchronized TableCellRenderer getRenderer(Property property) {

  // editors bound to the property descriptor have the highest priority
  TableCellRenderer renderer = null;
  if (property instanceof PropertyDescriptorAdapter) {
    PropertyDescriptor descriptor = ((PropertyDescriptorAdapter) property).getDescriptor();
    if (descriptor instanceof ExtendedPropertyDescriptor) {
      if (((ExtendedPropertyDescriptor) descriptor).getPropertyTableRendererClass() != null) {
        try {
          return (TableCellRenderer) (((ExtendedPropertyDescriptor) descriptor).getPropertyTableRendererClass()).newInstance();
        } catch (Exception ex) {
          ex.printStackTrace();
        }
      }
    }
  }
  Object value = propertyToRenderer.get(property);
  if (value instanceof TableCellRenderer) {
    renderer = (TableCellRenderer) value;
  } else if (value instanceof Class) {
    try {
      renderer = (TableCellRenderer) ((Class) value).newInstance();
    } catch (Exception e) {
      e.printStackTrace();
    }
  } else {
    renderer = getRenderer(property.getType());
  }
  return renderer;
}
 
开发者ID:calibre2opds,项目名称:calibre2opds,代码行数:50,代码来源:PropertyRendererRegistry.java

示例7: getCategory

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public String getCategory() {
  if (descriptor instanceof ExtendedPropertyDescriptor) {
    return ((ExtendedPropertyDescriptor) descriptor).getCategory();
  } else {
    return null;
  }
}
 
开发者ID:calibre2opds,项目名称:calibre2opds,代码行数:8,代码来源:PropertyDescriptorAdapter.java

示例8: getCategory

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
@Override
public String getCategory() {
    if (descriptor instanceof ExtendedPropertyDescriptor) {
        return ((ExtendedPropertyDescriptor) descriptor).getCategory();
    } else {
        return null;
    }
}
 
开发者ID:ZenHarbinger,项目名称:l2fprod-properties-editor,代码行数:9,代码来源:PropertyDescriptorAdapter.java

示例9: LayoutLegendBeanBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public LayoutLegendBeanBeanInfo() {
    super(LayoutLegendBean.class);
    ExtendedPropertyDescriptor e = addProperty("plotOrientation");
    e.setCategory("General").setDisplayName("Plot orientation");
    e.setPropertyEditorClass(PlotOrientationEditor.class);
    addProperty("tickFont").setCategory("General").setDisplayName("Tick Font");
    addProperty("drawBackground").setCategory("General").setDisplayName("Draw Background");
    addProperty("background").setCategory("General").setDisplayName("Background");
    addProperty("columnNumber").setCategory("General").setDisplayName("Column Number");
    addProperty("drawNeatLine").setCategory("Neat Line").setDisplayName("Draw Neat Line");
    addProperty("neatLineColor").setCategory("Neat Line").setDisplayName("Neat Line Color");
    addProperty("neatLineSize").setCategory("Neat Line").setDisplayName("Neat Line Size");
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:14,代码来源:ChartLegend.java

示例10: MaskOutBeanBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public MaskOutBeanBeanInfo() {
    super(MaskOut.MaskOutBean.class);
    ExtendedPropertyDescriptor e = addProperty("maskLayer");
    e.setCategory("General").setPropertyEditorClass(MaskOut.LayerNameEditor.class);
    e.setDisplayName("Layer Name");
    e.setShortDescription("The name of the layers can be used as maskout");
    e = addProperty("mask");
    e.setCategory("General").setDisplayName("Is Maskout");
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:10,代码来源:MaskOut.java

示例11: LayoutLegendBeanBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public LayoutLegendBeanBeanInfo() {
    super(LayoutLegendBean.class);
    ExtendedPropertyDescriptor e = addProperty("layerName");
    e.setCategory("General").setPropertyEditorClass(LayerNameEditor.class);
    e.setDisplayName("Layer Name");
    e.setShortDescription("The name of the layer of this legend");
    e = addProperty("layerUpdateType");
    e.setCategory("General").setDisplayName("Layer Update Type");
    e.setPropertyEditorClass(LayerUpdateTypeEditor.class);
    e = addProperty("legendStyle");
    e.setCategory("General").setDisplayName("Legend Style");
    e.setPropertyEditorClass(LegendStyleEditor.class);
    addProperty("title").setCategory("General").setDisplayName("Title");
    addProperty("font").setCategory("General").setDisplayName("Font");
    addProperty("drawBackColor").setCategory("General").setDisplayName("Draw Background");
    addProperty("backColor").setCategory("General").setDisplayName("Background");
    addProperty("foreColor").setCategory("General").setDisplayName("Foreground");
    addProperty("columnNumber").setCategory("General").setDisplayName("Column Number");
    addProperty("forceDrawOutline").setCategory("General").setDisplayName("Force Draw Outline");
    addProperty("drawNeatLine").setCategory("Neat Line").setDisplayName("Draw Neat Line");
    addProperty("neatLineColor").setCategory("Neat Line").setDisplayName("Neat Line Color");
    addProperty("neatLineSize").setCategory("Neat Line").setDisplayName("Neat Line Size");
    addProperty("drawChartBreaks").setCategory("Chart").setDisplayName("Draw Chart Breaks");
    //addProperty("drawPieLabel").setCategory("Chart").setDisplayName("Draw Pie label");
    addProperty("left").setCategory("Location").setDisplayName("Left");
    addProperty("top").setCategory("Location").setDisplayName("Top");
    addProperty("width").setCategory("Location").setDisplayName("Width");
    addProperty("height").setCategory("Location").setDisplayName("Height");
    //addProperty("barWidth").setCategory("ColorBar").setDisplayName("Bar Width");
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:31,代码来源:LayoutLegend.java

示例12: LayoutMapBeanBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public LayoutMapBeanBeanInfo() {
    super(LayoutMapBean.class);
    addProperty("drawBackColor").setCategory("General").setDisplayName("Draw Background");
    addProperty("backColor").setCategory("General").setDisplayName("Background");
    addProperty("foreColor").setCategory("General").setDisplayName("Foreground");
    addProperty("drawNeatLine").setCategory("Neat Line").setDisplayName("Draw Neat Line");
    addProperty("neatLineColor").setCategory("Neat Line").setDisplayName("Neat Line Color");
    addProperty("neatLineSize").setCategory("Neat Line").setDisplayName("Neat Line Size");
    addProperty("drawGridLine").setCategory("Grid Line").setDisplayName("Draw Grid Line");
    addProperty("drawGridLabel").setCategory("Grid Line").setDisplayName("Draw Grid Label");
    addProperty("gridXDelt").setCategory("Grid Line").setDisplayName("Grid X Interval");
    addProperty("gridYDelt").setCategory("Grid Line").setDisplayName("Grid Y Interval");
    addProperty("gridXOrigin").setCategory("Grid Line").setDisplayName("Grid X Origin");
    addProperty("gridYOrigin").setCategory("Grid Line").setDisplayName("Grid Y Origin");
    addProperty("gridFont").setCategory("Grid Line").setDisplayName("Grid Label Font");
    addProperty("gridLabelShift").setCategory("Grid Line").setDisplayName("Grid Label Shift");
    ExtendedPropertyDescriptor e = addProperty("gridLabelPosition");
    e.setCategory("Grid Line").setDisplayName("Grid Label Position");
    e.setPropertyEditorClass(GridLabelPositionEditor.class);
    addProperty("drawDegreeSymbol").setCategory("Grid Line").setDisplayName("Draw Degree Symbol");
    addProperty("gridLineColor").setCategory("Grid Line").setDisplayName("Grid Line Color");
    addProperty("gridLineSize").setCategory("Grid Line").setDisplayName("Grid Line Size");
    e = addProperty("gridLineStyle");
    e.setCategory("Grid Line").setDisplayName("Grid Line Style");
    e.setPropertyEditorClass(LineStyleEditor.class);
    addProperty("insideTickLine").setCategory("Grid Line").setDisplayName("Inside Tick Line");
    addProperty("tickLineLength").setCategory("Grid Line").setDisplayName("Tick Line Length");
    addProperty("left").setCategory("Location").setDisplayName("Left");
    addProperty("top").setCategory("Location").setDisplayName("Top");
    addProperty("width").setCategory("Location").setDisplayName("Width");
    addProperty("height").setCategory("Location").setDisplayName("Height");
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:33,代码来源:LayoutMap.java

示例13: WebMapLayerBeanBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public WebMapLayerBeanBeanInfo() {
    super(WebMapLayer.WebMapLayerBean.class);
    addProperty("layerType").setCategory("Read only").setReadOnly().setDisplayName("Layer type");
    addProperty("layerDrawType").setCategory("Read only").setReadOnly().setDisplayName("Layer draw type");
    addProperty("handle").setCategory("Read only").setReadOnly().setDisplayName("Handle");
    ExtendedPropertyDescriptor e = addProperty("webMapProvider");
    e.setCategory("Editable").setDisplayName("Web Map Provider");
    e.setPropertyEditorClass(WebMapProviderEditor.class);
    e = addProperty("language");
    e.setCategory("Editable").setDisplayName("Language");
    e.setPropertyEditorClass(LanguageEditor.class);
    addProperty("visible").setCategory("Editable").setDisplayName("Visible");
    addProperty("maskout").setCategory("Editable").setDisplayName("Is maskout");
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:15,代码来源:WebMapLayer.java

示例14: DefaultEdgePainterBeanInfo

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public DefaultEdgePainterBeanInfo()
{
	super(DefaultEdgePainter.class);
	addProperty("color").setShortDescription("FEdge's line color.");
	ExtendedPropertyDescriptor e = addProperty("lineType");
	e.setShortDescription("FEdge's line type.");
	e.setPropertyEditorClass(LineTypeEditor.class);
	e.setPropertyTableRendererClass(LineTypeEditor.CellRenderer.class);
	
	e = addProperty("srcArrow");
	   e.setShortDescription("FEdge's Source Arrow.");
	e.setPropertyEditorClass(ArrowEditor.class);
	e.setPropertyTableRendererClass(ArrowEditor.CellRenderer.class);
	
	e = addProperty("tgtArrow");
	e.setShortDescription("FEdge's Target Arrow.");
	e.setPropertyEditorClass(ArrowEditor.class);
	e.setPropertyTableRendererClass(ArrowEditor.CellRenderer.class);
	
	
	addProperty("label").setShortDescription("FEdge's label text.");
	addProperty("labelColor").setShortDescription("FEdge's label color.");
	addProperty("tooltip").setShortDescription("FEdge's tooltip.");
	e = addProperty("font");
	e.setShortDescription("FEdge's font.");
	e.setPropertyEditorClass(FontEditor.class);
	e.setPropertyTableRendererClass(FontEditor.CellRenderer.class);
  }
 
开发者ID:hypergraphdb,项目名称:viewer,代码行数:29,代码来源:DefaultEdgePainterBeanInfo.java

示例15: TreeChangeableProvider

import com.l2fprod.common.beans.ExtendedPropertyDescriptor; //导入依赖的package包/类
public TreeChangeableProvider() {
  super(TreeChangeableProvider.class);

  ExtendedPropertyDescriptor heightProperty = addProperty("height");
  heightProperty.setDisplayName("Height");
  heightProperty.setCategory(BRUSH_CATEGORY);

  ExtendedPropertyDescriptor radiusProperty = addProperty("radius");
  radiusProperty.setDisplayName("Radius");
  radiusProperty.setCategory(BRUSH_CATEGORY);
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:12,代码来源:TreeChangeableProvider.java


注:本文中的com.l2fprod.common.beans.ExtendedPropertyDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。