From: Richard K. <ric...@us...> - 2005-05-20 19:58:28
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16208 Added Files: ASHighlightedScrollerDownArrowRep.as ASHighlightedScrollerLeftArrowRep.as ASHighlightedScrollerRightArrowRep.as ASHighlightedScrollerUpArrowRep.as ASScrollerDownArrowRep.as ASScrollerLeftArrowRep.as ASScrollerRightArrowRep.as ASScrollerUpArrowRep.as Log Message: added scroller bitmaps --- NEW FILE: ASScrollerUpArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASScrollerUpArrowRep extends NSImageRep { public function ASScrollerUpArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASScrollerUpArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.moveTo(x, y+height); m_drawClip.lineTo(x + width, y+height); m_drawClip.lineTo(x + width/2, y); m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.lineTo(x, y+height); } } --- NEW FILE: ASHighlightedScrollerRightArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASHighlightedScrollerRightArrowRep extends NSImageRep { public function ASHighlightedScrollerRightArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASHighlightedScrollerRightArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.moveTo(x, y+height); m_drawClip.lineTo(x, y); m_drawClip.lineTo(x + width, y+height/2); m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.lineTo(x, y+height); } } --- NEW FILE: ASScrollerDownArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASScrollerDownArrowRep extends NSImageRep { public function ASScrollerDownArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASScrollerDownArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.moveTo(x, y); m_drawClip.lineTo(x + width, y); m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.lineTo(x + width/2, y + height); m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.lineTo(x, y); } } --- NEW FILE: ASHighlightedScrollerLeftArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASHighlightedScrollerLeftArrowRep extends NSImageRep { public function ASHighlightedScrollerLeftArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASHighlightedScrollerLeftArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.moveTo(x, y + height/2); m_drawClip.lineTo(x + width, y); m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.lineTo(x + width, y+height); m_drawClip.lineTo(x, y + height/2); } } --- NEW FILE: ASScrollerRightArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASScrollerRightArrowRep extends NSImageRep { public function ASScrollerRightArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASScrollerRightArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.moveTo(x, y+height); m_drawClip.lineTo(x, y); m_drawClip.lineTo(x + width, y+height/2); m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.lineTo(x, y+height); } } --- NEW FILE: ASScrollerLeftArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASScrollerLeftArrowRep extends NSImageRep { public function ASScrollerLeftArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASScrollerLeftArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.moveTo(x, y + height/2); m_drawClip.lineTo(x + width, y); m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.lineTo(x + width, y+height); m_drawClip.lineTo(x, y + height/2); } } --- NEW FILE: ASHighlightedScrollerUpArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASHighlightedScrollerUpArrowRep extends NSImageRep { public function ASHighlightedScrollerUpArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASHighlightedScrollerUpArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.moveTo(x, y+height); m_drawClip.lineTo(x + width, y+height); m_drawClip.lineTo(x + width/2, y); m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.lineTo(x, y+height); } } --- NEW FILE: ASHighlightedScrollerDownArrowRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; //import org.actionstep.ASDraw; class org.actionstep.images.ASHighlightedScrollerDownArrowRep extends NSImageRep { public function ASHighlightedScrollerDownArrowRep() { m_size = new NSSize(9,9); } public function description():String { return "ASHighlightedScrollerDownArrowRep"; } public function draw() { var x = m_drawPoint.x; var y = m_drawPoint.y; var width = m_drawRect.size.width; var height = m_drawRect.size.height; m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.moveTo(x, y); m_drawClip.lineTo(x + width, y); m_drawClip.lineStyle(1, 0xF6F8F9, 100); m_drawClip.lineTo(x + width/2, y + height); m_drawClip.lineStyle(1, 0x696E79, 100); m_drawClip.lineTo(x, y); } } |