org.tigris.gef.presentation
Class FigDiamond

java.lang.Object
  extended by org.tigris.gef.presentation.Fig
      extended by org.tigris.gef.presentation.FigDiamond
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, PopupGenerator

public class FigDiamond
extends Fig

Primitive Fig to paint rectangles on a LayerDiagram.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _filled, _h, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, MIN_SIZE
 
Constructor Summary
FigDiamond(int x, int y, int w, int h)
          Construct a new resizable FigRect with the given position and size.
FigDiamond(int x, int y, int w, int h, boolean resizable)
          Construct a new FigRect w/ the given position and size.
FigDiamond(int x, int y, int w, int h, boolean resizable, java.awt.Color lColor, java.awt.Color fColor)
          Construct a new FigRect w/ the given position, size, line color, and fill color.
FigDiamond(int x, int y, int w, int h, java.awt.Color lColor, java.awt.Color fColor)
          Construct a new resizable FigRect with the given position, size, line color, and fill color.
 
Method Summary
 java.util.List getGravityPoints()
          Makes sure that the edges stick to the outline of the fig.
 void paint(java.awt.Graphics g)
          Paint this FigRect
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, calcBounds, center, classNameAndBounds, cleanUp, clone, connectionPoint, contains, contains, contains, countCornersContained, createDrag, damage, deleteFromModel, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getFirstPoint, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoint, getPoints, getPopUpActions, getPreferredSize, getPrivateData, getResource, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, hit, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isReshapable, isResizable, isRotatable, isSelected, isVisible, makeSelection, OK, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, redraw, removeAnnotation, removeAnnotation, removeFromDiagram, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashed, setDashedString, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLineWidth, setLocation, setLocation, setLocked, setMovable, setNumPoints, setOwner, setPoint, setPoint, setPoint, setPoint, setPoints, setPrivateData, setResizable, setResource, setSavingAllowed, setSingle, setSize, setSize, setVisible, setVisState, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, translate, translateAnnotations, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigDiamond

public FigDiamond(int x,
                  int y,
                  int w,
                  int h)
Construct a new resizable FigRect with the given position and size.


FigDiamond

public FigDiamond(int x,
                  int y,
                  int w,
                  int h,
                  java.awt.Color lColor,
                  java.awt.Color fColor)
Construct a new resizable FigRect with the given position, size, line color, and fill color.


FigDiamond

public FigDiamond(int x,
                  int y,
                  int w,
                  int h,
                  boolean resizable)
Construct a new FigRect w/ the given position and size.


FigDiamond

public FigDiamond(int x,
                  int y,
                  int w,
                  int h,
                  boolean resizable,
                  java.awt.Color lColor,
                  java.awt.Color fColor)
Construct a new FigRect w/ the given position, size, line color, and fill color.

Method Detail

getGravityPoints

public java.util.List getGravityPoints()
Makes sure that the edges stick to the outline of the fig.

Overrides:
getGravityPoints in class Fig
See Also:
Fig.getGravityPoints()

paint

public void paint(java.awt.Graphics g)
Paint this FigRect

Overrides:
paint in class Fig