vocleditor.figures
Class NegatableBorder

java.lang.Object
  extended by org.eclipse.draw2d.AbstractBorder
      extended by vocleditor.figures.NegatableBorder
All Implemented Interfaces:
org.eclipse.draw2d.Border

public class NegatableBorder
extends org.eclipse.draw2d.AbstractBorder

Author:
bjoern Represents the negatable border.

Constructor Summary
NegatableBorder()
           
 
Method Summary
 org.eclipse.draw2d.geometry.Insets getInsets(org.eclipse.draw2d.IFigure figure)
          Returns the insets of the figute.
 void paint(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
          Paints the border.
 void setBackground(org.eclipse.swt.graphics.Color color)
          Sets the background color.
 void setNegated(boolean negated)
          Sets true if the border negated.
 
Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPreferredSize, isOpaque
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegatableBorder

public NegatableBorder()
Method Detail

setNegated

public void setNegated(boolean negated)
Sets true if the border negated.

Parameters:
negated - the negation flag

setBackground

public void setBackground(org.eclipse.swt.graphics.Color color)
Sets the background color.

Parameters:
color - the background color to set

getInsets

public org.eclipse.draw2d.geometry.Insets getInsets(org.eclipse.draw2d.IFigure figure)
Returns the insets of the figute.

See Also:
Border.getInsets(org.eclipse.draw2d.IFigure)

paint

public void paint(org.eclipse.draw2d.IFigure figure,
                  org.eclipse.draw2d.Graphics graphics,
                  org.eclipse.draw2d.geometry.Insets insets)
Paints the border.

See Also:
Border.paint(org.eclipse.draw2d.IFigure, org.eclipse.draw2d.Graphics, org.eclipse.draw2d.geometry.Insets)