org.apache.batik.bridge
Class BridgeMutationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.apache.batik.bridge.BridgeMutationEvent
All Implemented Interfaces:
java.io.Serializable

public class BridgeMutationEvent
extends java.util.EventObject

An event object that describes the modification to apply to an Element.

See Also:
Serialized Form

Field Summary
static int PROPERTY_MUTATION_TYPE
          The mutation is a simple mutation on an attribute.
static int STYLE_MUTATION_TYPE
          The mutation is a mutation on a referenced style.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BridgeMutationEvent(java.lang.Object source, BridgeContext context, int type)
           
 
Method Summary
 java.lang.String getAttrName()
          Returns the name of the attribute that was modified.
 java.lang.String getAttrNewValue()
          Returns the new value of the attribute that was modified.
 BridgeContext getBridgeContext()
          Returns the bridge context of this event.
 Element getElement()
          Returns the element that was modified.
 GraphicsNode getGraphicsNode()
          Returns the new value of the attribute that was modified.
 BridgeMutationEvent getStyleMutationEvent()
          Returns the style mutation event.
 int getType()
          Returns the type of the mutation.
 void setAttrName(java.lang.String attrName)
          Sets the name of the attribute that was modified.
 void setAttrNewValue(java.lang.String value)
          Sets the new value of the attribute that was modified.
 void setGraphicsNode(GraphicsNode node)
          Sets the new value of the attribute that was modified.
 void setStyleMutationEvent(BridgeMutationEvent event)
          Sets a style mutation event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_MUTATION_TYPE

public static final int PROPERTY_MUTATION_TYPE
The mutation is a simple mutation on an attribute.

STYLE_MUTATION_TYPE

public static final int STYLE_MUTATION_TYPE
The mutation is a mutation on a referenced style.
Constructor Detail

BridgeMutationEvent

public BridgeMutationEvent(java.lang.Object source,
                           BridgeContext context,
                           int type)
Method Detail

getBridgeContext

public BridgeContext getBridgeContext()
Returns the bridge context of this event.

getType

public int getType()
Returns the type of the mutation. The value is one of PROPERTY_MUTATION_TYPE and STYLE_MUTATION_TYPE.

getElement

public Element getElement()
Returns the element that was modified.

getAttrName

public java.lang.String getAttrName()
Returns the name of the attribute that was modified.

setAttrName

public void setAttrName(java.lang.String attrName)
Sets the name of the attribute that was modified.

getAttrNewValue

public java.lang.String getAttrNewValue()
Returns the new value of the attribute that was modified.

setAttrNewValue

public void setAttrNewValue(java.lang.String value)
Sets the new value of the attribute that was modified.

getGraphicsNode

public GraphicsNode getGraphicsNode()
Returns the new value of the attribute that was modified.

setGraphicsNode

public void setGraphicsNode(GraphicsNode node)
Sets the new value of the attribute that was modified.

getStyleMutationEvent

public BridgeMutationEvent getStyleMutationEvent()
Returns the style mutation event. This value is valid only when the type is STYLE_MUTATION_TYPE. It contains an event describing the mutation of the style.

setStyleMutationEvent

public void setStyleMutationEvent(BridgeMutationEvent event)
Sets a style mutation event. This value is valid only when the type is STYLE_MUTATION_TYPE. It contains an event describing the mutation of the style.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.