opale.m2d
Class MarkType

java.lang.Object
  |
  +--opale.tools.OpaleObject
        |
        +--opale.m2d.MarkType
All Implemented Interfaces:
java.lang.Cloneable

public abstract class MarkType
extends OpaleObject
implements java.lang.Cloneable

Since:
Opale-2d 0.15

Field Summary
protected  int marksize
           
 
Constructor Summary
MarkType()
           
 
Method Summary
 java.lang.Object clone()
          Crée un nouvel objet de même classe et de même contenu.
abstract  void draw(Pen2D c, double x, double y)
           
 int getMarksize()
           
static void main(java.lang.String[] arg)
           
 int readKeyWord(java.lang.String word, java.io.StreamTokenizer f, OpaleSet p)
          Abstract method to read a key word in a file '*.ode'.
 void setMarksize(int size)
           
 java.lang.String toString()
           
 void write(java.io.PrintWriter f, OpaleSet pack)
          Write size of this MarkType in a stream.
 
Methods inherited from class opale.tools.OpaleObject
getId, read, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

marksize

protected int marksize
Constructor Detail

MarkType

public MarkType()
Method Detail

draw

public abstract void draw(Pen2D c,
                          double x,
                          double y)

setMarksize

public void setMarksize(int size)

getMarksize

public int getMarksize()

write

public void write(java.io.PrintWriter f,
                  OpaleSet pack)
           throws InvalidFormatException
Write size of this MarkType in a stream. This method is inherited from OpaleObject
Overrides:
write in class OpaleObject
Following copied from class: opale.tools.OpaleObject
Parameters:
printWriter - f, a stream.
OpaleSet - session, the set of 'Opale' object.

readKeyWord

public int readKeyWord(java.lang.String word,
                       java.io.StreamTokenizer f,
                       OpaleSet p)
                throws java.io.IOException,
                       InvalidFormatException
Description copied from class: OpaleObject
Abstract method to read a key word in a file '*.ode'.
Overrides:
readKeyWord in class OpaleObject
Following copied from class: opale.tools.OpaleObject
Parameters:
String - s, key word to read.
StreamTokenizer - f, stream to read.
OpaleSet - session, the group of 'Opale' object
Returns:
int, 0 if the key word is correct, -1 otherwise.

clone

public java.lang.Object clone()
Crée un nouvel objet de même classe et de même contenu.
Overrides:
clone in class OpaleObject
Returns:
Object un clone de l'objet.
Throws:
OutOfMemoryError - s'il n'y a pas assez de mémoire.
See Also:
Cloneable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] arg)