Methods Summary |
---|
public org.eclipse.draw2d.geometry.Rectangle | getInnerBounds()
return mInnerBounds;
|
protected void | paintBorder(org.eclipse.draw2d.Graphics graphics)
super.paintBorder(graphics);
if (mIsSelected) {
graphics.setLineWidth(1);
graphics.setLineStyle(SWT.LINE_SOLID);
graphics.setForegroundColor(ColorConstants.red);
graphics.drawRectangle(getInnerBounds());
}
|
public void | setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
super.setBounds(rect);
mInnerBounds = getBounds().getCopy();
if (mInnerBounds.width > 0) {
mInnerBounds.width--;
}
if (mInnerBounds.height > 0) {
mInnerBounds.height--;
}
|
public void | setSelected(boolean isSelected)
if (isSelected != mIsSelected) {
mIsSelected = isSelected;
repaint();
}
|