Class Selection
java.lang.Object
|
+--Selection
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Selection
- extends java.lang.Object
- implements java.lang.Cloneable
|
Method Summary |
(package private) static Symbol |
checkSet(java.util.Collection cands,
java.awt.geom.Point2D pos,
View view)
|
void |
clearSelection()
|
void |
clearSubSelection()
|
java.lang.Object |
clone()
|
void |
copy()
|
void |
delete(CompPane target)
|
boolean |
drag(java.awt.geom.Point2D pos,
boolean dragged,
int mode,
java.awt.geom.Point2D dragpos,
View view)
|
void |
editProperties(Comp contents,
boolean shift,
java.awt.geom.Point2D pos,
View view,
boolean sub)
|
boolean |
endDrag(java.awt.geom.Point2D pos,
int mode,
View view)
|
(package private) static Symbol |
exclusiveCheckSet(java.util.Collection cands,
java.util.Collection exclude,
java.awt.geom.Point2D pos,
View view)
|
void |
flip()
|
Addable |
getAddable()
|
void |
invertSelection(Comp contents)
|
Symbol |
oneSelection()
|
void |
paste(CompPane target)
|
boolean |
select(Comp contents,
boolean shift,
java.awt.geom.Point2D pos,
View view,
boolean sub)
selects or subselects at the given point. |
void |
selectAll(Comp contents)
|
java.util.HashSet |
selectionOrSub()
|
void |
selectRect(java.awt.geom.Rectangle2D selregion,
Comp contents,
View view,
boolean shift)
|
boolean |
setFill(java.awt.Color newfill)
|
boolean |
setFill(Fill newfill)
|
boolean |
setLineType(LineType type,
Size size,
java.awt.Color color)
|
void |
show(View view)
|
void |
startDrag(boolean subsel)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selection
public java.util.HashSet selection
subselection
public java.util.HashSet subselection
file
public Carto file
dragset
java.util.Set dragset
dragsub
boolean dragsub
Selection
public Selection(Carto file)
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
show
public void show(View view)
setLineType
public boolean setLineType(LineType type,
Size size,
java.awt.Color color)
setFill
public boolean setFill(Fill newfill)
setFill
public boolean setFill(java.awt.Color newfill)
flip
public void flip()
copy
public void copy()
paste
public void paste(CompPane target)
delete
public void delete(CompPane target)
oneSelection
public Symbol oneSelection()
clearSelection
public void clearSelection()
clearSubSelection
public void clearSubSelection()
selectionOrSub
public java.util.HashSet selectionOrSub()
selectAll
public void selectAll(Comp contents)
invertSelection
public void invertSelection(Comp contents)
checkSet
static Symbol checkSet(java.util.Collection cands,
java.awt.geom.Point2D pos,
View view)
exclusiveCheckSet
static Symbol exclusiveCheckSet(java.util.Collection cands,
java.util.Collection exclude,
java.awt.geom.Point2D pos,
View view)
select
public boolean select(Comp contents,
boolean shift,
java.awt.geom.Point2D pos,
View view,
boolean sub)
- selects or subselects at the given point.
Return true if something was selected
editProperties
public void editProperties(Comp contents,
boolean shift,
java.awt.geom.Point2D pos,
View view,
boolean sub)
getAddable
public Addable getAddable()
startDrag
public void startDrag(boolean subsel)
drag
public boolean drag(java.awt.geom.Point2D pos,
boolean dragged,
int mode,
java.awt.geom.Point2D dragpos,
View view)
endDrag
public boolean endDrag(java.awt.geom.Point2D pos,
int mode,
View view)
selectRect
public void selectRect(java.awt.geom.Rectangle2D selregion,
Comp contents,
View view,
boolean shift)