Class CurveAtt

java.lang.Object
  |
  +--CurveAtt
All Implemented Interfaces:
java.io.Serializable

public class CurveAtt
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.awt.Color color
           
 boolean flip
           
private static long serialVersionUID
           
 Size thickness
           
 LineType type
           
(package private) static boolean warned
           
 
Constructor Summary
CurveAtt(CurveAtt old)
           
CurveAtt(LineType type, java.awt.Color color, boolean flip, Size thickness)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
private  void readObject(java.io.ObjectInputStream stream)
          Older versions did not have thickness separate from type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

color

public java.awt.Color color

type

public LineType type

thickness

public Size thickness

flip

public boolean flip

warned

static boolean warned
Constructor Detail

CurveAtt

public CurveAtt(LineType type,
                java.awt.Color color,
                boolean flip,
                Size thickness)

CurveAtt

public CurveAtt(CurveAtt old)
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Older versions did not have thickness separate from type. When reading one of those, thickness will be null, so we try to guess its thickness from the type name. Old line types of many thicknesses didn't work well anyway.

java.io.IOException
java.lang.ClassNotFoundException