|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.contentsystem.items.ContentItem
synergynetframework.appsystem.contentsystem.items.OrthoContentItem
synergynetframework.appsystem.contentsystem.items.QuadContentItem
synergynetframework.appsystem.contentsystem.items.Frame
synergynetframework.appsystem.contentsystem.items.SketchPad
public class SketchPad
The Class SketchPad.
| Nested Class Summary | |
|---|---|
static interface |
SketchPad.DrawListener
The listener interface for receiving draw events. |
| Field Summary |
|---|
| Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem |
|---|
removable |
| Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem |
|---|
name |
| Constructor Summary | |
|---|---|
SketchPad(ContentSystem contentSystem,
java.lang.String name)
Instantiates a new sketch pad. |
|
| 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 isDrawEnabled)
Sets the draw enabled. |
void |
setHeight(int height)
Sets the height. |
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. |
void |
setWidth(int width)
Sets the width. |
| Methods inherited from class synergynetframework.appsystem.contentsystem.items.Frame |
|---|
drawImage, drawImage, flushGraphics, getGraphicsContext, getImageResources, getImages, removeAllImages, removeImage |
| Methods inherited from class synergynetframework.appsystem.contentsystem.items.QuadContentItem |
|---|
addSizeChangeListener, clone, getHeight, getWidth, isAutoFitSize, removeSizeChangeListener, setAutoFit, setAutoFitSize |
| Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem |
|---|
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| 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 |
| Constructor Detail |
|---|
public SketchPad(ContentSystem contentSystem,
java.lang.String name)
contentSystem - the content systemname - the name| Method Detail |
|---|
public void addDrawListener(SketchPad.DrawListener listener)
ISketchPadImplementation
addDrawListener in interface ISketchPadImplementationlistener - the listenerpublic void clear(DrawData drawData)
ISketchPadImplementation
clear in interface ISketchPadImplementationdrawData - the draw datapublic void clearAll()
ISketchPadImplementation
clearAll in interface ISketchPadImplementationpublic void draw(DrawData drawData)
ISketchPadImplementation
draw in interface ISketchPadImplementationdrawData - the draw datapublic void draw(java.util.List<DrawData> drawData)
ISketchPadImplementation
draw in interface ISketchPadImplementationdrawData - the draw data
public void drawLine(long cursorId,
java.awt.Point startPoint,
java.awt.Point endPoint,
java.awt.Color color,
float width)
ISketchPadImplementation
drawLine in interface ISketchPadImplementationcursorId - the cursor idstartPoint - the start pointendPoint - the end pointcolor - the colorwidth - the width
public void drawString(java.lang.String string,
int x,
int y)
ISketchPadImplementation
drawString in interface ISketchPadImplementationstring - the stringx - the xy - the y
public void fillRectangle(java.awt.Rectangle rectangle,
java.awt.Color color)
ISketchPadImplementation
fillRectangle in interface ISketchPadImplementationrectangle - the rectanglecolor - the colorpublic java.awt.Color getBackgroundColour()
ContentItem
getBackgroundColour in interface ISketchPadImplementationgetBackgroundColour in class ContentItempublic java.awt.Rectangle getClearArea()
ISketchPadImplementation
getClearArea in interface ISketchPadImplementationpublic java.util.List<DrawData> getDrawData()
ISketchPadImplementation
getDrawData in interface ISketchPadImplementationpublic float getLineWidth()
ISketchPadImplementation
getLineWidth in interface ISketchPadImplementationpublic java.awt.Rectangle getSketchArea()
ISketchPadImplementation
getSketchArea in interface ISketchPadImplementationpublic java.awt.Color getTextColor()
ISketchPadImplementation
getTextColor in interface ISketchPadImplementationpublic boolean isDrawEnabled()
ISketchPadImplementation
isDrawEnabled in interface ISketchPadImplementationpublic void removeDrawListener(SketchPad.DrawListener listener)
ISketchPadImplementation
removeDrawListener in interface ISketchPadImplementationlistener - the listenerpublic void removeDrawListeners()
ISketchPadImplementation
removeDrawListeners in interface ISketchPadImplementationpublic void setBackgroundColour(java.awt.Color color)
ContentItem
setBackgroundColour in interface ISketchPadImplementationsetBackgroundColour in class ContentItemcolor - the new background colourpublic void setClearArea(java.awt.Rectangle rectangle)
ISketchPadImplementation
setClearArea in interface ISketchPadImplementationrectangle - the new clear areapublic void setDrawEnabled(boolean isDrawEnabled)
ISketchPadImplementation
setDrawEnabled in interface ISketchPadImplementationisDrawEnabled - the new draw enabledpublic void setHeight(int height)
IQuadContentItemImplementation
setHeight in interface IQuadContentItemImplementationsetHeight in class QuadContentItemheight - the new heightpublic void setLineWidth(float width)
ISketchPadImplementation
setLineWidth in interface ISketchPadImplementationwidth - the new line widthpublic void setSketchArea(java.awt.Rectangle rectangle)
ISketchPadImplementation
setSketchArea in interface ISketchPadImplementationrectangle - the new sketch areapublic void setTextColor(java.awt.Color color)
ISketchPadImplementation
setTextColor in interface ISketchPadImplementationcolor - the new text colorpublic void setWidth(int width)
IQuadContentItemImplementation
setWidth in interface IQuadContentItemImplementationsetWidth in class QuadContentItemwidth - the new width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||