|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.clocksketch.model.Drawing
edu.mit.sketch.clocksketch.model.PenDrawing
public class PenDrawing
| Constructor Summary | |
|---|---|
PenDrawing(java.util.Collection<Symbol> symbols)
|
|
PenDrawing(java.util.Collection<Symbol> symbols,
ClockSymbols.Drawings typeArg)
|
|
PenDrawing(Symbol symbol)
|
|
PenDrawing(Symbol symbol,
ClockSymbols.Drawings typeArg)
|
|
| Method Summary | |
|---|---|
boolean |
addSymbol(Symbol newSymbol)
Adds a symbol to the drawing. |
boolean |
addSymbols(java.util.Collection<Symbol> newSymbols)
|
boolean |
addUnclassifiedSymbol(Symbol newSymbol)
|
void |
clearSymbols()
Clears the drawing of any symbols. |
int |
compareTo(java.lang.Object arg0)
|
java.awt.image.BufferedImage |
createBufferedImageDrawing()
|
void |
extrapolateMissingValues()
For use w/ the Anoto Pen, which cleverly drops any points along a straight line to conserver memory. |
void |
forceResorting()
|
java.lang.String |
getActualData()
Returns the actual, unaltered data from the string (if it is put in the drawing) |
ClockFaceSymbol |
getClockFaceSymbol()
|
ClockSymbols.Drawings |
getDrawingType()
|
long |
getEndOfDrawing()
|
double |
getHeight()
Returns the height of the drawing for an image |
double |
getMaxX()
Returns the maximum X coordinate of the Drawing |
double |
getMaxY()
Returns the maximum Y coordinate of the Drawing |
double |
getMinX()
Returns the minimum X coordinate of the Drawing |
double |
getMinY()
Returns the minimum Y coordinate of the Drawing |
long |
getStartOfDrawing()
|
java.util.TreeSet<Stroke> |
getStrokes()
Returns all strokes in the drawing in the natural ordering of Stroke |
java.util.TreeSet<Symbol> |
getSymbols()
|
double |
getWidth()
Returns the width of the drawing for an image |
void |
refreshCoordinateCache()
|
boolean |
removeSymbol(Symbol symbolIn)
Removes a symbol from the drawing. |
void |
rotateDrawing()
Converts the drawing from a portrait profile to a landscape profile. |
void |
setActualData(java.lang.String actualDataArg)
Stores a copy of data which represents the actual data from the pen. |
void |
setDrawingType(ClockSymbols.Drawings typeArg)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PenDrawing(Symbol symbol)
public PenDrawing(Symbol symbol,
ClockSymbols.Drawings typeArg)
public PenDrawing(java.util.Collection<Symbol> symbols)
public PenDrawing(java.util.Collection<Symbol> symbols,
ClockSymbols.Drawings typeArg)
| Method Detail |
|---|
public boolean addSymbol(Symbol newSymbol)
Drawing
addSymbol in class Drawingpublic boolean addSymbols(java.util.Collection<Symbol> newSymbols)
public boolean addUnclassifiedSymbol(Symbol newSymbol)
public void forceResorting()
public boolean removeSymbol(Symbol symbolIn)
Drawing
removeSymbol in class Drawingpublic void clearSymbols()
Drawing
clearSymbols in class Drawingpublic java.util.TreeSet<Symbol> getSymbols()
public void refreshCoordinateCache()
public double getWidth()
public double getHeight()
public java.util.TreeSet<Stroke> getStrokes()
public void extrapolateMissingValues()
public java.lang.String getActualData()
public void setActualData(java.lang.String actualDataArg)
actualDataArg - public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public ClockSymbols.Drawings getDrawingType()
public void setDrawingType(ClockSymbols.Drawings typeArg)
public long getStartOfDrawing()
public long getEndOfDrawing()
public java.awt.image.BufferedImage createBufferedImageDrawing()
public void rotateDrawing()
public ClockFaceSymbol getClockFaceSymbol()
public int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||