GraphLab Project

graphlab.graph.old
Class GShape

java.lang.Object
  extended by graphlab.graph.old.GShape
All Implemented Interfaces:
FromStringProvider<GShape>, java.io.Serializable

public class GShape
extends java.lang.Object
implements java.io.Serializable, FromStringProvider<GShape>

User: Azin Azadi,Rouzbeh Ebrahimi

See Also:
Serialized Form

Field Summary
static GShape DOWNWARDPARALLELOGRAM
           
static GShape DOWNWARDTRAPEZOID
           
static GShape DOWNWARDTRIANGLE
           
static GShape editor
           
static GShape EIGHTPOINTSTAR
           
static GShape LEFTWARDTRAPEZOID
           
static GShape LEFTWARDTTRIANGLE
           
 java.lang.String name
           
static GShape NICEEIGHTPOINTSTAR
           
static GShape NICENINEPOINTSTAR
           
static GShape NICESEVENPOINTSTAR
           
static GShape NICESIXPOINTSTAR
           
static GShape NICESTAR
           
static GShape NICETENPOINTSTAR
           
static GShape NINEPOINTSTAR
           
static GShape OVAL
           
static GShape RECTANGLE
           
static GShape REGULARHEXAGON
           
static GShape REGULARPENTAGON
           
static GShape renderer
           
static GShape RIGHTWARDTRAPEZOID
           
static GShape RIGHTWARDTRIANGLE
           
static GShape ROUNDRECT
           
static GShape SEVENPOINTSTAR
           
static GShape SIXPOINTSTAR
           
static GShape STAR
           
static GShape TENPOINTSTAR
           
static GShape UPWARDPARALLELOGRAM
           
static GShape UPWARDTRAPEZOID
           
static GShape UPWARDTRIANGLE
           
 
Constructor Summary
GShape(java.lang.String name)
           
 
Method Summary
 void draw(java.awt.Graphics g, int x, int y, int shapeWidth, int shapeHeight)
           
static void drawShape(GShape shape, java.awt.Graphics g, int w, int h)
           
 void fill(java.awt.Graphics g, int x, int y, int shapeWidth, int shapeHeight)
           
static void fillShape(GShape shape, java.awt.Graphics g, int w, int h)
           
 GShape fromString(java.lang.String data)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name

editor

public static GShape editor

renderer

public static GShape renderer

RECTANGLE

public static final GShape RECTANGLE

OVAL

public static final GShape OVAL

ROUNDRECT

public static final GShape ROUNDRECT

STAR

public static final GShape STAR

SIXPOINTSTAR

public static final GShape SIXPOINTSTAR

SEVENPOINTSTAR

public static final GShape SEVENPOINTSTAR

EIGHTPOINTSTAR

public static final GShape EIGHTPOINTSTAR

NINEPOINTSTAR

public static final GShape NINEPOINTSTAR

TENPOINTSTAR

public static final GShape TENPOINTSTAR

LEFTWARDTTRIANGLE

public static final GShape LEFTWARDTTRIANGLE

RIGHTWARDTRIANGLE

public static final GShape RIGHTWARDTRIANGLE

UPWARDTRIANGLE

public static final GShape UPWARDTRIANGLE

DOWNWARDTRIANGLE

public static final GShape DOWNWARDTRIANGLE

REGULARHEXAGON

public static final GShape REGULARHEXAGON

REGULARPENTAGON

public static final GShape REGULARPENTAGON

DOWNWARDTRAPEZOID

public static final GShape DOWNWARDTRAPEZOID

RIGHTWARDTRAPEZOID

public static final GShape RIGHTWARDTRAPEZOID

UPWARDTRAPEZOID

public static final GShape UPWARDTRAPEZOID

LEFTWARDTRAPEZOID

public static final GShape LEFTWARDTRAPEZOID

DOWNWARDPARALLELOGRAM

public static final GShape DOWNWARDPARALLELOGRAM

UPWARDPARALLELOGRAM

public static final GShape UPWARDPARALLELOGRAM

NICESTAR

public static final GShape NICESTAR

NICESIXPOINTSTAR

public static final GShape NICESIXPOINTSTAR

NICESEVENPOINTSTAR

public static final GShape NICESEVENPOINTSTAR

NICEEIGHTPOINTSTAR

public static final GShape NICEEIGHTPOINTSTAR

NICENINEPOINTSTAR

public static final GShape NICENINEPOINTSTAR

NICETENPOINTSTAR

public static final GShape NICETENPOINTSTAR
Constructor Detail

GShape

public GShape(java.lang.String name)
Method Detail

toString

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

draw

public void draw(java.awt.Graphics g,
                 int x,
                 int y,
                 int shapeWidth,
                 int shapeHeight)

fill

public void fill(java.awt.Graphics g,
                 int x,
                 int y,
                 int shapeWidth,
                 int shapeHeight)

drawShape

public static void drawShape(GShape shape,
                             java.awt.Graphics g,
                             int w,
                             int h)

fillShape

public static void fillShape(GShape shape,
                             java.awt.Graphics g,
                             int w,
                             int h)

fromString

public GShape fromString(java.lang.String data)
Specified by:
fromString in interface FromStringProvider<GShape>

GraphLab Project