|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEFrame
synergynetframework.appsystem.contentsystem.jme.items.JMESketchPad
public class JMESketchPad
The Class JMESketchPad.
| Constructor Summary | |
|---|---|
JMESketchPad(ContentItem contentItem)
Instantiates a new JME sketch pad. |
|
| Method Summary | |
|---|---|
void |
addDrawListener(SketchPad.DrawListener listener)
Adds the draw listener. |
void |
clear(DrawData drawData)
Clear. |
void |
clearAll()
Clear all. |
void |
cursorClicked(long cursorID,
int x,
int y)
Cursor clicked. |
void |
cursorDragged(long id,
int x,
int y)
Cursor dragged. |
void |
cursorPressed(long cursorID,
int x,
int y)
Cursor pressed. |
void |
cursorReleased(long cursorID,
int x,
int y)
Cursor released. |
void |
draw(DrawData data)
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. |
int |
getHeight()
Gets the height. |
int |
getImageHeight()
Gets the image height. |
int |
getImageWidth()
Gets the image width. |
float |
getLineWidth()
Gets the line width. |
java.awt.Rectangle |
getSketchArea()
Gets the sketch area. |
java.awt.Color |
getTextColor()
Gets the text color. |
int |
getWidth()
Gets the width. |
void |
init()
Inits the. |
boolean |
isDrawEnabled()
Checks if is draw enabled. |
void |
makeFlickable(float deceleration)
Make flickable. |
void |
removeDrawListener(SketchPad.DrawListener listener)
Removes the draw listener. |
void |
removeDrawListeners()
Removes the draw listeners. |
void |
renderSketch()
Render sketch. |
void |
setBackGround(Background backGround)
Sets the back ground. |
void |
setBackgroundColour(java.awt.Color color)
Sets the background colour. |
void |
setBorder(Border border)
Sets the border. |
void |
setClearArea(java.awt.Rectangle rectangle)
Sets the clear area. |
void |
setDrawEnabled(boolean isWriteEnabled)
Sets the draw enabled. |
void |
setHeight(int height)
Sets the height. |
void |
setLineWidth(float width)
Sets the line width. |
void |
setRotateTranslateScalable(boolean isEnabled)
Sets the rotate translate scalable. |
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.jme.items.JMEFrame |
|---|
drawImage, drawImage, flushGraphics, getGraphicsContext, getImages, removeAllImages, removeImage, setAutoFitSize |
| Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem |
|---|
cursorChanged, cursorClicked, cursorPressed, cursorReleased |
| Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem |
|---|
contains, getImplementationObject, getLocalLocation, hasCollision, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible |
| 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, setAngle, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
| Constructor Detail |
|---|
public JMESketchPad(ContentItem contentItem)
contentItem - the content item| 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 ISketchPadImplementation
public void cursorClicked(long cursorID,
int x,
int y)
cursorID - the cursor idx - the xy - the y
public void cursorDragged(long id,
int x,
int y)
id - the idx - the xy - the y
public void cursorPressed(long cursorID,
int x,
int y)
cursorID - the cursor idx - the xy - the y
public void cursorReleased(long cursorID,
int x,
int y)
cursorID - the cursor idx - the xy - the ypublic void draw(DrawData data)
ISketchPadImplementation
draw in interface ISketchPadImplementationdata - 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()
ISketchPadImplementation
getBackgroundColour in interface ISketchPadImplementationpublic java.awt.Rectangle getClearArea()
ISketchPadImplementation
getClearArea in interface ISketchPadImplementationpublic java.util.List<DrawData> getDrawData()
ISketchPadImplementation
getDrawData in interface ISketchPadImplementationpublic int getHeight()
public int getImageHeight()
public int getImageWidth()
public 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 int getWidth()
public void init()
IContentItemImplementation
init in interface IContentItemImplementationinit in class JMEFramepublic boolean isDrawEnabled()
ISketchPadImplementation
isDrawEnabled in interface ISketchPadImplementationpublic void makeFlickable(float deceleration)
IOrthoContentItemImplementation
makeFlickable in interface IOrthoContentItemImplementationmakeFlickable in class JMEOrthoContentItemdeceleration - the decelerationpublic void removeDrawListener(SketchPad.DrawListener listener)
ISketchPadImplementation
removeDrawListener in interface ISketchPadImplementationlistener - the listenerpublic void removeDrawListeners()
ISketchPadImplementation
removeDrawListeners in interface ISketchPadImplementationpublic void renderSketch()
public void setBackGround(Background backGround)
IContentItemImplementation
setBackGround in interface IContentItemImplementationsetBackGround in class JMEFramebackGround - the new back groundpublic void setBackgroundColour(java.awt.Color color)
ISketchPadImplementation
setBackgroundColour in interface ISketchPadImplementationcolor - the new background colourpublic void setBorder(Border border)
IContentItemImplementation
setBorder in interface IContentItemImplementationsetBorder in class JMEFrameborder - the new borderpublic void setClearArea(java.awt.Rectangle rectangle)
ISketchPadImplementation
setClearArea in interface ISketchPadImplementationrectangle - the new clear areapublic void setDrawEnabled(boolean isWriteEnabled)
ISketchPadImplementation
setDrawEnabled in interface ISketchPadImplementationisWriteEnabled - the new draw enabledpublic void setHeight(int height)
IQuadContentItemImplementation
setHeight in interface IQuadContentItemImplementationsetHeight in class JMEFrameheight - the new heightpublic void setLineWidth(float width)
ISketchPadImplementation
setLineWidth in interface ISketchPadImplementationwidth - the new line widthpublic void setRotateTranslateScalable(boolean isEnabled)
IOrthoContentItemImplementation
setRotateTranslateScalable in interface IOrthoContentItemImplementationsetRotateTranslateScalable in class JMEOrthoContentItemisEnabled - the new rotate translate scalablepublic 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 JMEFramewidth - the new width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||