Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdevimpl.bookmarks
Class PointingBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by 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
 

Field Detail

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

Constructor Detail

PointingBorder

public PointingBorder(java.awt.Color lineColor,
                      java.awt.Color interiorColor)
Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.