Path: news.mathworks.com!not-for-mail
From: "Kesh " <tikuma@hotmail.removethis.com>
Newsgroups: comp.soft-sys.matlab
Subject: Creating subclass of MATLAB graphical object(class?)?
Date: Fri, 20 Mar 2009 21:32:01 +0000 (UTC)
Organization: Louisiana State University
Lines: 14
Message-ID: <gq120h$ckq$1@fred.mathworks.com>
Reply-To: "Kesh " <tikuma@hotmail.removethis.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1237584721 12954 172.30.248.37 (20 Mar 2009 21:32:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 20 Mar 2009 21:32:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 73862
Xref: news.mathworks.com comp.soft-sys.matlab:526535


Does anyone here know whether it is possible (if so, how) to create a MATLAB class that is a subclass of one of graphical objects? For instance,

classdef arc < line
...
end

to define a subclass of line and its object to be drawn in an axes.

I was hoping the above syntax to work, but apparently "line" is not a class (no constructor available) although if you evaluate "class(handle(line))" returns "line"

Does anybody here have any ideas to realize this idea?

Thanks,
Kesh