org.openbp.cockpit.modeler.figures.tag
Class AbstractTagFigure.TagContent

java.lang.Object
  extended by org.openbp.cockpit.modeler.figures.tag.AbstractTagFigure.TagContent
Enclosing class:
AbstractTagFigure

public class AbstractTagFigure.TagContent
extends java.lang.Object

Simple class that combines a figure object with additional information, i\.e\. about the type of the figure. Used to integrate a figure into a tag.


Field Summary
protected  CH.ifa.draw.framework.Figure figure
          Content figure
protected  int type
          Type of the content
 
Constructor Summary
AbstractTagFigure.TagContent(CH.ifa.draw.framework.Figure figure, int type)
          Constructor.
 
Method Summary
 int getContentType()
          Gets the type of the content.
 CH.ifa.draw.framework.Figure getFigure()
          Gets the content figure.
 void setContentType(int type)
          Sets the type of the content.
 void setFigure(CH.ifa.draw.framework.Figure figure)
          Sets the content figure.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

figure

protected CH.ifa.draw.framework.Figure figure
Content figure


type

protected int type
Type of the content

Constructor Detail

AbstractTagFigure.TagContent

public AbstractTagFigure.TagContent(CH.ifa.draw.framework.Figure figure,
                                    int type)
Constructor.

Parameters:
figure - Content figure
type - One of the CONTENT_* constants of this class
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object

getFigure

public CH.ifa.draw.framework.Figure getFigure()
Gets the content figure.


setFigure

public void setFigure(CH.ifa.draw.framework.Figure figure)
Sets the content figure.


getContentType

public int getContentType()
Gets the type of the content.

Returns:
One of the CONTENT_* constants of this class

setContentType

public void setContentType(int type)
Sets the type of the content.

Parameters:
type - One of the CONTENT_* constants of this class


Copyright © 2011. All Rights Reserved.