|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISketchPadImplementation
The Interface ISketchPadImplementation.
| Method Summary | |
|---|---|
void |
addDrawListener(SketchPad.DrawListener listener)
Adds the draw listener. |
void |
clear(DrawData drawData)
Clear. |
void |
clearAll()
Clear all. |
void |
draw(DrawData drawData)
Draw. |
void |
draw(java.util.List<DrawData> drawData)
Draw. |
void |
drawLine(long cursorId,
java.awt.Point startPoint,
java.awt.Point endPoint,
java.awt.Color color,
float width)
Draw line. |
void |
drawString(java.lang.String string,
int x,
int y)
Draw string. |
void |
fillRectangle(java.awt.Rectangle rectangle,
java.awt.Color color)
Fill rectangle. |
java.awt.Color |
getBackgroundColour()
Gets the background colour. |
java.awt.Rectangle |
getClearArea()
Gets the clear area. |
java.util.List<DrawData> |
getDrawData()
Gets the draw data. |
float |
getLineWidth()
Gets the line width. |
java.awt.Rectangle |
getSketchArea()
Gets the sketch area. |
java.awt.Color |
getTextColor()
Gets the text color. |
boolean |
isDrawEnabled()
Checks if is draw enabled. |
void |
removeDrawListener(SketchPad.DrawListener listener)
Removes the draw listener. |
void |
removeDrawListeners()
Removes the draw listeners. |
void |
setBackgroundColour(java.awt.Color color)
Sets the background colour. |
void |
setClearArea(java.awt.Rectangle rectangle)
Sets the clear area. |
void |
setDrawEnabled(boolean isWriteEnabled)
Sets the draw enabled. |
void |
setLineWidth(float width)
Sets the line width. |
void |
setSketchArea(java.awt.Rectangle rectangle)
Sets the sketch area. |
void |
setTextColor(java.awt.Color color)
Sets the text color. |
| Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IFrameImplementation |
|---|
drawImage, drawImage, flushGraphics, getGraphicsContext, getImages, removeAllImages, removeImage |
| Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IQuadContentItemImplementation |
|---|
setAutoFitSize, setHeight, setWidth |
| Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation |
|---|
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
| Method Detail |
|---|
void addDrawListener(SketchPad.DrawListener listener)
listener - the listenervoid clear(DrawData drawData)
drawData - the draw datavoid clearAll()
void draw(DrawData drawData)
drawData - the draw datavoid draw(java.util.List<DrawData> drawData)
drawData - the draw data
void drawLine(long cursorId,
java.awt.Point startPoint,
java.awt.Point endPoint,
java.awt.Color color,
float width)
cursorId - the cursor idstartPoint - the start pointendPoint - the end pointcolor - the colorwidth - the width
void drawString(java.lang.String string,
int x,
int y)
string - the stringx - the xy - the y
void fillRectangle(java.awt.Rectangle rectangle,
java.awt.Color color)
rectangle - the rectanglecolor - the colorjava.awt.Color getBackgroundColour()
java.awt.Rectangle getClearArea()
java.util.List<DrawData> getDrawData()
float getLineWidth()
java.awt.Rectangle getSketchArea()
java.awt.Color getTextColor()
boolean isDrawEnabled()
void removeDrawListener(SketchPad.DrawListener listener)
listener - the listenervoid removeDrawListeners()
void setBackgroundColour(java.awt.Color color)
color - the new background colourvoid setClearArea(java.awt.Rectangle rectangle)
rectangle - the new clear areavoid setDrawEnabled(boolean isWriteEnabled)
isWriteEnabled - the new draw enabledvoid setLineWidth(float width)
width - the new line widthvoid setSketchArea(java.awt.Rectangle rectangle)
rectangle - the new sketch areavoid setTextColor(java.awt.Color color)
color - the new text color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||