org.vectomatic.common.model
Class Attribute

java.lang.Object
  extended by org.vectomatic.common.model.Attribute
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class Attribute
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable

Class to represent a graphical attribute such as line width or line color


Field Summary
static Attribute FILL_OPACITY
           
static Attribute FILL_STYLE
           
static Attribute LINE_CAP
           
static Attribute LINE_OPACITY
           
static Attribute LINE_PATTERN
           
static Attribute LINE_STYLE
           
static Attribute LINE_WIDTH
           
 
Constructor Summary
Attribute()
           
 
Method Summary
 boolean equals(Object obj)
           
 IAttributeValue getDefaultValue()
           
 String getId()
          Returns the attribute immutable identifier
 String getName()
          Returns the attribute display name
 int hashCode()
           
 void setName(String name)
          Sets the attribute display name
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LINE_STYLE

public static final Attribute LINE_STYLE

LINE_OPACITY

public static final Attribute LINE_OPACITY

LINE_PATTERN

public static final Attribute LINE_PATTERN

LINE_CAP

public static final Attribute LINE_CAP

LINE_WIDTH

public static final Attribute LINE_WIDTH

FILL_STYLE

public static final Attribute FILL_STYLE

FILL_OPACITY

public static final Attribute FILL_OPACITY
Constructor Detail

Attribute

public Attribute()
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getId

public String getId()
Returns the attribute immutable identifier

Returns:
the attribute immutable identifier

getName

public String getName()
Returns the attribute display name

Returns:
the attribute display name

setName

public void setName(String name)
Sets the attribute display name

Parameters:
name - the attribute display name

getDefaultValue

public IAttributeValue getDefaultValue()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.