Class RJButtonOrLabelShape

  • All Implemented Interfaces:
    RMArchiver.Archiving, RMShapePainter.Paint, RJMinMaxSizeSettable, java.lang.Cloneable
    Direct Known Subclasses:
    JButtonShape, JLabelShape

    public class RJButtonOrLabelShape
    extends RJTextShape
    This class is never instantiated directly - it is the superclass for JButtonShapes & JLabelShapes. Since buttons & labels share so many attributes, this class is used to handle those things common to both.

    Copyright (c) 2005 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill .

    • Constructor Detail

      • RJButtonOrLabelShape

        public RJButtonOrLabelShape​(javax.swing.JComponent c)
        Creates a new button or label shape.
    • Method Detail

      • getCurrentIcon

        public javax.swing.Icon getCurrentIcon()
        Returns the button or label's current icon.
      • setCurrentIcon

        public void setCurrentIcon​(javax.swing.Icon ic)
        Sets the button or labels current icon.
      • acceptsDrag

        public boolean acceptsDrag​(java.awt.dnd.DropTargetDragEvent dragEvent)
        Editor method.
        Overrides:
        acceptsDrag in class RJShape
      • dragAtPoint

        public void dragAtPoint​(java.awt.dnd.DropTargetDragEvent dropEvent,
                                RMPoint aPoint)
        Editor method.
        Overrides:
        dragAtPoint in class RJShape
      • dragExit

        public void dragExit()
        Description copied from class: RJShape
        Editor method.
        Overrides:
        dragExit in class RJShape
      • dropAtPoint

        public void dropAtPoint​(java.awt.dnd.DropTargetDropEvent dropEvent,
                                RMPoint aPoint)
        Description copied from class: RJShape
        Editor method.
        Overrides:
        dropAtPoint in class RJShape