psdi.workflow.diagram

Class DiagramNodeBorder

  • java.lang.Object
    • javax.swing.border.AbstractBorder
      • psdi.workflow.diagram.DiagramNodeBorder
  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border


    public class DiagramNodeBorder
    extends javax.swing.border.AbstractBorder
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.awt.Insets insets 
      protected java.awt.Color lineColor 
    • Constructor Summary

      Constructors 
      Constructor and Description
      DiagramNodeBorder(java.awt.Insets insets)
      Creates a border for a diagram node with no line color
      DiagramNodeBorder(java.awt.Insets insets, java.awt.Color lineColor)
      Creates a border for a diagram node with a line color
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Insets getBorderInsets(java.awt.Component c)
      Returns the insets for the component
      java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insetsIn)
      Updates and returns the insets for the component
      void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
      Draws the border
      • 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

      • lineColor

        protected java.awt.Color lineColor
      • insets

        protected java.awt.Insets insets
    • Constructor Detail

      • DiagramNodeBorder

        public DiagramNodeBorder(java.awt.Insets insets)
        Creates a border for a diagram node with no line color
        Parameters:
        insets - The insets for the border
      • DiagramNodeBorder

        public DiagramNodeBorder(java.awt.Insets insets,
                                 java.awt.Color lineColor)
        Creates a border for a diagram node with a line color
        Parameters:
        insets - The insets for the border
        lineColor - The color of the border line
    • Method Detail

      • paintBorder

        public void paintBorder(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Draws the border
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class javax.swing.border.AbstractBorder
        Parameters:
        c - The components to draw for
        g - The grahics context
        x - The X location
        y - The Y location
        width - The component's width
        height - The component's height
      • getBorderInsets

        public java.awt.Insets getBorderInsets(java.awt.Component c)
        Returns the insets for the component
        Specified by:
        getBorderInsets in interface javax.swing.border.Border
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder
        Parameters:
        c - The component
        Returns:
        the insets
      • getBorderInsets

        public java.awt.Insets getBorderInsets(java.awt.Component c,
                                               java.awt.Insets insetsIn)
        Updates and returns the insets for the component
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder
        Parameters:
        c - The component
        insetsIn - The insets object
        Returns:
        the insets