public final class CornerTriangleBorder extends AbstractBorder
Border
with a triangle in each corner.tempRect
Constructor and Description |
---|
CornerTriangleBorder(boolean isPrimary)
Deprecated.
Creates a new
CornerTriangleBorder . |
Modifier and Type | Method and Description |
---|---|
protected Color |
getBorderColor()
Deprecated.
Returns the outline color based on what is returned by
isPrimary() . |
protected Color |
getFillColor()
Deprecated.
Returns the fill color based on what is returned by
isPrimary() . |
Insets |
getInsets(IFigure figure)
Deprecated.
|
boolean |
isOpaque()
Deprecated.
Returns
true . |
boolean |
isPrimary()
Deprecated.
Returns
true if this border is for the primary object in the
selection. |
void |
paint(IFigure figure,
Graphics graphics,
Insets insets)
Deprecated.
Paints the border.
|
void |
setPrimary(boolean isPrimary)
Deprecated.
Sets this border as primary if
isPrimary is
true . |
getPaintRectangle, getPreferredSize
public CornerTriangleBorder(boolean isPrimary)
CornerTriangleBorder
.isPrimary
- Determines this border's color.public boolean isOpaque()
true
.isOpaque
in interface Border
isOpaque
in class AbstractBorder
Border.isOpaque()
public void paint(IFigure figure, Graphics graphics, Insets insets)
figure
- The IFigure
this border will be painted ongraphics
- The Graphics
.insets
- The Insets
.protected Color getBorderColor()
isPrimary()
.protected Color getFillColor()
isPrimary()
.public boolean isPrimary()
true
if this border is for the primary object in the
selection. Otherwise, returns false
.public void setPrimary(boolean isPrimary)
isPrimary
is
true
.isPrimary
- True if this border is for the primary object in the
selection.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.