Class Comp
java.lang.Object
|
+--Symbol
|
+--Comp
- All Implemented Interfaces:
- Editable, Element, Modable, Region, java.io.Serializable
- Direct Known Subclasses:
- Passage, SectionComp
- public class Comp
- extends Symbol
- implements Editable, Region, Modable
- See Also:
- Serialized Form
|
Constructor Summary |
Comp()
|
Comp(java.awt.geom.Point2D pos,
View view,
java.lang.Object arg)
|
Comp(java.lang.String name,
Survey survey,
boolean isVertical)
|
|
Method Summary |
void |
abandonPropertyEdit()
|
void |
acceptPropertyEdit()
|
void |
add(Symbol newmember)
|
void |
add(Symbol newmember,
int level)
|
void |
add(Symbol newmember,
int level,
java.util.Set relativeset)
|
void |
add(Symbol newmember,
View v)
|
java.lang.Class |
addType()
|
void |
change_level(java.util.Set targets,
int level)
|
void |
clean(java.util.Vector segments)
|
void |
delete(Symbol oldmember)
|
java.awt.geom.Rectangle2D |
getBounds(java.awt.geom.AffineTransform trans)
|
Editor |
getEditor(CartoFrame frame)
|
java.awt.geom.Area |
getIn(View view)
|
int |
getLevel()
|
java.util.Set |
getPages()
|
void |
getPropertyEdit(java.lang.Object[] edits,
int slot,
java.util.Set sub,
Symbol parent)
|
java.util.Collection |
getSelectable()
|
Glyph |
group(java.util.Set parts)
|
Symbol |
importSym(Carto dest,
Carto source)
Called when this Symbol is moved to a new Carto file.
Some Symbols hold references to parts of the old file. |
void |
paint(View view)
|
void |
prepareForSurveyUpdate()
Prepare all members for survey update. |
private void |
readObject(java.io.ObjectInputStream stream)
Reads Symbol from a stream. |
boolean |
recursiveDelete(Symbol old)
Delete all references to the given Symbol held by this one. |
boolean |
selectProbe(java.awt.geom.Point2D pos,
View view)
|
void |
showSelected(View view)
|
java.util.Vector |
sortSet(java.util.Set s)
|
boolean |
stripSurveys()
|
java.util.Set |
unGroup(Glyph whole)
|
void |
useSurveyUpdate()
Tell all members to use a survey update that just happened. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
TOP
public static int TOP
BOTTOM
public static int BOTTOM
ABOVE
public static int ABOVE
BELOW
public static int BELOW
members
java.util.Vector members
survey
boolean survey
isVertical
boolean isVertical
showall
boolean showall
visible
Layer visible
showin
Layer showin
showout
Layer showout
regions
public java.util.Map regions
stack
public Stacking stack
defbackground
public static java.awt.Color defbackground
passagecolor
public static java.awt.Color passagecolor
passagelinkcolor
public static java.awt.Color passagelinkcolor
alignercolor
public static java.awt.Color alignercolor
alignlinkcolor
public static java.awt.Color alignlinkcolor
background
java.awt.Color background
fill
Fill fill
colorbox
transient ColorBox colorbox
viewall
transient javax.swing.JCheckBox viewall
showbox
transient javax.swing.JComboBox showbox
showinbox
transient javax.swing.JComboBox showinbox
showoutbox
transient javax.swing.JComboBox showoutbox
Comp
public Comp(java.awt.geom.Point2D pos,
View view,
java.lang.Object arg)
Comp
public Comp()
Comp
public Comp(java.lang.String name,
Survey survey,
boolean isVertical)
importSym
public Symbol importSym(Carto dest,
Carto source)
- Description copied from class:
Symbol
- Called when this Symbol is moved to a new Carto file.
Some Symbols hold references to parts of the old file. Get
rid of them, and replace them with what they should be int
the new context.
- Overrides:
importSym in class Symbol
clean
public void clean(java.util.Vector segments)
prepareForSurveyUpdate
public void prepareForSurveyUpdate()
- Prepare all members for survey update.
- Overrides:
prepareForSurveyUpdate in class Symbol
useSurveyUpdate
public void useSurveyUpdate()
- Tell all members to use a survey update that just happened.
- Overrides:
useSurveyUpdate in class Symbol
getPages
public java.util.Set getPages()
getLevel
public int getLevel()
- Overrides:
getLevel in class Symbol
getPropertyEdit
public void getPropertyEdit(java.lang.Object[] edits,
int slot,
java.util.Set sub,
Symbol parent)
- Overrides:
getPropertyEdit in class Symbol
acceptPropertyEdit
public void acceptPropertyEdit()
- Overrides:
acceptPropertyEdit in class Symbol
abandonPropertyEdit
public void abandonPropertyEdit()
- Overrides:
abandonPropertyEdit in class Symbol
sortSet
public java.util.Vector sortSet(java.util.Set s)
getEditor
public Editor getEditor(CartoFrame frame)
- Specified by:
getEditor in interface Editable
getIn
public java.awt.geom.Area getIn(View view)
- Specified by:
getIn in interface Region
getBounds
public java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform trans)
- Overrides:
getBounds in class Symbol
getSelectable
public java.util.Collection getSelectable()
recursiveDelete
public boolean recursiveDelete(Symbol old)
- Description copied from class:
Symbol
- Delete all references to the given Symbol held by this one.
- Overrides:
recursiveDelete in class Symbol
addType
public java.lang.Class addType()
add
public void add(Symbol newmember,
View v)
add
public void add(Symbol newmember)
delete
public void delete(Symbol oldmember)
add
public void add(Symbol newmember,
int level)
add
public void add(Symbol newmember,
int level,
java.util.Set relativeset)
group
public Glyph group(java.util.Set parts)
unGroup
public java.util.Set unGroup(Glyph whole)
change_level
public void change_level(java.util.Set targets,
int level)
selectProbe
public boolean selectProbe(java.awt.geom.Point2D pos,
View view)
- Overrides:
selectProbe in class Symbol
showSelected
public void showSelected(View view)
- Overrides:
showSelected in class Symbol
paint
public void paint(View view)
- Overrides:
paint in class Symbol
stripSurveys
public boolean stripSurveys()
- Overrides:
stripSurveys in class Symbol
readObject
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Description copied from class:
Symbol
- Reads Symbol from a stream.
We define this method so it will appear in the stacktrace
if something goes wrong. It does the default.
java.io.IOException
java.lang.ClassNotFoundException