org.openbp.cockpit.modeler.skins
Class SymbolDescriptor

java.lang.Object
  extended by org.openbp.cockpit.modeler.figures.generic.XFigureDescriptor
      extended by org.openbp.cockpit.modeler.skins.SymbolDescriptor

public class SymbolDescriptor
extends XFigureDescriptor

Symbol descriptor.

Author:
Heiko Erhardt

Field Summary
static int FLAG_IMAGE_DISABLED
          Flag: Image display disabled
 
Fields inherited from class org.openbp.cockpit.modeler.figures.generic.XFigureDescriptor
DEFAULT_FRAME_STROKE_WIDTH, DEFAULT_GRADIENT_POS, DEFAULT_ORIENTATION, DEFAULT_SIZE, FLAG_CYCLIC_GRADIENT, GRADIENTPOS_CENTER, GRADIENTPOS_E, GRADIENTPOS_N, GRADIENTPOS_NE, GRADIENTPOS_NW, GRADIENTPOS_S, GRADIENTPOS_SE, GRADIENTPOS_SW, GRADIENTPOS_W, MAX_SIZE, MIN_SIZE
 
Constructor Summary
SymbolDescriptor()
          Default constructor.
 
Method Summary
protected  void addErrorMsg(java.util.List errorMsgs, java.lang.String errorMsg)
          Adds an error msg, prepending it by the node type name.
 javax.swing.ImageIcon getOverlayIcon()
          Gets the optional image.
 java.lang.String getOverlayPosition()
          Gets the overlay position.
 java.lang.String getOverlayResourceKey()
          Gets the overlay resource key.
 java.lang.String getSymbolType()
          Gets the symbol type.
 java.lang.String getTextPosition()
          Gets the text position.
 boolean isImageDisabled()
          Gets the image disabled.
 void setImageDisabled(boolean imageDisabled)
          Sets the image disabled.
 void setOverlayIcon(javax.swing.ImageIcon overlayIcon)
          Sets the optional image.
 void setOverlayPosition(java.lang.String overlayPosition)
          Sets the overlay position.
 void setOverlayResourceKey(java.lang.String overlayResourceKey)
          Sets the overlay resource key.
 void setSymbolType(java.lang.String symbolType)
          Sets the symbol type.
 void setTextPosition(java.lang.String textPosition)
          Sets the text position.
 
Methods inherited from class org.openbp.cockpit.modeler.figures.generic.XFigureDescriptor
addTaggedValue, clearTaggedValues, createFigure, determineFigureClassName, getCustomIntAttributeValue, getFigureClassName, getFigureType, getFillColor, getFillColor2, getFillColor2Str, getFillColorStr, getFrameColor, getFrameColorStr, getFrameStroke, getFrameStrokeWidth, getGradientPos1, getGradientPos1Str, getGradientPos2, getGradientPos2Str, getImageFileName, getImageIcon, getMaxSizeX, getMaxSizeY, getMinSizeX, getMinSizeY, getOrientation, getOrientationStr, getSizeX, getSizeY, getTaggedValue, getTaggedValue, getTaggedValueList, getTaggedValues, hasFrameStrokeWidth, hasOrientation, hasSizeX, hasSizeY, initialize, isCyclicGradient, setCyclicGradient, setFigureClassName, setFigureType, setFillColor, setFillColor2, setFillColor2Str, setFillColorStr, setFrameColor, setFrameColorStr, setFrameStrokeWidth, setGradientPos1, setGradientPos1Str, setGradientPos2, setGradientPos2Str, setImageFileName, setMaxSizeX, setMaxSizeY, setMinSizeX, setMinSizeY, setOrientation, setOrientationStr, setSizeX, setSizeY, setTaggedValueList, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_IMAGE_DISABLED

public static final int FLAG_IMAGE_DISABLED
Flag: Image display disabled

See Also:
Constant Field Values
Constructor Detail

SymbolDescriptor

public SymbolDescriptor()
Default constructor.

Method Detail

addErrorMsg

protected void addErrorMsg(java.util.List errorMsgs,
                           java.lang.String errorMsg)
Adds an error msg, prepending it by the node type name.

Overrides:
addErrorMsg in class XFigureDescriptor
Parameters:
errorMsgs - List of strings that holds error messages
errorMsg - Error msg to add

getSymbolType

public java.lang.String getSymbolType()
Gets the symbol type.


setSymbolType

public void setSymbolType(java.lang.String symbolType)
Sets the symbol type.


isImageDisabled

public boolean isImageDisabled()
Gets the image disabled.


setImageDisabled

public void setImageDisabled(boolean imageDisabled)
Sets the image disabled.


getTextPosition

public java.lang.String getTextPosition()
Gets the text position.


setTextPosition

public void setTextPosition(java.lang.String textPosition)
Sets the text position.


getOverlayPosition

public java.lang.String getOverlayPosition()
Gets the overlay position.


setOverlayPosition

public void setOverlayPosition(java.lang.String overlayPosition)
Sets the overlay position.


getOverlayResourceKey

public java.lang.String getOverlayResourceKey()
Gets the overlay resource key.


setOverlayResourceKey

public void setOverlayResourceKey(java.lang.String overlayResourceKey)
Sets the overlay resource key.


getOverlayIcon

public javax.swing.ImageIcon getOverlayIcon()
Gets the optional image.


setOverlayIcon

public void setOverlayIcon(javax.swing.ImageIcon overlayIcon)
Sets the optional image.



Copyright © 2011. All Rights Reserved.