Documentation of 'org.jhotdraw.samples.svg.gui.SelectionOpacityIcon' Java class
SelectionOpacityIcon
org.jhotdraw.samples.svg.gui

Class SelectionOpacityIcon

  • All Implemented Interfaces:
    java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon


    public class SelectionOpacityIcon
    extends javax.swing.ImageIcon
    SelectionOpacityIcon visualizes an opacity attribute of the selected Figure(s) in the active DrawingView of a DrawingEditor.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void paintIcon(java.awt.Component c, java.awt.Graphics gr, int x, int y) 
      • Methods inherited from class javax.swing.ImageIcon

        getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, setDescription, setImage, setImageObserver, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SelectionOpacityIcon

        public SelectionOpacityIcon(DrawingEditor editor,
                                    AttributeKey<java.lang.Double> opacityKey,
                                    AttributeKey<java.awt.Color> fillColorKey,
                                    @Nullable
                                    AttributeKey<java.awt.Color> strokeColorKey,
                                    java.net.URL imageLocation,
                                    java.awt.Shape fillShape,
                                    java.awt.Shape strokeShape)
        Creates a new instance.
        Parameters:
        editor - The drawing editor.
        opacityKey - The opacityKey of the default attribute
        imageLocation - the icon image
        fillShape - The shape to be drawn with the fillColor of the default attribute.
      • SelectionOpacityIcon

        public SelectionOpacityIcon(DrawingEditor editor,
                                    AttributeKey<java.lang.Double> opacityKey,
                                    AttributeKey<java.awt.Color> fillColorKey,
                                    @Nullable
                                    AttributeKey<java.awt.Color> strokeColorKey,
                                    java.awt.Image image,
                                    java.awt.Shape fillShape,
                                    java.awt.Shape strokeShape)
    • Method Detail

      • paintIcon

        public void paintIcon(java.awt.Component c,
                              java.awt.Graphics gr,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
        Overrides:
        paintIcon in class javax.swing.ImageIcon

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.