|
||||||||||
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 itemMethod 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 cursorClicked(long cursorID, int x, int y)
cursorID
- the cursor idx
- the xy
- the ypublic void cursorDragged(long id, int x, int y)
id
- the idx
- the xy
- the ypublic void cursorPressed(long cursorID, int x, int y)
cursorID
- the cursor idx
- the xy
- the ypublic void cursorReleased(long cursorID, int x, int y)
cursorID
- the cursor idx
- the xy
- the ypublic void draw(DrawData data)
ISketchPadImplementation
draw
in interface ISketchPadImplementation
data
- 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()
ISketchPadImplementation
getBackgroundColour
in interface ISketchPadImplementation
public java.awt.Rectangle getClearArea()
ISketchPadImplementation
getClearArea
in interface ISketchPadImplementation
public java.util.List<DrawData> getDrawData()
ISketchPadImplementation
getDrawData
in interface ISketchPadImplementation
public int getHeight()
public int getImageHeight()
public int getImageWidth()
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 int getWidth()
public void init()
IContentItemImplementation
init
in interface IContentItemImplementation
init
in class JMEFrame
public boolean isDrawEnabled()
ISketchPadImplementation
isDrawEnabled
in interface ISketchPadImplementation
public void makeFlickable(float deceleration)
IOrthoContentItemImplementation
makeFlickable
in interface IOrthoContentItemImplementation
makeFlickable
in class JMEOrthoContentItem
deceleration
- the decelerationpublic void removeDrawListener(SketchPad.DrawListener listener)
ISketchPadImplementation
removeDrawListener
in interface ISketchPadImplementation
listener
- the listenerpublic void removeDrawListeners()
ISketchPadImplementation
removeDrawListeners
in interface ISketchPadImplementation
public void renderSketch()
public void setBackGround(Background backGround)
IContentItemImplementation
setBackGround
in interface IContentItemImplementation
setBackGround
in class JMEFrame
backGround
- the new back groundpublic void setBackgroundColour(java.awt.Color color)
ISketchPadImplementation
setBackgroundColour
in interface ISketchPadImplementation
color
- the new background colourpublic void setBorder(Border border)
IContentItemImplementation
setBorder
in interface IContentItemImplementation
setBorder
in class JMEFrame
border
- the new borderpublic void setClearArea(java.awt.Rectangle rectangle)
ISketchPadImplementation
setClearArea
in interface ISketchPadImplementation
rectangle
- the new clear areapublic void setDrawEnabled(boolean isWriteEnabled)
ISketchPadImplementation
setDrawEnabled
in interface ISketchPadImplementation
isWriteEnabled
- the new draw enabledpublic void setHeight(int height)
IQuadContentItemImplementation
setHeight
in interface IQuadContentItemImplementation
setHeight
in class JMEFrame
height
- the new heightpublic void setLineWidth(float width)
ISketchPadImplementation
setLineWidth
in interface ISketchPadImplementation
width
- the new line widthpublic void setRotateTranslateScalable(boolean isEnabled)
IOrthoContentItemImplementation
setRotateTranslateScalable
in interface IOrthoContentItemImplementation
setRotateTranslateScalable
in class JMEOrthoContentItem
isEnabled
- the new rotate translate scalablepublic 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 JMEFrame
width
- the new width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |