public LightBulb() { super(); propertySupport = new PropertyChangeSupport(this); CENTER = new Point2D.Double(); offImage = createImage(INNER_BOUNDS.width, INNER_BOUNDS.height, Transparency.TRANSLUCENT); onImage = createImage(INNER_BOUNDS.width, INNER_BOUNDS.height, Transparency.TRANSLUCENT); bulbImage = createImage(INNER_BOUNDS.width, INNER_BOUNDS.height, Transparency.TRANSLUCENT); alpha = 1.0f; direction = SwingUtilities.NORTH; glowColor = new Color(1.0f, 1.0f, 0.0f); horizontalAlignment = SwingConstants.CENTER; verticalAlignment = SwingConstants.CENTER; addComponentListener(COMPONENT_LISTENER); }
public LightBulb() { super(); propertySupport = new PropertyChangeSupport(this); CENTER = new Point2D.Double(); offImage = createImage(INNER_BOUNDS.width, INNER_BOUNDS.height, Transparency.TRANSLUCENT); onImage = createImage(INNER_BOUNDS.width, INNER_BOUNDS.height, Transparency.TRANSLUCENT); bulbImage = createImage(INNER_BOUNDS.width, INNER_BOUNDS.height, Transparency.TRANSLUCENT); alpha = 1.0f; direction = SwingUtilities.NORTH; glowColor = new Color(1.0f, 1.0f, 0.0f); horizontalAlignment = SwingConstants.CENTER; verticalAlignment = SwingConstants.CENTER; addComponentListener(COMPONENT_LISTENER); }