Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Creating subclass of MATLAB graphical object(class?)?
Date: Sat, 21 Mar 2009 15:22:01 +0000 (UTC)
Organization: KTH
Lines: 21
Message-ID: <gq30mp$99i$1@fred.mathworks.com>
References: <gq120h$ckq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1237648921 9522 172.30.248.37 (21 Mar 2009 15:22:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 21 Mar 2009 15:22:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1670
Xref: news.mathworks.com comp.soft-sys.matlab:526624


"Kesh " <tikuma@hotmail.removethis.com> wrote in message <gq120h$ckq$1@fred.mathworks.com>...
> 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

I'm pretty sure that
1. there is no documented way to do it 
2. the idea (or close) can be realized with a classes that have handle graphic objects as properies.

/per