be.ac.vub.cocompose.eclipse.figures
Class ConceptBorder

java.lang.Object
  extended byorg.eclipse.draw2d.AbstractBorder
      extended byorg.eclipse.draw2d.AbstractLabeledBorder
          extended bybe.ac.vub.cocompose.eclipse.figures.ConceptBorder
All Implemented Interfaces:
Border, LabeledBorder

public class ConceptBorder
extends AbstractLabeledBorder

A labeled border for CoCompose concepts.

Since:
0.2.0
Version:
0.2.4, 22/01/2004
Author:
Dennis Wagelaar

Field Summary
 
Fields inherited from class org.eclipse.draw2d.AbstractBorder
tempRect
 
Constructor Summary
ConceptBorder()
           
 
Method Summary
protected  Insets calculateInsets(IFigure figure)
           
 Image getIcon()
          Gets the icon image.
 int getLinestyle()
          Gets the line style
 Dimension getPreferredSize(IFigure fig)
           
 boolean getUnderline()
          Gets the underline attribute.
 void invalidate()
           
 boolean isBold()
          Returns true if the border is bold.
 void paint(IFigure figure, Graphics g, Insets insets)
           
 void setBold(boolean bold)
          Returns true if the border is bold.
 void setIcon(Image icon)
          Sets the icon image.
 void setLinestyle(int linestyle)
          Gets the line style
 void setUnderline(boolean underline)
          Sets the underline attribute.
 
Methods inherited from class org.eclipse.draw2d.AbstractLabeledBorder
getFont, getInsets, getLabel, getTextColor, getTextExtents, setFont, setLabel, setTextColor
 
Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, isOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.draw2d.Border
isOpaque
 

Constructor Detail

ConceptBorder

public ConceptBorder()
Method Detail

calculateInsets

protected Insets calculateInsets(IFigure figure)
See Also:
AbstractLabeledBorder.calculateInsets(org.eclipse.draw2d.IFigure)

invalidate

public void invalidate()
See Also:
AbstractLabeledBorder.invalidate()

paint

public void paint(IFigure figure,
                  Graphics g,
                  Insets insets)
See Also:
Border.paint(org.eclipse.draw2d.IFigure, org.eclipse.draw2d.Graphics, org.eclipse.draw2d.geometry.Insets)

getPreferredSize

public Dimension getPreferredSize(IFigure fig)
See Also:
Border.getPreferredSize(IFigure)

getUnderline

public boolean getUnderline()
Gets the underline attribute.

Returns:
the underline attribute.

setUnderline

public void setUnderline(boolean underline)
Sets the underline attribute.

Parameters:
underline - - the underline attribute.

getLinestyle

public int getLinestyle()
Gets the line style

Returns:
the line style
See Also:
Graphics

setLinestyle

public void setLinestyle(int linestyle)
Gets the line style

Parameters:
linestyle - the line style
See Also:
Graphics

setIcon

public void setIcon(Image icon)
Sets the icon image.

Parameters:
icon - the icon.

getIcon

public Image getIcon()
Gets the icon image.

Returns:
the icon.

isBold

public boolean isBold()
Returns true if the border is bold.

Returns:
true if the border is bold.

setBold

public void setBold(boolean bold)
Returns true if the border is bold.

Parameters:
bold - true if the border is bold.