oracle.jdevimpl.bookmarks
Class PointingBorder
java.lang.Object
  
javax.swing.border.AbstractBorder
      
oracle.jdevimpl.bookmarks.PointingBorder
- All Implemented Interfaces: 
 - java.io.Serializable, javax.swing.border.Border
 
public class PointingBorder
- extends javax.swing.border.AbstractBorder
 
A Border that draws an arrow towards a given point.
- See Also:
 - Serialized Form
 
| 
Field Summary | 
static int | 
PAD
 
          The pointing border will point as long as the point in within PAD pixels
 of the edges of the border. | 
 
| 
Constructor Summary | 
PointingBorder(java.awt.Color lineColor,
               java.awt.Color interiorColor)
 
            | 
 
| 
Method Summary | 
 java.awt.Insets | 
getBorderInsets(java.awt.Component c)
 
            | 
 java.awt.Insets | 
getBorderInsets(java.awt.Component c,
                java.awt.Insets insets)
 
            | 
 java.awt.Point | 
getPoint()
 
            | 
 void | 
paintBorder(java.awt.Component c,
            java.awt.Graphics g,
            int x,
            int y,
            int width,
            int height)
 
            | 
 void | 
setPoint(java.awt.Point point)
 
          set the point (in screen coordinates) to which this border will point | 
 
| Methods inherited from class javax.swing.border.AbstractBorder | 
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PAD
public static int PAD
- The pointing border will point as long as the point in within PAD pixels
 of the edges of the border. i.e. too near the edge or outside of the
 border edges and the pointing will not happen
 
PointingBorder
public PointingBorder(java.awt.Color lineColor,
                      java.awt.Color interiorColor)
paintBorder
public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
- Specified by:
 paintBorder in interface javax.swing.border.Border- Overrides:
 paintBorder in class javax.swing.border.AbstractBorder
 
 
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
 getBorderInsets in interface javax.swing.border.Border- Overrides:
 getBorderInsets in class javax.swing.border.AbstractBorder
 
 
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
- Overrides:
 getBorderInsets in class javax.swing.border.AbstractBorder
 
 
setPoint
public void setPoint(java.awt.Point point)
- set the point (in screen coordinates) to which this border will point
- Parameters:
 point - 
 
 
getPoint
public java.awt.Point getPoint()
- Returns:
 - the point (in screen coordinates) to which this border points
 
 
Copyright © 1997, 2011, Oracle. All rights reserved.