Package org.eclipse.gef.handles
Class CornerTriangleBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.gef.handles.CornerTriangleBorder
- All Implemented Interfaces:
Border
Deprecated.
this class is no longer used
A
Border
with a triangle in each corner.-
Field Summary
Fields inherited from class org.eclipse.draw2d.AbstractBorder
tempRect
-
Constructor Summary
ConstructorsConstructorDescriptionCornerTriangleBorder
(boolean isPrimary) Deprecated.Creates a newCornerTriangleBorder
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Color
Deprecated.Returns the outline color based on what is returned byisPrimary()
.protected Color
Deprecated.Returns the fill color based on what is returned byisPrimary()
.Deprecated.boolean
isOpaque()
Deprecated.Returnstrue
.boolean
Deprecated.Returnstrue
if this border is for the primary object in the selection.void
Deprecated.Paints the border.void
setPrimary
(boolean isPrimary) Deprecated.Sets this border as primary ifisPrimary
istrue
.Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, getPreferredSize
-
Constructor Details
-
CornerTriangleBorder
public CornerTriangleBorder(boolean isPrimary) Deprecated.Creates a newCornerTriangleBorder
.- Parameters:
isPrimary
- Determines this border's color.
-
-
Method Details
-
isOpaque
public boolean isOpaque()Deprecated.Returnstrue
.- Specified by:
isOpaque
in interfaceBorder
- Overrides:
isOpaque
in classAbstractBorder
- See Also:
-
getInsets
Deprecated. -
paint
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
Deprecated.Returns the outline color based on what is returned byisPrimary()
.- Returns:
- The outline 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.
-