Class Box

java.lang.Object
  |
  +--Symbol
        |
        +--Sub
              |
              +--Box
All Implemented Interfaces:
java.awt.event.ActionListener, Aligner, AlignmentListener, DragableSymbol, Element, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
Offset, Page, Picture

public class Box
extends Sub
implements java.awt.event.ActionListener

A box is a rectangle. They can be used for borders etc.

See Also:
Serialized Form

Field Summary
(package private)  javax.swing.JTextField aspfield
           
(package private)  java.awt.Color bordercolor
          The Color to draw the border.
(package private)  ColorBox bordercolorbox
           
(package private)  Size bordersize
          The thickness to draw the border.
(package private)  javax.swing.JComboBox bordersizefield
           
(package private)  LineType borderstyle
          The Style to draw the border.
(package private)  javax.swing.JComboBox borderstylefield
           
(package private)  java.awt.Color color
          The color to paint the interior.
(package private)  ColorBox colorbox
           
(package private)  Fill fill
          The Fill to paint the interior.
(package private)  javax.swing.JButton fillbutton
           
(package private)  Library filllib
           
static java.lang.String NOFILL
           
private static long serialVersionUID
           
 
Fields inherited from class Sub
anchorpoint, botf, box, brandnew, cornerdrag, corners, dragpos, editaspect, editmodef, editrotation, editscale, handlex, handley, heightf, leftf, located, MINR, origin, pos, relativepos, rightf, showcorners, size, sizefield, sizewidth, subaspect, topf, widthf
 
Fields inherited from class Symbol
makenames, name, namefield
 
Fields inherited from interface Aligner
absolute, datum, floating
 
Constructor Summary
Box()
          This constructer may not be used.
Box(java.awt.geom.Point2D where, View view, java.lang.Object arg)
          Create a new box at a given position.
 
Method Summary
 void abandonPropertyEdit()
           
 void acceptPropertyEdit()
           
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  java.util.Vector getEditModes()
          Get the edit modes that are supported.
 java.awt.geom.Area getIn(View view)
           
 int getLevel()
           
 void getPropertyEdit(java.lang.Object[] edits, int slot, java.util.Set sub, Symbol parent)
           
 void paint(View view)
          Paint the borderary of the box.
 void paintContents(View view)
          Paint the contents of the box.
 
Methods inherited from class Sub
alignmentChanged, checkSize, clear, copy, drag, endDrag, getAlignTransform, getBounds, getPolar, getScale, getShape, init, locate, reshape, selectProbe, showAlignee, showAligner, showSelected, startDrag
 
Methods inherited from class Symbol
checkName, editProperties, getName, getNew, importSym, prepareForSurveyUpdate, recursiveDelete, setName, stripSurveys, toString, useSurveyUpdate, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

bordersize

Size bordersize
The thickness to draw the border.


borderstyle

LineType borderstyle
The Style to draw the border.


bordercolor

java.awt.Color bordercolor
The Color to draw the border.


fill

Fill fill
The Fill to paint the interior.


color

java.awt.Color color
The color to paint the interior.


aspfield

transient javax.swing.JTextField aspfield

bordersizefield

transient javax.swing.JComboBox bordersizefield

borderstylefield

transient javax.swing.JComboBox borderstylefield

bordercolorbox

transient ColorBox bordercolorbox

fillbutton

transient javax.swing.JButton fillbutton

colorbox

transient ColorBox colorbox

filllib

transient Library filllib

NOFILL

public static java.lang.String NOFILL
Constructor Detail

Box

public Box()
This constructer may not be used. I should check and remove if possible. (it's hard to tell because symbols are made different ways).


Box

public Box(java.awt.geom.Point2D where,
           View view,
           java.lang.Object arg)
Create a new box at a given position. If arg is a rectangle, it gives the box's shape.

Method Detail

getLevel

public int getLevel()
Overrides:
getLevel in class Sub

getPropertyEdit

public void getPropertyEdit(java.lang.Object[] edits,
                            int slot,
                            java.util.Set sub,
                            Symbol parent)
Overrides:
getPropertyEdit in class Sub

acceptPropertyEdit

public void acceptPropertyEdit()
Overrides:
acceptPropertyEdit in class Sub

abandonPropertyEdit

public void abandonPropertyEdit()
Overrides:
abandonPropertyEdit in class Sub

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getEditModes

protected java.util.Vector getEditModes()
Get the edit modes that are supported.

Overrides:
getEditModes in class Sub

getIn

public java.awt.geom.Area getIn(View view)

paint

public void paint(View view)
Paint the borderary of the box. Unless overriden, that is all there is to see.

Overrides:
paint in class Sub

paintContents

public void paintContents(View view)
Paint the contents of the box. A box has no contents, but we must define this to avoid making box abstract.

Specified by:
paintContents in class Sub