Class mxCellOverlay

All Implemented Interfaces:
mxICellOverlay, ImageObserver, MenuContainer, Serializable

public class mxCellOverlay extends JComponent implements mxICellOverlay
See Also:
  • Field Details

    • imageIcon

      protected ImageIcon imageIcon
    • align

      protected Object align
      Holds the horizontal alignment for the overlay. Default is ALIGN_RIGHT. For edges, the overlay always appears in the center of the edge.
    • verticalAlign

      protected Object verticalAlign
      Holds the vertical alignment for the overlay. Default is bottom. For edges, the overlay always appears in the center of the edge.
    • defaultOverlap

      protected double defaultOverlap
      Defines the overlapping for the overlay, that is, the proportional distance from the origin to the point defined by the alignment. Default is 0.5.
  • Constructor Details

  • Method Details

    • getAlign

      public Object getAlign()
      Returns:
      the alignment of the overlay, see mxConstants.ALIGN_*****
    • setAlign

      public void setAlign(Object value)
      Parameters:
      value - the alignment to set, see mxConstants.ALIGN_*****
    • getVerticalAlign

      public Object getVerticalAlign()
      Returns:
      the vertical alignment, see mxConstants.ALIGN_*****
    • setVerticalAlign

      public void setVerticalAlign(Object value)
      Parameters:
      value - the vertical alignment to set, see mxConstants.ALIGN_*****
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • getBounds

      public mxRectangle getBounds(mxCellState state)
      Specified by:
      getBounds in interface mxICellOverlay