Package org.eclipse.gef.handles
Class CornerTriangleBorder
- java.lang.Object
-
- org.eclipse.draw2d.AbstractBorder
-
- org.eclipse.gef.handles.CornerTriangleBorder
-
- All Implemented Interfaces:
org.eclipse.draw2d.Border
public final class CornerTriangleBorder extends org.eclipse.draw2d.AbstractBorder
Deprecated.this class is no longer usedABorder
with a triangle in each corner.
-
-
Constructor Summary
Constructors Constructor Description CornerTriangleBorder(boolean isPrimary)
Deprecated.Creates a newCornerTriangleBorder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Color
getBorderColor()
Deprecated.Returns the outline color based on what is returned byisPrimary()
.protected Color
getFillColor()
Deprecated.Returns the fill color based on what is returned byisPrimary()
.org.eclipse.draw2d.geometry.Insets
getInsets(org.eclipse.draw2d.IFigure figure)
Deprecated.boolean
isOpaque()
Deprecated.Returnstrue
.boolean
isPrimary()
Deprecated.Returnstrue
if this border is for the primary object in the selection.void
paint(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
Deprecated.Paints the border.void
setPrimary(boolean isPrimary)
Deprecated.Sets this border as primary ifisPrimary
istrue
.
-
-
-
Method Detail
-
isOpaque
public boolean isOpaque()
Deprecated.Returnstrue
.- Specified by:
isOpaque
in interfaceorg.eclipse.draw2d.Border
- Overrides:
isOpaque
in classorg.eclipse.draw2d.AbstractBorder
- See Also:
Border.isOpaque()
-
getInsets
public org.eclipse.draw2d.geometry.Insets getInsets(org.eclipse.draw2d.IFigure figure)
Deprecated.- 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)
Deprecated.Paints the border. If this is a border for the primary selection, it's painted black. Otherwise, it's painted white.- Parameters:
figure
- TheIFigure
this border will be painted ongraphics
- TheGraphics
.insets
- TheInsets
.
-
getBorderColor
protected Color getBorderColor()
Deprecated.Returns the outline color based on what is returned byisPrimary()
.- Returns:
- The outline color.
-
getFillColor
protected Color getFillColor()
Deprecated.Returns the fill color based on what is returned byisPrimary()
.- Returns:
- The fill color.
-
isPrimary
public boolean isPrimary()
Deprecated.Returnstrue
if this border is for the primary object in the selection. Otherwise, returnsfalse
.- Returns:
- Whether or not this is a primary border.
-
setPrimary
public void setPrimary(boolean isPrimary)
Deprecated.Sets this border as primary ifisPrimary
istrue
.- Parameters:
isPrimary
- True if this border is for the primary object in the selection.
-
-