|
||||||||||
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 nameMethod Detail |
---|
public void addDrawListener(SketchPad.DrawListener listener)
ISketchPadImplementation
addDrawListener
in interface ISketchPadImplementation
listener
- the listenerpublic void clear(DrawData drawData)
ISketchPadImplementation
clear
in interface ISketchPadImplementation
drawData
- the draw datapublic void clearAll()
ISketchPadImplementation
clearAll
in interface ISketchPadImplementation
public void draw(DrawData drawData)
ISketchPadImplementation
draw
in interface ISketchPadImplementation
drawData
- the draw datapublic void draw(java.util.List<DrawData> drawData)
ISketchPadImplementation
draw
in interface ISketchPadImplementation
drawData
- the draw datapublic void drawLine(long cursorId, java.awt.Point startPoint, java.awt.Point endPoint, java.awt.Color color, float width)
ISketchPadImplementation
drawLine
in interface ISketchPadImplementation
cursorId
- the cursor idstartPoint
- the start pointendPoint
- the end pointcolor
- the colorwidth
- the widthpublic void drawString(java.lang.String string, int x, int y)
ISketchPadImplementation
drawString
in interface ISketchPadImplementation
string
- the stringx
- the xy
- the ypublic void fillRectangle(java.awt.Rectangle rectangle, java.awt.Color color)
ISketchPadImplementation
fillRectangle
in interface ISketchPadImplementation
rectangle
- the rectanglecolor
- the colorpublic java.awt.Color getBackgroundColour()
ContentItem
getBackgroundColour
in interface ISketchPadImplementation
getBackgroundColour
in class ContentItem
public java.awt.Rectangle getClearArea()
ISketchPadImplementation
getClearArea
in interface ISketchPadImplementation
public java.util.List<DrawData> getDrawData()
ISketchPadImplementation
getDrawData
in interface ISketchPadImplementation
public float getLineWidth()
ISketchPadImplementation
getLineWidth
in interface ISketchPadImplementation
public java.awt.Rectangle getSketchArea()
ISketchPadImplementation
getSketchArea
in interface ISketchPadImplementation
public java.awt.Color getTextColor()
ISketchPadImplementation
getTextColor
in interface ISketchPadImplementation
public boolean isDrawEnabled()
ISketchPadImplementation
isDrawEnabled
in interface ISketchPadImplementation
public void removeDrawListener(SketchPad.DrawListener listener)
ISketchPadImplementation
removeDrawListener
in interface ISketchPadImplementation
listener
- the listenerpublic void removeDrawListeners()
ISketchPadImplementation
removeDrawListeners
in interface ISketchPadImplementation
public void setBackgroundColour(java.awt.Color color)
ContentItem
setBackgroundColour
in interface ISketchPadImplementation
setBackgroundColour
in class ContentItem
color
- the new background colourpublic void setClearArea(java.awt.Rectangle rectangle)
ISketchPadImplementation
setClearArea
in interface ISketchPadImplementation
rectangle
- the new clear areapublic void setDrawEnabled(boolean isDrawEnabled)
ISketchPadImplementation
setDrawEnabled
in interface ISketchPadImplementation
isDrawEnabled
- the new draw enabledpublic void setHeight(int height)
IQuadContentItemImplementation
setHeight
in interface IQuadContentItemImplementation
setHeight
in class QuadContentItem
height
- the new heightpublic void setLineWidth(float width)
ISketchPadImplementation
setLineWidth
in interface ISketchPadImplementation
width
- the new line widthpublic void setSketchArea(java.awt.Rectangle rectangle)
ISketchPadImplementation
setSketchArea
in interface ISketchPadImplementation
rectangle
- the new sketch areapublic void setTextColor(java.awt.Color color)
ISketchPadImplementation
setTextColor
in interface ISketchPadImplementation
color
- the new text colorpublic void setWidth(int width)
IQuadContentItemImplementation
setWidth
in interface IQuadContentItemImplementation
setWidth
in class QuadContentItem
width
- the new width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |